Autogenerated update (2018-08-25)

Update:
- container_v1
- firestore_v1
- firestore_v1beta1
- firestore_v1beta2
- gmail_v1
This commit is contained in:
Google APIs 2018-08-25 00:36:32 +00:00
parent d0f8b75767
commit 74836f3886
13 changed files with 279 additions and 14 deletions

View File

@ -64569,6 +64569,9 @@
"/gmail:v1/BatchModifyMessagesRequest/ids/id": id
"/gmail:v1/BatchModifyMessagesRequest/removeLabelIds": remove_label_ids
"/gmail:v1/BatchModifyMessagesRequest/removeLabelIds/remove_label_id": remove_label_id
"/gmail:v1/Delegate": delegate
"/gmail:v1/Delegate/delegateEmail": delegate_email
"/gmail:v1/Delegate/verificationStatus": verification_status
"/gmail:v1/Draft": draft
"/gmail:v1/Draft/id": id
"/gmail:v1/Draft/message": message
@ -64638,6 +64641,9 @@
"/gmail:v1/LabelColor": label_color
"/gmail:v1/LabelColor/backgroundColor": background_color
"/gmail:v1/LabelColor/textColor": text_color
"/gmail:v1/ListDelegatesResponse": list_delegates_response
"/gmail:v1/ListDelegatesResponse/delegates": delegates
"/gmail:v1/ListDelegatesResponse/delegates/delegate": delegate
"/gmail:v1/ListDraftsResponse": list_drafts_response
"/gmail:v1/ListDraftsResponse/drafts": drafts
"/gmail:v1/ListDraftsResponse/drafts/draft": draft
@ -64855,6 +64861,16 @@
"/gmail:v1/gmail.users.messages.untrash": untrash_user_message
"/gmail:v1/gmail.users.messages.untrash/id": id
"/gmail:v1/gmail.users.messages.untrash/userId": user_id
"/gmail:v1/gmail.users.settings.delegates.create": create_user_setting_delegate
"/gmail:v1/gmail.users.settings.delegates.create/userId": user_id
"/gmail:v1/gmail.users.settings.delegates.delete": delete_user_setting_delegate
"/gmail:v1/gmail.users.settings.delegates.delete/delegateEmail": delegate_email
"/gmail:v1/gmail.users.settings.delegates.delete/userId": user_id
"/gmail:v1/gmail.users.settings.delegates.get": get_user_setting_delegate
"/gmail:v1/gmail.users.settings.delegates.get/delegateEmail": delegate_email
"/gmail:v1/gmail.users.settings.delegates.get/userId": user_id
"/gmail:v1/gmail.users.settings.delegates.list": list_user_setting_delegates
"/gmail:v1/gmail.users.settings.delegates.list/userId": user_id
"/gmail:v1/gmail.users.settings.filters.create": create_user_setting_filter
"/gmail:v1/gmail.users.settings.filters.create/userId": user_id
"/gmail:v1/gmail.users.settings.filters.delete": delete_user_setting_filter

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/container-engine/
module ContainerV1
VERSION = 'V1'
REVISION = '20180807'
REVISION = '20180813'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -242,9 +242,12 @@ module Google
# @return [Fixnum]
attr_accessor :current_node_count
# [Output only] The current version of the node software components.
# If they are currently at multiple versions because they're in the process
# of being upgraded, this reflects the minimum version of all nodes.
# [Output only] Deprecated, use
# [NodePool.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.
# clusters.nodePool)
# instead. The current version of the node software components. If they are
# currently at multiple versions because they're in the process of being
# upgraded, this reflects the minimum version of all nodes.
# Corresponds to the JSON property `currentNodeVersion`
# @return [String]
attr_accessor :current_node_version

View File

@ -20,12 +20,13 @@ module Google
module Apis
# Cloud Firestore API
#
#
# Accesses the NoSQL document database built for automatic scaling, high
# performance, and ease of application development.
#
# @see https://cloud.google.com/firestore
module FirestoreV1
VERSION = 'V1'
REVISION = '20180725'
REVISION = '20180814'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,7 +22,8 @@ module Google
module FirestoreV1
# Cloud Firestore API
#
#
# Accesses the NoSQL document database built for automatic scaling, high
# performance, and ease of application development.
#
# @example
# require 'google/apis/firestore_v1'

View File

@ -20,12 +20,13 @@ module Google
module Apis
# Cloud Firestore API
#
#
# Accesses the NoSQL document database built for automatic scaling, high
# performance, and ease of application development.
#
# @see https://cloud.google.com/firestore
module FirestoreV1beta1
VERSION = 'V1beta1'
REVISION = '20180725'
REVISION = '20180814'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,7 +22,8 @@ module Google
module FirestoreV1beta1
# Cloud Firestore API
#
#
# Accesses the NoSQL document database built for automatic scaling, high
# performance, and ease of application development.
#
# @example
# require 'google/apis/firestore_v1beta1'

