classroom
v1
|
#include <classroom_service.h>
Public Member Functions | |
ClassroomServiceBaseRequest (const client::ClientService *service, client::AuthorizationCredential *credential, client::HttpRequest::HttpMethod method, const StringPiece &uri_template) | |
virtual | ~ClassroomServiceBaseRequest () |
void | clear_xgafv () |
const string & | get_xgafv () const |
string *mutable_ | $Xgafv () |
void | set_xgafv (const string &value) |
void | clear_access_token () |
const string & | get_access_token () const |
string * | mutable_accessToken () |
void | set_access_token (const string &value) |
void | clear_alt () |
const string & | get_alt () const |
string * | mutable_alt () |
void | set_alt (const string &value) |
void | clear_callback () |
const string & | get_callback () const |
string * | mutable_callback () |
void | set_callback (const string &value) |
void | clear_fields () |
const string & | get_fields () const |
string * | mutable_fields () |
void | set_fields (const string &value) |
void | clear_key () |
const string & | get_key () const |
string * | mutable_key () |
void | set_key (const string &value) |
void | clear_oauth_token () |
const string & | get_oauth_token () const |
string * | mutable_oauthToken () |
void | set_oauth_token (const string &value) |
void | clear_pretty_print () |
bool | get_pretty_print () const |
void | set_pretty_print (bool value) |
void | clear_quota_user () |
const string & | get_quota_user () const |
string * | mutable_quotaUser () |
void | set_quota_user (const string &value) |
void | clear_upload_type () |
const string & | get_upload_type () const |
string * | mutable_uploadType () |
void | set_upload_type (const string &value) |
void | clear_upload_protocol () |
const string & | get_upload_protocol () const |
string * | mutable_uploadProtocol () |
void | set_upload_protocol (const string &value) |
virtual util::Status | AppendVariable (const StringPiece &variable_name, const client::UriTemplateConfig &config, string *target) |
virtual util::Status | AppendOptionalQueryParameters (string *target) |
Protected Member Functions | |
void | AddJsonContentToRequest (const client::JsonCppData *content) |
Implements a common base method for all methods within the ClassroomService.
This class defines all the attributes common across all methods. It does not pertain to any specific service API so is not normally explicitly instantiated.
google_classroom_api::ClassroomServiceBaseRequest::ClassroomServiceBaseRequest | ( | const client::ClientService * | service, |
client::AuthorizationCredential * | credential, | ||
client::HttpRequest::HttpMethod | method, | ||
const StringPiece & | uri_template | ||
) |
Standard constructor.
[in] | service | The service instance to send to when executed. In practice this will be supplied internally by the service when it acts as a method factory. |
[in] | credential | If not NULL then the credential to authorize with. In practice this is supplied by the user code that is creating the method instance. |
[in] | method | The HTTP method to use for the underlying HTTP request. In practice this is specified by the particular API endpoint and supplied internally by the derived class for that endpoint. |
[in] | uri_template | The RFC 6570 URI Template specifying the url to invoke The parameters in the template should be resolvable attributes. In practice this parameter is supplied internally by the derived class for the endpoint. |
|
virtual |
Standard destructor.
|
inline |
Gets a modifiable pointer to the optional $.xgafv
' attribute.
|
protected |
Prepares the method's HTTP request to send body content as JSON.
Only to be used for method constructors.
|
virtual |
Appends the optional query parameters to the target URL.
[in,out] | target | The URL string to append to. |
Reimplemented in google_classroom_api::UserProfilesResource_GuardiansResource_ListMethod, google_classroom_api::UserProfilesResource_GuardianInvitationsResource_PatchMethod, google_classroom_api::UserProfilesResource_GuardianInvitationsResource_ListMethod, google_classroom_api::InvitationsResource_ListMethod, google_classroom_api::CoursesResource_TopicsResource_PatchMethod, google_classroom_api::CoursesResource_TopicsResource_ListMethod, google_classroom_api::CoursesResource_TeachersResource_ListMethod, google_classroom_api::CoursesResource_StudentsResource_ListMethod, google_classroom_api::CoursesResource_StudentsResource_CreateMethod, google_classroom_api::CoursesResource_CourseWorkResource_StudentSubmissionsResource_PatchMethod, google_classroom_api::CoursesResource_CourseWorkResource_StudentSubmissionsResource_ListMethod, google_classroom_api::CoursesResource_CourseWorkResource_PatchMethod, google_classroom_api::CoursesResource_CourseWorkResource_ListMethod, google_classroom_api::CoursesResource_AnnouncementsResource_PatchMethod, google_classroom_api::CoursesResource_AnnouncementsResource_ListMethod, google_classroom_api::CoursesResource_AliasesResource_ListMethod, google_classroom_api::CoursesResource_PatchMethod, and google_classroom_api::CoursesResource_ListMethod.
|
virtual |
Appends variable value to the target string.
This is a helper function used to resolve templated variables in the URI supplied to the constructor.
[in] | variable_name | The name of the templated variable. |
[in] | config | A pass-through parameter used for lists and maps. |
[in,out] | target | The string to append the value to. |
Reimplemented in google_classroom_api::UserProfilesResource_GuardiansResource_ListMethod, google_classroom_api::UserProfilesResource_GuardiansResource_GetMethod, google_classroom_api::UserProfilesResource_GuardiansResource_DeleteMethod, google_classroom_api::UserProfilesResource_GuardianInvitationsResource_PatchMethod, google_classroom_api::UserProfilesResource_GuardianInvitationsResource_ListMethod, google_classroom_api::UserProfilesResource_GuardianInvitationsResource_GetMethod, google_classroom_api::UserProfilesResource_GuardianInvitationsResource_CreateMethod, google_classroom_api::UserProfilesResource_GetMethod, google_classroom_api::RegistrationsResource_DeleteMethod, google_classroom_api::InvitationsResource_ListMethod, google_classroom_api::InvitationsResource_GetMethod, google_classroom_api::InvitationsResource_DeleteMethod, google_classroom_api::InvitationsResource_AcceptMethod, google_classroom_api::CoursesResource_TopicsResource_PatchMethod, google_classroom_api::CoursesResource_TopicsResource_ListMethod, google_classroom_api::CoursesResource_TopicsResource_GetMethod, google_classroom_api::CoursesResource_TopicsResource_DeleteMethod, google_classroom_api::CoursesResource_TopicsResource_CreateMethod, google_classroom_api::CoursesResource_TeachersResource_ListMethod, google_classroom_api::CoursesResource_TeachersResource_GetMethod, google_classroom_api::CoursesResource_TeachersResource_DeleteMethod, google_classroom_api::CoursesResource_TeachersResource_CreateMethod, google_classroom_api::CoursesResource_StudentsResource_ListMethod, google_classroom_api::CoursesResource_StudentsResource_GetMethod, google_classroom_api::CoursesResource_StudentsResource_DeleteMethod, google_classroom_api::CoursesResource_StudentsResource_CreateMethod, google_classroom_api::CoursesResource_CourseWorkResource_StudentSubmissionsResource_TurnInMethod, google_classroom_api::CoursesResource_CourseWorkResource_StudentSubmissionsResource_ReturnMethod, google_classroom_api::CoursesResource_CourseWorkResource_StudentSubmissionsResource_ReclaimMethod, google_classroom_api::CoursesResource_CourseWorkResource_StudentSubmissionsResource_PatchMethod, google_classroom_api::CoursesResource_CourseWorkResource_StudentSubmissionsResource_ModifyAttachmentsMethod, google_classroom_api::CoursesResource_CourseWorkResource_StudentSubmissionsResource_ListMethod, google_classroom_api::CoursesResource_CourseWorkResource_StudentSubmissionsResource_GetMethod, google_classroom_api::CoursesResource_CourseWorkResource_PatchMethod, google_classroom_api::CoursesResource_CourseWorkResource_ModifyAssigneesMethod, google_classroom_api::CoursesResource_CourseWorkResource_ListMethod, google_classroom_api::CoursesResource_CourseWorkResource_GetMethod, google_classroom_api::CoursesResource_CourseWorkResource_DeleteMethod, google_classroom_api::CoursesResource_CourseWorkResource_CreateMethod, google_classroom_api::CoursesResource_AnnouncementsResource_PatchMethod, google_classroom_api::CoursesResource_AnnouncementsResource_ModifyAssigneesMethod, google_classroom_api::CoursesResource_AnnouncementsResource_ListMethod, google_classroom_api::CoursesResource_AnnouncementsResource_GetMethod, google_classroom_api::CoursesResource_AnnouncementsResource_DeleteMethod, google_classroom_api::CoursesResource_AnnouncementsResource_CreateMethod, google_classroom_api::CoursesResource_AliasesResource_ListMethod, google_classroom_api::CoursesResource_AliasesResource_DeleteMethod, google_classroom_api::CoursesResource_AliasesResource_CreateMethod, google_classroom_api::CoursesResource_UpdateMethod, google_classroom_api::CoursesResource_PatchMethod, google_classroom_api::CoursesResource_ListMethod, google_classroom_api::CoursesResource_GetMethod, and google_classroom_api::CoursesResource_DeleteMethod.
|
inline |
Clears the 'access_token
' attribute so it is no longer set.
|
inline |
Clears the 'alt
' attribute so it is no longer set.
|
inline |
Clears the 'callback
' attribute so it is no longer set.
|
inline |
Clears the 'fields
' attribute so it is no longer set.
|
inline |
Clears the 'key
' attribute so it is no longer set.
|
inline |
Clears the 'oauth_token
' attribute so it is no longer set.
|
inline |
Clears the 'prettyPrint
' attribute so it is no longer set.
|
inline |
Clears the 'quotaUser
' attribute so it is no longer set.
|
inline |
Clears the 'upload_protocol
' attribute so it is no longer set.
|
inline |
Clears the 'uploadType
' attribute so it is no longer set.
|
inline |
Clears the '$.xgafv
' attribute so it is no longer set.
|
inline |
Gets the optional 'access_token
' attribute.
If the value is not set then the default value will be returned.
|
inline |
Gets the optional 'alt
' attribute.
If the value is not set then the default value will be returned.
|
inline |
Gets the optional 'callback
' attribute.
If the value is not set then the default value will be returned.
|
inline |
Gets the optional 'fields
' attribute.
If the value is not set then the default value will be returned.
|
inline |
Gets the optional 'key
' attribute.
If the value is not set then the default value will be returned.
|
inline |
Gets the optional 'oauth_token
' attribute.
If the value is not set then the default value will be returned.
|
inline |
Gets the optional 'prettyPrint
' attribute.
If the value is not set then the default value will be returned.
|
inline |
Gets the optional 'quotaUser
' attribute.
If the value is not set then the default value will be returned.
|
inline |
Gets the optional 'upload_protocol
' attribute.
If the value is not set then the default value will be returned.
|
inline |
Gets the optional 'uploadType
' attribute.
If the value is not set then the default value will be returned.
|
inline |
Gets the optional '$.xgafv
' attribute.
If the value is not set then the default value will be returned.
|
inline |
Gets a modifiable pointer to the optional access_token
' attribute.
|
inline |
Gets a modifiable pointer to the optional alt
' attribute.
|
inline |
Gets a modifiable pointer to the optional callback
' attribute.
|
inline |
Gets a modifiable pointer to the optional fields
' attribute.
|
inline |
Gets a modifiable pointer to the optional key
' attribute.
|
inline |
Gets a modifiable pointer to the optional oauth_token
' attribute.
|
inline |
Gets a modifiable pointer to the optional quotaUser
' attribute.
|
inline |
Gets a modifiable pointer to the optional upload_protocol
' attribute.
|
inline |
Gets a modifiable pointer to the optional uploadType
' attribute.
|
inline |
Sets the 'access_token
' attribute.
[in] | value | OAuth access token. |
|
inline |
Sets the 'alt
' attribute.
[in] | value | Data format for response. |
|
inline |
Sets the 'callback
' attribute.
[in] | value | JSONP. |
|
inline |
Sets the 'fields
' attribute.
[in] | value | Selector specifying which fields to include in a partial response. |
|
inline |
Sets the 'key
' attribute.
[in] | value | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. |
|
inline |
Sets the 'oauth_token
' attribute.
[in] | value | OAuth 2.0 token for the current user. |
|
inline |
Sets the 'prettyPrint
' attribute.
[in] | value | Returns response with indentations and line breaks. |
|
inline |
Sets the 'quotaUser
' attribute.
[in] | value | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. |
|
inline |
Sets the 'upload_protocol
' attribute.
[in] | value | Upload protocol for media (e.g. "raw", "multipart"). |
|
inline |
Sets the 'uploadType
' attribute.
[in] | value | Legacy upload protocol for media (e.g. "media", "multipart"). |
|
inline |
Sets the '$.xgafv
' attribute.
[in] | value | V1 error format. |