generated/google/apis/gmail_v1/service.rb in google-api-client-0.29.1 vs generated/google/apis/gmail_v1/service.rb in google-api-client-0.29.2
- old
+ new
@@ -73,11 +73,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_user_profile(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{userId}/profile', options)
+ command = make_simple_command(:get, '{userId}/profile', options)
command.response_representation = Google::Apis::GmailV1::Profile::Representation
command.response_class = Google::Apis::GmailV1::Profile
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -107,11 +107,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def stop_user(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{userId}/stop', options)
+ command = make_simple_command(:post, '{userId}/stop', options)
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
@@ -140,11 +140,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def watch_user(user_id, watch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{userId}/watch', options)
+ command = make_simple_command(:post, '{userId}/watch', options)
command.request_representation = Google::Apis::GmailV1::WatchRequest::Representation
command.request_object = watch_request_object
command.response_representation = Google::Apis::GmailV1::WatchResponse::Representation
command.response_class = Google::Apis::GmailV1::WatchResponse
command.params['userId'] = user_id unless user_id.nil?
@@ -182,11 +182,11 @@
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_user_draft(user_id, draft_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
if upload_source.nil?
- command = make_simple_command(:post, '{userId}/drafts', options)
+ command = make_simple_command(:post, '{userId}/drafts', options)
else
command = make_upload_command(:post, '{userId}/drafts', options)
command.upload_source = upload_source
command.upload_content_type = content_type
end
@@ -226,11 +226,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_user_draft(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:delete, '{userId}/drafts/{id}', options)
+ command = make_simple_command(:delete, '{userId}/drafts/{id}', options)
command.params['userId'] = user_id unless user_id.nil?
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
@@ -263,11 +263,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_user_draft(user_id, id, format: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{userId}/drafts/{id}', options)
+ command = make_simple_command(:get, '{userId}/drafts/{id}', options)
command.response_representation = Google::Apis::GmailV1::Draft::Representation
command.response_class = Google::Apis::GmailV1::Draft
command.params['userId'] = user_id unless user_id.nil?
command.params['id'] = id unless id.nil?
command.query['format'] = format unless format.nil?
@@ -309,11 +309,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_user_drafts(user_id, include_spam_trash: nil, max_results: nil, page_token: nil, q: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{userId}/drafts', options)
+ command = make_simple_command(:get, '{userId}/drafts', options)
command.response_representation = Google::Apis::GmailV1::ListDraftsResponse::Representation
command.response_class = Google::Apis::GmailV1::ListDraftsResponse
command.params['userId'] = user_id unless user_id.nil?
command.query['includeSpamTrash'] = include_spam_trash unless include_spam_trash.nil?
command.query['maxResults'] = max_results unless max_results.nil?
@@ -354,11 +354,11 @@
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def send_user_draft(user_id, draft_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
if upload_source.nil?
- command = make_simple_command(:post, '{userId}/drafts/send', options)
+ command = make_simple_command(:post, '{userId}/drafts/send', options)
else
command = make_upload_command(:post, '{userId}/drafts/send', options)
command.upload_source = upload_source
command.upload_content_type = content_type
end
@@ -403,11 +403,11 @@
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_user_draft(user_id, id, draft_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
if upload_source.nil?
- command = make_simple_command(:put, '{userId}/drafts/{id}', options)
+ command = make_simple_command(:put, '{userId}/drafts/{id}', options)
else
command = make_upload_command(:put, '{userId}/drafts/{id}', options)
command.upload_source = upload_source
command.upload_content_type = content_type
end
@@ -465,11 +465,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_user_histories(user_id, history_types: nil, label_id: nil, max_results: nil, page_token: nil, start_history_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{userId}/history', options)
+ command = make_simple_command(:get, '{userId}/history', options)
command.response_representation = Google::Apis::GmailV1::ListHistoryResponse::Representation
command.response_class = Google::Apis::GmailV1::ListHistoryResponse
command.params['userId'] = user_id unless user_id.nil?
command.query['historyTypes'] = history_types unless history_types.nil?
command.query['labelId'] = label_id unless label_id.nil?
@@ -505,11 +505,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_user_label(user_id, label_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{userId}/labels', options)
+ command = make_simple_command(:post, '{userId}/labels', options)
command.request_representation = Google::Apis::GmailV1::Label::Representation
command.request_object = label_object
command.response_representation = Google::Apis::GmailV1::Label::Representation
command.response_class = Google::Apis::GmailV1::Label
command.params['userId'] = user_id unless user_id.nil?
@@ -544,11 +544,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_user_label(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:delete, '{userId}/labels/{id}', options)
+ command = make_simple_command(:delete, '{userId}/labels/{id}', options)
command.params['userId'] = user_id unless user_id.nil?
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
@@ -579,11 +579,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_user_label(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{userId}/labels/{id}', options)
+ command = make_simple_command(:get, '{userId}/labels/{id}', options)
command.response_representation = Google::Apis::GmailV1::Label::Representation
command.response_class = Google::Apis::GmailV1::Label
command.params['userId'] = user_id unless user_id.nil?
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
@@ -614,11 +614,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_user_labels(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{userId}/labels', options)
+ command = make_simple_command(:get, '{userId}/labels', options)
command.response_representation = Google::Apis::GmailV1::ListLabelsResponse::Representation
command.response_class = Google::Apis::GmailV1::ListLabelsResponse
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -651,11 +651,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_user_label(user_id, id, label_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:patch, '{userId}/labels/{id}', options)
+ command = make_simple_command(:patch, '{userId}/labels/{id}', options)
command.request_representation = Google::Apis::GmailV1::Label::Representation
command.request_object = label_object
command.response_representation = Google::Apis::GmailV1::Label::Representation
command.response_class = Google::Apis::GmailV1::Label
command.params['userId'] = user_id unless user_id.nil?
@@ -691,11 +691,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_user_label(user_id, id, label_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:put, '{userId}/labels/{id}', options)
+ command = make_simple_command(:put, '{userId}/labels/{id}', options)
command.request_representation = Google::Apis::GmailV1::Label::Representation
command.request_object = label_object
command.response_representation = Google::Apis::GmailV1::Label::Representation
command.response_class = Google::Apis::GmailV1::Label
command.params['userId'] = user_id unless user_id.nil?
@@ -730,11 +730,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def batch_delete_messages(user_id, batch_delete_messages_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{userId}/messages/batchDelete', options)
+ command = make_simple_command(:post, '{userId}/messages/batchDelete', options)
command.request_representation = Google::Apis::GmailV1::BatchDeleteMessagesRequest::Representation
command.request_object = batch_delete_messages_request_object
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -765,11 +765,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def batch_modify_messages(user_id, batch_modify_messages_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{userId}/messages/batchModify', options)
+ command = make_simple_command(:post, '{userId}/messages/batchModify', options)
command.request_representation = Google::Apis::GmailV1::BatchModifyMessagesRequest::Representation
command.request_object = batch_modify_messages_request_object
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -802,11 +802,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_user_message(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:delete, '{userId}/messages/{id}', options)
+ command = make_simple_command(:delete, '{userId}/messages/{id}', options)
command.params['userId'] = user_id unless user_id.nil?
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
@@ -841,11 +841,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_user_message(user_id, id, format: nil, metadata_headers: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{userId}/messages/{id}', options)
+ command = make_simple_command(:get, '{userId}/messages/{id}', options)
command.response_representation = Google::Apis::GmailV1::Message::Representation
command.response_class = Google::Apis::GmailV1::Message
command.params['userId'] = user_id unless user_id.nil?
command.params['id'] = id unless id.nil?
command.query['format'] = format unless format.nil?
@@ -897,11 +897,11 @@
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def import_user_message(user_id, message_object = nil, deleted: nil, internal_date_source: nil, never_mark_spam: nil, process_for_calendar: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
if upload_source.nil?
- command = make_simple_command(:post, '{userId}/messages/import', options)
+ command = make_simple_command(:post, '{userId}/messages/import', options)
else
command = make_upload_command(:post, '{userId}/messages/import', options)
command.upload_source = upload_source
command.upload_content_type = content_type
end
@@ -954,11 +954,11 @@
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_user_message(user_id, message_object = nil, deleted: nil, internal_date_source: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
if upload_source.nil?
- command = make_simple_command(:post, '{userId}/messages', options)
+ command = make_simple_command(:post, '{userId}/messages', options)
else
command = make_upload_command(:post, '{userId}/messages', options)
command.upload_source = upload_source
command.upload_content_type = content_type
end
@@ -1010,11 +1010,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_user_messages(user_id, include_spam_trash: nil, label_ids: nil, max_results: nil, page_token: nil, q: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{userId}/messages', options)
+ command = make_simple_command(:get, '{userId}/messages', options)
command.response_representation = Google::Apis::GmailV1::ListMessagesResponse::Representation
command.response_class = Google::Apis::GmailV1::ListMessagesResponse
command.params['userId'] = user_id unless user_id.nil?
command.query['includeSpamTrash'] = include_spam_trash unless include_spam_trash.nil?
command.query['labelIds'] = label_ids unless label_ids.nil?
@@ -1052,11 +1052,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def modify_message(user_id, id, modify_message_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{userId}/messages/{id}/modify', options)
+ command = make_simple_command(:post, '{userId}/messages/{id}/modify', options)
command.request_representation = Google::Apis::GmailV1::ModifyMessageRequest::Representation
command.request_object = modify_message_request_object
command.response_representation = Google::Apis::GmailV1::Message::Representation
command.response_class = Google::Apis::GmailV1::Message
command.params['userId'] = user_id unless user_id.nil?
@@ -1095,11 +1095,11 @@
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def send_user_message(user_id, message_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
if upload_source.nil?
- command = make_simple_command(:post, '{userId}/messages/send', options)
+ command = make_simple_command(:post, '{userId}/messages/send', options)
else
command = make_upload_command(:post, '{userId}/messages/send', options)
command.upload_source = upload_source
command.upload_content_type = content_type
end
@@ -1138,11 +1138,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def trash_user_message(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{userId}/messages/{id}/trash', options)
+ command = make_simple_command(:post, '{userId}/messages/{id}/trash', options)
command.response_representation = Google::Apis::GmailV1::Message::Representation
command.response_class = Google::Apis::GmailV1::Message
command.params['userId'] = user_id unless user_id.nil?
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
@@ -1175,11 +1175,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def untrash_user_message(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{userId}/messages/{id}/untrash', options)
+ command = make_simple_command(:post, '{userId}/messages/{id}/untrash', options)
command.response_representation = Google::Apis::GmailV1::Message::Representation
command.response_class = Google::Apis::GmailV1::Message
command.params['userId'] = user_id unless user_id.nil?
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
@@ -1214,11 +1214,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_user_message_attachment(user_id, message_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{userId}/messages/{messageId}/attachments/{id}', options)
+ command = make_simple_command(:get, '{userId}/messages/{messageId}/attachments/{id}', options)
command.response_representation = Google::Apis::GmailV1::MessagePartBody::Representation
command.response_class = Google::Apis::GmailV1::MessagePartBody
command.params['userId'] = user_id unless user_id.nil?
command.params['messageId'] = message_id unless message_id.nil?
command.params['id'] = id unless id.nil?
@@ -1250,11 +1250,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_user_setting_auto_forwarding(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{userId}/settings/autoForwarding', options)
+ command = make_simple_command(:get, '{userId}/settings/autoForwarding', options)
command.response_representation = Google::Apis::GmailV1::AutoForwarding::Representation
command.response_class = Google::Apis::GmailV1::AutoForwarding
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1284,11 +1284,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_user_setting_imap(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{userId}/settings/imap', options)
+ command = make_simple_command(:get, '{userId}/settings/imap', options)
command.response_representation = Google::Apis::GmailV1::ImapSettings::Representation
command.response_class = Google::Apis::GmailV1::ImapSettings
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1318,11 +1318,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_user_setting_language(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{userId}/settings/language', options)
+ command = make_simple_command(:get, '{userId}/settings/language', options)
command.response_representation = Google::Apis::GmailV1::LanguageSettings::Representation
command.response_class = Google::Apis::GmailV1::LanguageSettings
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1352,11 +1352,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_user_setting_pop(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{userId}/settings/pop', options)
+ command = make_simple_command(:get, '{userId}/settings/pop', options)
command.response_representation = Google::Apis::GmailV1::PopSettings::Representation
command.response_class = Google::Apis::GmailV1::PopSettings
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1386,11 +1386,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_user_setting_vacation(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{userId}/settings/vacation', options)
+ command = make_simple_command(:get, '{userId}/settings/vacation', options)
command.response_representation = Google::Apis::GmailV1::VacationSettings::Representation
command.response_class = Google::Apis::GmailV1::VacationSettings
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1424,11 +1424,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_user_setting_auto_forwarding(user_id, auto_forwarding_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:put, '{userId}/settings/autoForwarding', options)
+ command = make_simple_command(:put, '{userId}/settings/autoForwarding', options)
command.request_representation = Google::Apis::GmailV1::AutoForwarding::Representation
command.request_object = auto_forwarding_object
command.response_representation = Google::Apis::GmailV1::AutoForwarding::Representation
command.response_class = Google::Apis::GmailV1::AutoForwarding
command.params['userId'] = user_id unless user_id.nil?
@@ -1461,11 +1461,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_user_setting_imap(user_id, imap_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:put, '{userId}/settings/imap', options)
+ command = make_simple_command(:put, '{userId}/settings/imap', options)
command.request_representation = Google::Apis::GmailV1::ImapSettings::Representation
command.request_object = imap_settings_object
command.response_representation = Google::Apis::GmailV1::ImapSettings::Representation
command.response_class = Google::Apis::GmailV1::ImapSettings
command.params['userId'] = user_id unless user_id.nil?
@@ -1503,11 +1503,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_user_setting_language(user_id, language_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:put, '{userId}/settings/language', options)
+ command = make_simple_command(:put, '{userId}/settings/language', options)
command.request_representation = Google::Apis::GmailV1::LanguageSettings::Representation
command.request_object = language_settings_object
command.response_representation = Google::Apis::GmailV1::LanguageSettings::Representation
command.response_class = Google::Apis::GmailV1::LanguageSettings
command.params['userId'] = user_id unless user_id.nil?
@@ -1540,11 +1540,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_user_setting_pop(user_id, pop_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:put, '{userId}/settings/pop', options)
+ command = make_simple_command(:put, '{userId}/settings/pop', options)
command.request_representation = Google::Apis::GmailV1::PopSettings::Representation
command.request_object = pop_settings_object
command.response_representation = Google::Apis::GmailV1::PopSettings::Representation
command.response_class = Google::Apis::GmailV1::PopSettings
command.params['userId'] = user_id unless user_id.nil?
@@ -1577,11 +1577,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_user_setting_vacation(user_id, vacation_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:put, '{userId}/settings/vacation', options)
+ command = make_simple_command(:put, '{userId}/settings/vacation', options)
command.request_representation = Google::Apis::GmailV1::VacationSettings::Representation
command.request_object = vacation_settings_object
command.response_representation = Google::Apis::GmailV1::VacationSettings::Representation
command.response_class = Google::Apis::GmailV1::VacationSettings
command.params['userId'] = user_id unless user_id.nil?
@@ -1625,11 +1625,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_user_setting_delegate(user_id, delegate_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{userId}/settings/delegates', options)
+ command = make_simple_command(:post, '{userId}/settings/delegates', options)
command.request_representation = Google::Apis::GmailV1::Delegate::Representation
command.request_object = delegate_object
command.response_representation = Google::Apis::GmailV1::Delegate::Representation
command.response_class = Google::Apis::GmailV1::Delegate
command.params['userId'] = user_id unless user_id.nil?
@@ -1668,11 +1668,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_user_setting_delegate(user_id, delegate_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:delete, '{userId}/settings/delegates/{delegateEmail}', options)
+ command = make_simple_command(:delete, '{userId}/settings/delegates/{delegateEmail}', options)
command.params['userId'] = user_id unless user_id.nil?
command.params['delegateEmail'] = delegate_email unless delegate_email.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1707,11 +1707,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_user_setting_delegate(user_id, delegate_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{userId}/settings/delegates/{delegateEmail}', options)
+ command = make_simple_command(:get, '{userId}/settings/delegates/{delegateEmail}', options)
command.response_representation = Google::Apis::GmailV1::Delegate::Representation
command.response_class = Google::Apis::GmailV1::Delegate
command.params['userId'] = user_id unless user_id.nil?
command.params['delegateEmail'] = delegate_email unless delegate_email.nil?
command.query['fields'] = fields unless fields.nil?
@@ -1744,11 +1744,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_user_setting_delegates(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{userId}/settings/delegates', options)
+ command = make_simple_command(:get, '{userId}/settings/delegates', options)
command.response_representation = Google::Apis::GmailV1::ListDelegatesResponse::Representation
command.response_class = Google::Apis::GmailV1::ListDelegatesResponse
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1779,11 +1779,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_user_setting_filter(user_id, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{userId}/settings/filters', options)
+ command = make_simple_command(:post, '{userId}/settings/filters', options)
command.request_representation = Google::Apis::GmailV1::Filter::Representation
command.request_object = filter_object
command.response_representation = Google::Apis::GmailV1::Filter::Representation
command.response_class = Google::Apis::GmailV1::Filter
command.params['userId'] = user_id unless user_id.nil?
@@ -1817,11 +1817,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_user_setting_filter(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:delete, '{userId}/settings/filters/{id}', options)
+ command = make_simple_command(:delete, '{userId}/settings/filters/{id}', options)
command.params['userId'] = user_id unless user_id.nil?
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1852,11 +1852,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_user_setting_filter(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{userId}/settings/filters/{id}', options)
+ command = make_simple_command(:get, '{userId}/settings/filters/{id}', options)
command.response_representation = Google::Apis::GmailV1::Filter::Representation
command.response_class = Google::Apis::GmailV1::Filter
command.params['userId'] = user_id unless user_id.nil?
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
@@ -1887,11 +1887,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_user_setting_filters(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{userId}/settings/filters', options)
+ command = make_simple_command(:get, '{userId}/settings/filters', options)
command.response_representation = Google::Apis::GmailV1::ListFiltersResponse::Representation
command.response_class = Google::Apis::GmailV1::ListFiltersResponse
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1927,11 +1927,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_user_setting_forwarding_address(user_id, forwarding_address_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{userId}/settings/forwardingAddresses', options)
+ command = make_simple_command(:post, '{userId}/settings/forwardingAddresses', options)
command.request_representation = Google::Apis::GmailV1::ForwardingAddress::Representation
command.request_object = forwarding_address_object
command.response_representation = Google::Apis::GmailV1::ForwardingAddress::Representation
command.response_class = Google::Apis::GmailV1::ForwardingAddress
command.params['userId'] = user_id unless user_id.nil?
@@ -1968,11 +1968,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_user_setting_forwarding_address(user_id, forwarding_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:delete, '{userId}/settings/forwardingAddresses/{forwardingEmail}', options)
+ command = make_simple_command(:delete, '{userId}/settings/forwardingAddresses/{forwardingEmail}', options)
command.params['userId'] = user_id unless user_id.nil?
command.params['forwardingEmail'] = forwarding_email unless forwarding_email.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
@@ -2003,11 +2003,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_user_setting_forwarding_address(user_id, forwarding_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{userId}/settings/forwardingAddresses/{forwardingEmail}', options)
+ command = make_simple_command(:get, '{userId}/settings/forwardingAddresses/{forwardingEmail}', options)
command.response_representation = Google::Apis::GmailV1::ForwardingAddress::Representation
command.response_class = Google::Apis::GmailV1::ForwardingAddress
command.params['userId'] = user_id unless user_id.nil?
command.params['forwardingEmail'] = forwarding_email unless forwarding_email.nil?
command.query['fields'] = fields unless fields.nil?
@@ -2038,11 +2038,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_user_setting_forwarding_addresses(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{userId}/settings/forwardingAddresses', options)
+ command = make_simple_command(:get, '{userId}/settings/forwardingAddresses', options)
command.response_representation = Google::Apis::GmailV1::ListForwardingAddressesResponse::Representation
command.response_class = Google::Apis::GmailV1::ListForwardingAddressesResponse
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -2081,11 +2081,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_user_setting_send_as(user_id, send_as_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{userId}/settings/sendAs', options)
+ command = make_simple_command(:post, '{userId}/settings/sendAs', options)
command.request_representation = Google::Apis::GmailV1::SendAs::Representation
command.request_object = send_as_object
command.response_representation = Google::Apis::GmailV1::SendAs::Representation
command.response_class = Google::Apis::GmailV1::SendAs
command.params['userId'] = user_id unless user_id.nil?
@@ -2122,11 +2122,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_user_setting_send_as(user_id, send_as_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:delete, '{userId}/settings/sendAs/{sendAsEmail}', options)
+ command = make_simple_command(:delete, '{userId}/settings/sendAs/{sendAsEmail}', options)
command.params['userId'] = user_id unless user_id.nil?
command.params['sendAsEmail'] = send_as_email unless send_as_email.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
@@ -2158,11 +2158,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_user_setting_send_as(user_id, send_as_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{userId}/settings/sendAs/{sendAsEmail}', options)
+ command = make_simple_command(:get, '{userId}/settings/sendAs/{sendAsEmail}', options)
command.response_representation = Google::Apis::GmailV1::SendAs::Representation
command.response_class = Google::Apis::GmailV1::SendAs
command.params['userId'] = user_id unless user_id.nil?
command.params['sendAsEmail'] = send_as_email unless send_as_email.nil?
command.query['fields'] = fields unless fields.nil?
@@ -2195,11 +2195,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_user_setting_send_as(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{userId}/settings/sendAs', options)
+ command = make_simple_command(:get, '{userId}/settings/sendAs', options)
command.response_representation = Google::Apis::GmailV1::ListSendAsResponse::Representation
command.response_class = Google::Apis::GmailV1::ListSendAsResponse
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -2236,11 +2236,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_user_setting_send_as(user_id, send_as_email, send_as_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:patch, '{userId}/settings/sendAs/{sendAsEmail}', options)
+ command = make_simple_command(:patch, '{userId}/settings/sendAs/{sendAsEmail}', options)
command.request_representation = Google::Apis::GmailV1::SendAs::Representation
command.request_object = send_as_object
command.response_representation = Google::Apis::GmailV1::SendAs::Representation
command.response_class = Google::Apis::GmailV1::SendAs
command.params['userId'] = user_id unless user_id.nil?
@@ -2279,11 +2279,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_user_setting_send_as(user_id, send_as_email, send_as_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:put, '{userId}/settings/sendAs/{sendAsEmail}', options)
+ command = make_simple_command(:put, '{userId}/settings/sendAs/{sendAsEmail}', options)
command.request_representation = Google::Apis::GmailV1::SendAs::Representation
command.request_object = send_as_object
command.response_representation = Google::Apis::GmailV1::SendAs::Representation
command.response_class = Google::Apis::GmailV1::SendAs
command.params['userId'] = user_id unless user_id.nil?
@@ -2321,11 +2321,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def verify_user_setting_send_as(user_id, send_as_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{userId}/settings/sendAs/{sendAsEmail}/verify', options)
+ command = make_simple_command(:post, '{userId}/settings/sendAs/{sendAsEmail}/verify', options)
command.params['userId'] = user_id unless user_id.nil?
command.params['sendAsEmail'] = send_as_email unless send_as_email.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
@@ -2359,11 +2359,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_user_setting_send_a_smime_info(user_id, send_as_email, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:delete, '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}', options)
+ command = make_simple_command(:delete, '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}', options)
command.params['userId'] = user_id unless user_id.nil?
command.params['sendAsEmail'] = send_as_email unless send_as_email.nil?
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -2398,11 +2398,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_user_setting_send_a_smime_info(user_id, send_as_email, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}', options)
+ command = make_simple_command(:get, '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}', options)
command.response_representation = Google::Apis::GmailV1::SmimeInfo::Representation
command.response_class = Google::Apis::GmailV1::SmimeInfo
command.params['userId'] = user_id unless user_id.nil?
command.params['sendAsEmail'] = send_as_email unless send_as_email.nil?
command.params['id'] = id unless id.nil?
@@ -2439,11 +2439,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_user_setting_send_a_smime_info(user_id, send_as_email, smime_info_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo', options)
+ command = make_simple_command(:post, '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo', options)
command.request_representation = Google::Apis::GmailV1::SmimeInfo::Representation
command.request_object = smime_info_object
command.response_representation = Google::Apis::GmailV1::SmimeInfo::Representation
command.response_class = Google::Apis::GmailV1::SmimeInfo
command.params['userId'] = user_id unless user_id.nil?
@@ -2479,11 +2479,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_user_setting_send_a_smime_infos(user_id, send_as_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo', options)
+ command = make_simple_command(:get, '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo', options)
command.response_representation = Google::Apis::GmailV1::ListSmimeInfoResponse::Representation
command.response_class = Google::Apis::GmailV1::ListSmimeInfoResponse
command.params['userId'] = user_id unless user_id.nil?
command.params['sendAsEmail'] = send_as_email unless send_as_email.nil?
command.query['fields'] = fields unless fields.nil?
@@ -2519,11 +2519,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def set_user_setting_send_a_smime_info_default(user_id, send_as_email, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}/setDefault', options)
+ command = make_simple_command(:post, '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}/setDefault', options)
command.params['userId'] = user_id unless user_id.nil?
command.params['sendAsEmail'] = send_as_email unless send_as_email.nil?
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -2556,11 +2556,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_user_thread(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:delete, '{userId}/threads/{id}', options)
+ command = make_simple_command(:delete, '{userId}/threads/{id}', options)
command.params['userId'] = user_id unless user_id.nil?
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
@@ -2595,11 +2595,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_user_thread(user_id, id, format: nil, metadata_headers: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{userId}/threads/{id}', options)
+ command = make_simple_command(:get, '{userId}/threads/{id}', options)
command.response_representation = Google::Apis::GmailV1::Thread::Representation
command.response_class = Google::Apis::GmailV1::Thread
command.params['userId'] = user_id unless user_id.nil?
command.params['id'] = id unless id.nil?
command.query['format'] = format unless format.nil?
@@ -2645,11 +2645,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_user_threads(user_id, include_spam_trash: nil, label_ids: nil, max_results: nil, page_token: nil, q: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{userId}/threads', options)
+ command = make_simple_command(:get, '{userId}/threads', options)
command.response_representation = Google::Apis::GmailV1::ListThreadsResponse::Representation
command.response_class = Google::Apis::GmailV1::ListThreadsResponse
command.params['userId'] = user_id unless user_id.nil?
command.query['includeSpamTrash'] = include_spam_trash unless include_spam_trash.nil?
command.query['labelIds'] = label_ids unless label_ids.nil?
@@ -2688,11 +2688,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def modify_thread(user_id, id, modify_thread_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{userId}/threads/{id}/modify', options)
+ command = make_simple_command(:post, '{userId}/threads/{id}/modify', options)
command.request_representation = Google::Apis::GmailV1::ModifyThreadRequest::Representation
command.request_object = modify_thread_request_object
command.response_representation = Google::Apis::GmailV1::Thread::Representation
command.response_class = Google::Apis::GmailV1::Thread
command.params['userId'] = user_id unless user_id.nil?
@@ -2727,11 +2727,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def trash_user_thread(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{userId}/threads/{id}/trash', options)
+ command = make_simple_command(:post, '{userId}/threads/{id}/trash', options)
command.response_representation = Google::Apis::GmailV1::Thread::Representation
command.response_class = Google::Apis::GmailV1::Thread
command.params['userId'] = user_id unless user_id.nil?
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
@@ -2764,10 +2764,10 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def untrash_user_thread(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{userId}/threads/{id}/untrash', options)
+ command = make_simple_command(:post, '{userId}/threads/{id}/untrash', options)
command.response_representation = Google::Apis::GmailV1::Thread::Representation
command.response_class = Google::Apis::GmailV1::Thread
command.params['userId'] = user_id unless user_id.nil?
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?