View File

@ -20,12 +20,13 @@ module Google
module Apis
# Cloud Firestore API
#
#
# Accesses the NoSQL document database built for automatic scaling, high
# performance, and ease of application development.
#
# @see https://cloud.google.com/firestore
module FirestoreV1beta2
VERSION = 'V1beta2'
REVISION = '20180806'
REVISION = '20180814'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,7 +22,8 @@ module Google
module FirestoreV1beta2
# Cloud Firestore API
#
#
# Accesses the NoSQL document database built for automatic scaling, high
# performance, and ease of application development.
#
# @example
# require 'google/apis/firestore_v1beta2'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/gmail/api/
module GmailV1
VERSION = 'V1'
REVISION = '20180724'
REVISION = '20180821'
# Read, send, delete, and manage your email
AUTH_SCOPE = 'https://mail.google.com/'

View File

@ -105,6 +105,34 @@ module Google
end
end
# Settings for a delegate. Delegates can read, send, and delete messages, as
# well as manage contacts, for the delegator's account. See "Set up mail
# delegation" for more information about delegates.
class Delegate
include Google::Apis::Core::Hashable
# The email address of the delegate.
# Corresponds to the JSON property `delegateEmail`
# @return [String]
attr_accessor :delegate_email
# Indicates whether this address has been verified and can act as a delegate for
# the account. Read-only.
# Corresponds to the JSON property `verificationStatus`
# @return [String]
attr_accessor :verification_status
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@delegate_email = args[:delegate_email] if args.key?(:delegate_email)
@verification_status = args[:verification_status] if args.key?(:verification_status)
end
end
# A draft email in the user's mailbox.
class Draft
include Google::Apis::Core::Hashable
@ -607,6 +635,25 @@ module Google
end
end
# Response for the ListDelegates method.
class ListDelegatesResponse
include Google::Apis::Core::Hashable
# List of the user's delegates (with any verification status).
# Corresponds to the JSON property `delegates`
# @return [Array<Google::Apis::GmailV1::Delegate>]
attr_accessor :delegates
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@delegates = args[:delegates] if args.key?(:delegates)
end
end
#
class ListDraftsResponse
include Google::Apis::Core::Hashable

View File

@ -40,6 +40,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Delegate
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Draft
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -118,6 +124,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListDelegatesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListDraftsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -287,6 +299,14 @@ module Google
end
end
class Delegate
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :delegate_email, as: 'delegateEmail'
property :verification_status, as: 'verificationStatus'
end
end
class Draft
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -425,6 +445,14 @@ module Google
end
end
class ListDelegatesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :delegates, as: 'delegates', class: Google::Apis::GmailV1::Delegate, decorator: Google::Apis::GmailV1::Delegate::Representation
end
end
class ListDraftsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -1515,6 +1515,171 @@ module Google
execute_or_queue_command(command, &block)
end
# Adds a delegate with its verification status set directly to accepted, without
# sending any verification email. The delegate user must be a member of the same
# G Suite organization as the delegator user.
# Gmail imposes limtations on the number of delegates and delegators each user
# in a G Suite organization can have. These limits depend on your organization,
# but in general each user can have up to 25 delegates and up to 10 delegators.
# Note that a delegate user must be referred to by their primary email address,
# and not an email alias.
# Also note that when a new delegate is created, there may be up to a one minute
# delay before the new delegate is available for use.
# This method is only available to service account clients that have been
# delegated domain-wide authority.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [Google::Apis::GmailV1::Delegate] delegate_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GmailV1::Delegate] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GmailV1::Delegate]
#
# @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.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?
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)
end
# Removes the specified delegate (which can be of any verification status), and
# revokes any verification that may have been required for using it.
# Note that a delegate user must be referred to by their primary email address,
# and not an email alias.
# This method is only available to service account clients that have been
# delegated domain-wide authority.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [String] delegate_email
# The email address of the user to be removed as a delegate.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @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.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?
execute_or_queue_command(command, &block)
end
# Gets the specified delegate.
# Note that a delegate user must be referred to by their primary email address,
# and not an email alias.
# This method is only available to service account clients that have been
# delegated domain-wide authority.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [String] delegate_email
# The email address of the user whose delegate relationship is to be retrieved.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GmailV1::Delegate] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GmailV1::Delegate]
#
# @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.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?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Lists the delegates for the specified account.
# This method is only available to service account clients that have been
# delegated domain-wide authority.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GmailV1::ListDelegatesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GmailV1::ListDelegatesResponse]
#
# @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.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?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Creates a filter.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the