google-api-ruby-client/generated/google/apis/gmail_v1/representations.rb

658 lines
23 KiB
Ruby
Raw Normal View History

2015-06-23 23:05:46 +00:00
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module GmailV1
2016-07-06 21:13:29 +00:00
class AutoForwarding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2016-03-11 22:41:20 +00:00
class BatchDeleteMessagesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-01-13 23:04:35 +00:00
class BatchModifyMessagesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2015-06-23 23:05:46 +00:00
class Draft
class Representation < Google::Apis::Core::JsonRepresentation; end
2016-02-25 23:16:53 +00:00
include Google::Apis::Core::JsonObjectSupport
2015-06-23 23:05:46 +00:00
end
2016-07-06 21:13:29 +00:00
class Filter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FilterAction
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FilterCriteria
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ForwardingAddress
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2015-06-23 23:05:46 +00:00
class History
class Representation < Google::Apis::Core::JsonRepresentation; end
2016-02-25 23:16:53 +00:00
include Google::Apis::Core::JsonObjectSupport
2015-06-23 23:05:46 +00:00
end
class HistoryLabelAdded
class Representation < Google::Apis::Core::JsonRepresentation; end
2016-02-25 23:16:53 +00:00
include Google::Apis::Core::JsonObjectSupport
2015-06-23 23:05:46 +00:00
end
class HistoryLabelRemoved
class Representation < Google::Apis::Core::JsonRepresentation; end
2016-02-25 23:16:53 +00:00
include Google::Apis::Core::JsonObjectSupport
2015-06-23 23:05:46 +00:00
end
class HistoryMessageAdded
class Representation < Google::Apis::Core::JsonRepresentation; end
2016-02-25 23:16:53 +00:00
include Google::Apis::Core::JsonObjectSupport
2015-06-23 23:05:46 +00:00
end
class HistoryMessageDeleted
class Representation < Google::Apis::Core::JsonRepresentation; end
2016-02-25 23:16:53 +00:00
include Google::Apis::Core::JsonObjectSupport
2015-06-23 23:05:46 +00:00
end
2016-07-06 21:13:29 +00:00
class ImapSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2015-06-23 23:05:46 +00:00
class Label
class Representation < Google::Apis::Core::JsonRepresentation; end
2016-02-25 23:16:53 +00:00
include Google::Apis::Core::JsonObjectSupport
2015-06-23 23:05:46 +00:00
end
class ListDraftsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
2016-02-25 23:16:53 +00:00
include Google::Apis::Core::JsonObjectSupport
2015-06-23 23:05:46 +00:00
end
2016-07-06 21:13:29 +00:00
class ListFiltersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListForwardingAddressesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2015-06-23 23:05:46 +00:00
class ListHistoryResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
2016-02-25 23:16:53 +00:00
include Google::Apis::Core::JsonObjectSupport
2015-06-23 23:05:46 +00:00
end
class ListLabelsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
2016-02-25 23:16:53 +00:00
include Google::Apis::Core::JsonObjectSupport
2015-06-23 23:05:46 +00:00
end
class ListMessagesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
2016-02-25 23:16:53 +00:00
include Google::Apis::Core::JsonObjectSupport
2015-06-23 23:05:46 +00:00
end
2016-07-06 21:13:29 +00:00
class ListSendAsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListSmimeInfoResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2015-06-23 23:05:46 +00:00
class ListThreadsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
2016-02-25 23:16:53 +00:00
include Google::Apis::Core::JsonObjectSupport
2015-06-23 23:05:46 +00:00
end
class Message
class Representation < Google::Apis::Core::JsonRepresentation; end
2016-02-25 23:16:53 +00:00
include Google::Apis::Core::JsonObjectSupport
2015-06-23 23:05:46 +00:00
end
class MessagePart
class Representation < Google::Apis::Core::JsonRepresentation; end
2016-02-25 23:16:53 +00:00
include Google::Apis::Core::JsonObjectSupport
2015-06-23 23:05:46 +00:00
end
class MessagePartBody
class Representation < Google::Apis::Core::JsonRepresentation; end
2016-02-25 23:16:53 +00:00
include Google::Apis::Core::JsonObjectSupport
2015-06-23 23:05:46 +00:00
end
class MessagePartHeader
class Representation < Google::Apis::Core::JsonRepresentation; end
2016-02-25 23:16:53 +00:00
include Google::Apis::Core::JsonObjectSupport
2015-06-23 23:05:46 +00:00
end
class ModifyMessageRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
2016-02-25 23:16:53 +00:00
include Google::Apis::Core::JsonObjectSupport
2015-06-23 23:05:46 +00:00
end
class ModifyThreadRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
2016-02-25 23:16:53 +00:00
include Google::Apis::Core::JsonObjectSupport
2015-06-23 23:05:46 +00:00
end
2016-07-06 21:13:29 +00:00
class PopSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2015-06-23 23:05:46 +00:00
class Profile
class Representation < Google::Apis::Core::JsonRepresentation; end
2016-02-25 23:16:53 +00:00
include Google::Apis::Core::JsonObjectSupport
2015-06-23 23:05:46 +00:00
end
2016-07-06 21:13:29 +00:00
class SendAs
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SmimeInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2016-07-06 21:13:29 +00:00
class SmtpMsa
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2015-06-23 23:05:46 +00:00
class Thread
class Representation < Google::Apis::Core::JsonRepresentation; end
2016-02-25 23:16:53 +00:00
include Google::Apis::Core::JsonObjectSupport
2015-06-23 23:05:46 +00:00
end
2016-07-06 21:13:29 +00:00
class VacationSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2015-06-23 23:05:46 +00:00
class WatchRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
2016-02-25 23:16:53 +00:00
include Google::Apis::Core::JsonObjectSupport
2015-06-23 23:05:46 +00:00
end
class WatchResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
2016-02-25 23:16:53 +00:00
include Google::Apis::Core::JsonObjectSupport
2015-06-23 23:05:46 +00:00
end
2016-07-06 21:13:29 +00:00
class AutoForwarding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :disposition, as: 'disposition'
property :email_address, as: 'emailAddress'
property :enabled, as: 'enabled'
end
end
2016-03-11 22:41:20 +00:00
class BatchDeleteMessagesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :ids, as: 'ids'
end
end
2017-01-13 23:04:35 +00:00
class BatchModifyMessagesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :add_label_ids, as: 'addLabelIds'
collection :ids, as: 'ids'
collection :remove_label_ids, as: 'removeLabelIds'
end
end
2015-06-23 23:05:46 +00:00
class Draft
# @private
2015-06-23 23:05:46 +00:00
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :message, as: 'message', class: Google::Apis::GmailV1::Message, decorator: Google::Apis::GmailV1::Message::Representation
end
end
2016-07-06 21:13:29 +00:00
class Filter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action, as: 'action', class: Google::Apis::GmailV1::FilterAction, decorator: Google::Apis::GmailV1::FilterAction::Representation
property :criteria, as: 'criteria', class: Google::Apis::GmailV1::FilterCriteria, decorator: Google::Apis::GmailV1::FilterCriteria::Representation
property :id, as: 'id'
end
end
class FilterAction
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :add_label_ids, as: 'addLabelIds'
property :forward, as: 'forward'
collection :remove_label_ids, as: 'removeLabelIds'
end
end
class FilterCriteria
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :exclude_chats, as: 'excludeChats'
property :from, as: 'from'
property :has_attachment, as: 'hasAttachment'
property :negated_query, as: 'negatedQuery'
property :query, as: 'query'
property :size, as: 'size'
property :size_comparison, as: 'sizeComparison'
property :subject, as: 'subject'
property :to, as: 'to'
end
end
class ForwardingAddress
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :forwarding_email, as: 'forwardingEmail'
property :verification_status, as: 'verificationStatus'
end
end
2015-06-23 23:05:46 +00:00
class History
# @private
2015-06-23 23:05:46 +00:00
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :labels_added, as: 'labelsAdded', class: Google::Apis::GmailV1::HistoryLabelAdded, decorator: Google::Apis::GmailV1::HistoryLabelAdded::Representation
collection :labels_removed, as: 'labelsRemoved', class: Google::Apis::GmailV1::HistoryLabelRemoved, decorator: Google::Apis::GmailV1::HistoryLabelRemoved::Representation
collection :messages, as: 'messages', class: Google::Apis::GmailV1::Message, decorator: Google::Apis::GmailV1::Message::Representation
collection :messages_added, as: 'messagesAdded', class: Google::Apis::GmailV1::HistoryMessageAdded, decorator: Google::Apis::GmailV1::HistoryMessageAdded::Representation
collection :messages_deleted, as: 'messagesDeleted', class: Google::Apis::GmailV1::HistoryMessageDeleted, decorator: Google::Apis::GmailV1::HistoryMessageDeleted::Representation
end
end
class HistoryLabelAdded
# @private
2015-06-23 23:05:46 +00:00
class Representation < Google::Apis::Core::JsonRepresentation
collection :label_ids, as: 'labelIds'
property :message, as: 'message', class: Google::Apis::GmailV1::Message, decorator: Google::Apis::GmailV1::Message::Representation
end
end
class HistoryLabelRemoved
# @private
2015-06-23 23:05:46 +00:00
class Representation < Google::Apis::Core::JsonRepresentation
collection :label_ids, as: 'labelIds'
property :message, as: 'message', class: Google::Apis::GmailV1::Message, decorator: Google::Apis::GmailV1::Message::Representation
end
end
class HistoryMessageAdded
# @private
2015-06-23 23:05:46 +00:00
class Representation < Google::Apis::Core::JsonRepresentation
property :message, as: 'message', class: Google::Apis::GmailV1::Message, decorator: Google::Apis::GmailV1::Message::Representation
end
end
class HistoryMessageDeleted
# @private
2015-06-23 23:05:46 +00:00
class Representation < Google::Apis::Core::JsonRepresentation
property :message, as: 'message', class: Google::Apis::GmailV1::Message, decorator: Google::Apis::GmailV1::Message::Representation
end
end
2016-07-06 21:13:29 +00:00
class ImapSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auto_expunge, as: 'autoExpunge'
property :enabled, as: 'enabled'
property :expunge_behavior, as: 'expungeBehavior'
property :max_folder_size, as: 'maxFolderSize'
end
end
2015-06-23 23:05:46 +00:00
class Label
# @private
2015-06-23 23:05:46 +00:00
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :label_list_visibility, as: 'labelListVisibility'
property :message_list_visibility, as: 'messageListVisibility'
property :messages_total, as: 'messagesTotal'
property :messages_unread, as: 'messagesUnread'
property :name, as: 'name'
property :threads_total, as: 'threadsTotal'
property :threads_unread, as: 'threadsUnread'
property :type, as: 'type'
end
end
class ListDraftsResponse
# @private
2015-06-23 23:05:46 +00:00
class Representation < Google::Apis::Core::JsonRepresentation
collection :drafts, as: 'drafts', class: Google::Apis::GmailV1::Draft, decorator: Google::Apis::GmailV1::Draft::Representation
property :next_page_token, as: 'nextPageToken'
property :result_size_estimate, as: 'resultSizeEstimate'
end
end
2016-07-06 21:13:29 +00:00
class ListFiltersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :filter, as: 'filter', class: Google::Apis::GmailV1::Filter, decorator: Google::Apis::GmailV1::Filter::Representation
end
end
class ListForwardingAddressesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :forwarding_addresses, as: 'forwardingAddresses', class: Google::Apis::GmailV1::ForwardingAddress, decorator: Google::Apis::GmailV1::ForwardingAddress::Representation
end
end
2015-06-23 23:05:46 +00:00
class ListHistoryResponse
# @private
2015-06-23 23:05:46 +00:00
class Representation < Google::Apis::Core::JsonRepresentation
collection :history, as: 'history', class: Google::Apis::GmailV1::History, decorator: Google::Apis::GmailV1::History::Representation
property :history_id, as: 'historyId'
property :next_page_token, as: 'nextPageToken'
end
end
class ListLabelsResponse
# @private
2015-06-23 23:05:46 +00:00
class Representation < Google::Apis::Core::JsonRepresentation
collection :labels, as: 'labels', class: Google::Apis::GmailV1::Label, decorator: Google::Apis::GmailV1::Label::Representation
end
end
class ListMessagesResponse
# @private
2015-06-23 23:05:46 +00:00
class Representation < Google::Apis::Core::JsonRepresentation
collection :messages, as: 'messages', class: Google::Apis::GmailV1::Message, decorator: Google::Apis::GmailV1::Message::Representation
property :next_page_token, as: 'nextPageToken'
property :result_size_estimate, as: 'resultSizeEstimate'
end
end
2016-07-06 21:13:29 +00:00
class ListSendAsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :send_as, as: 'sendAs', class: Google::Apis::GmailV1::SendAs, decorator: Google::Apis::GmailV1::SendAs::Representation
end
end
class ListSmimeInfoResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :smime_info, as: 'smimeInfo', class: Google::Apis::GmailV1::SmimeInfo, decorator: Google::Apis::GmailV1::SmimeInfo::Representation
end
end
2015-06-23 23:05:46 +00:00
class ListThreadsResponse
# @private
2015-06-23 23:05:46 +00:00
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
property :result_size_estimate, as: 'resultSizeEstimate'
collection :threads, as: 'threads', class: Google::Apis::GmailV1::Thread, decorator: Google::Apis::GmailV1::Thread::Representation
end
end
class Message
# @private
2015-06-23 23:05:46 +00:00
class Representation < Google::Apis::Core::JsonRepresentation
property :history_id, as: 'historyId'
property :id, as: 'id'
property :internal_date, as: 'internalDate'
collection :label_ids, as: 'labelIds'
property :payload, as: 'payload', class: Google::Apis::GmailV1::MessagePart, decorator: Google::Apis::GmailV1::MessagePart::Representation
property :raw, :base64 => true, as: 'raw'
property :size_estimate, as: 'sizeEstimate'
property :snippet, as: 'snippet'
property :thread_id, as: 'threadId'
end
end
class MessagePart
# @private
2015-06-23 23:05:46 +00:00
class Representation < Google::Apis::Core::JsonRepresentation
property :body, as: 'body', class: Google::Apis::GmailV1::MessagePartBody, decorator: Google::Apis::GmailV1::MessagePartBody::Representation
property :filename, as: 'filename'
collection :headers, as: 'headers', class: Google::Apis::GmailV1::MessagePartHeader, decorator: Google::Apis::GmailV1::MessagePartHeader::Representation
property :mime_type, as: 'mimeType'
property :part_id, as: 'partId'
collection :parts, as: 'parts', class: Google::Apis::GmailV1::MessagePart, decorator: Google::Apis::GmailV1::MessagePart::Representation
end
end
class MessagePartBody
# @private
2015-06-23 23:05:46 +00:00
class Representation < Google::Apis::Core::JsonRepresentation
property :attachment_id, as: 'attachmentId'
property :data, :base64 => true, as: 'data'
property :size, as: 'size'
end
end
class MessagePartHeader
# @private
2015-06-23 23:05:46 +00:00
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :value, as: 'value'
end
end
class ModifyMessageRequest
# @private
2015-06-23 23:05:46 +00:00
class Representation < Google::Apis::Core::JsonRepresentation
collection :add_label_ids, as: 'addLabelIds'
collection :remove_label_ids, as: 'removeLabelIds'
end
end
class ModifyThreadRequest
# @private
2015-06-23 23:05:46 +00:00
class Representation < Google::Apis::Core::JsonRepresentation
collection :add_label_ids, as: 'addLabelIds'
collection :remove_label_ids, as: 'removeLabelIds'
end
end
2016-07-06 21:13:29 +00:00
class PopSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :access_window, as: 'accessWindow'
property :disposition, as: 'disposition'
end
end
2015-06-23 23:05:46 +00:00
class Profile
# @private
2015-06-23 23:05:46 +00:00
class Representation < Google::Apis::Core::JsonRepresentation
property :email_address, as: 'emailAddress'
property :history_id, as: 'historyId'
property :messages_total, as: 'messagesTotal'
property :threads_total, as: 'threadsTotal'
end
end
2016-07-06 21:13:29 +00:00
class SendAs
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :is_default, as: 'isDefault'
property :is_primary, as: 'isPrimary'
property :reply_to_address, as: 'replyToAddress'
property :send_as_email, as: 'sendAsEmail'
property :signature, as: 'signature'
property :smtp_msa, as: 'smtpMsa', class: Google::Apis::GmailV1::SmtpMsa, decorator: Google::Apis::GmailV1::SmtpMsa::Representation
property :treat_as_alias, as: 'treatAsAlias'
property :verification_status, as: 'verificationStatus'
end
end
class SmimeInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :encrypted_key_password, as: 'encryptedKeyPassword'
property :expiration, as: 'expiration'
property :id, as: 'id'
property :is_default, as: 'isDefault'
property :issuer_cn, as: 'issuerCn'
property :pem, as: 'pem'
property :pkcs12, :base64 => true, as: 'pkcs12'
end
end
2016-07-06 21:13:29 +00:00
class SmtpMsa
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :host, as: 'host'
property :password, as: 'password'
property :port, as: 'port'
property :security_mode, as: 'securityMode'
property :username, as: 'username'
end
end
2015-06-23 23:05:46 +00:00
class Thread
# @private
2015-06-23 23:05:46 +00:00
class Representation < Google::Apis::Core::JsonRepresentation
property :history_id, as: 'historyId'
property :id, as: 'id'
collection :messages, as: 'messages', class: Google::Apis::GmailV1::Message, decorator: Google::Apis::GmailV1::Message::Representation
property :snippet, as: 'snippet'
end
end
2016-07-06 21:13:29 +00:00
class VacationSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enable_auto_reply, as: 'enableAutoReply'
property :end_time, as: 'endTime'
property :response_body_html, as: 'responseBodyHtml'
property :response_body_plain_text, as: 'responseBodyPlainText'
property :response_subject, as: 'responseSubject'
property :restrict_to_contacts, as: 'restrictToContacts'
property :restrict_to_domain, as: 'restrictToDomain'
property :start_time, as: 'startTime'
end
end
2015-06-23 23:05:46 +00:00
class WatchRequest
# @private
2015-06-23 23:05:46 +00:00
class Representation < Google::Apis::Core::JsonRepresentation
property :label_filter_action, as: 'labelFilterAction'
collection :label_ids, as: 'labelIds'
property :topic_name, as: 'topicName'
end
end
class WatchResponse
# @private
2015-06-23 23:05:46 +00:00
class Representation < Google::Apis::Core::JsonRepresentation
property :expiration, as: 'expiration'
property :history_id, as: 'historyId'
end
end
end
end
end