diff --git a/api_names_out.yaml b/api_names_out.yaml index 934aede72..31b0403f4 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -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 diff --git a/generated/google/apis/container_v1.rb b/generated/google/apis/container_v1.rb index eb1154a57..8a20c054a 100644 --- a/generated/google/apis/container_v1.rb +++ b/generated/google/apis/container_v1.rb @@ -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' diff --git a/generated/google/apis/container_v1/classes.rb b/generated/google/apis/container_v1/classes.rb index 392cf01d4..be9a2cd74 100644 --- a/generated/google/apis/container_v1/classes.rb +++ b/generated/google/apis/container_v1/classes.rb @@ -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 diff --git a/generated/google/apis/firestore_v1.rb b/generated/google/apis/firestore_v1.rb index 09ea6dcb2..ea098e5be 100644 --- a/generated/google/apis/firestore_v1.rb +++ b/generated/google/apis/firestore_v1.rb @@ -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' diff --git a/generated/google/apis/firestore_v1/service.rb b/generated/google/apis/firestore_v1/service.rb index b8c8a5aea..690535016 100644 --- a/generated/google/apis/firestore_v1/service.rb +++ b/generated/google/apis/firestore_v1/service.rb @@ -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' diff --git a/generated/google/apis/firestore_v1beta1.rb b/generated/google/apis/firestore_v1beta1.rb index 1db186e75..1b7e86673 100644 --- a/generated/google/apis/firestore_v1beta1.rb +++ b/generated/google/apis/firestore_v1beta1.rb @@ -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' diff --git a/generated/google/apis/firestore_v1beta1/service.rb b/generated/google/apis/firestore_v1beta1/service.rb index 05769cc07..8a184e3ed 100644 --- a/generated/google/apis/firestore_v1beta1/service.rb +++ b/generated/google/apis/firestore_v1beta1/service.rb @@ -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' diff --git a/generated/google/apis/firestore_v1beta2.rb b/generated/google/apis/firestore_v1beta2.rb index ea4d7b332..5d2bd8b28 100644 --- a/generated/google/apis/firestore_v1beta2.rb +++ b/generated/google/apis/firestore_v1beta2.rb @@ -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' diff --git a/generated/google/apis/firestore_v1beta2/service.rb b/generated/google/apis/firestore_v1beta2/service.rb index 08dd6933b..407e96593 100644 --- a/generated/google/apis/firestore_v1beta2/service.rb +++ b/generated/google/apis/firestore_v1beta2/service.rb @@ -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' diff --git a/generated/google/apis/gmail_v1.rb b/generated/google/apis/gmail_v1.rb index a11a90568..cd0601b97 100644 --- a/generated/google/apis/gmail_v1.rb +++ b/generated/google/apis/gmail_v1.rb @@ -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/' diff --git a/generated/google/apis/gmail_v1/classes.rb b/generated/google/apis/gmail_v1/classes.rb index 7a762cc07..0598d839c 100644 --- a/generated/google/apis/gmail_v1/classes.rb +++ b/generated/google/apis/gmail_v1/classes.rb @@ -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] + 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 diff --git a/generated/google/apis/gmail_v1/representations.rb b/generated/google/apis/gmail_v1/representations.rb index 235799c44..60adf5b29 100644 --- a/generated/google/apis/gmail_v1/representations.rb +++ b/generated/google/apis/gmail_v1/representations.rb @@ -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 diff --git a/generated/google/apis/gmail_v1/service.rb b/generated/google/apis/gmail_v1/service.rb index ba13e20f4..902ffeec9 100644 --- a/generated/google/apis/gmail_v1/service.rb +++ b/generated/google/apis/gmail_v1/service.rb @@ -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