diff --git a/generated/google/apis/appsmarket_v2.rb b/generated/google/apis/appsmarket_v2.rb index 33b598c84..3ccb038d0 100644 --- a/generated/google/apis/appsmarket_v2.rb +++ b/generated/google/apis/appsmarket_v2.rb @@ -21,12 +21,12 @@ module Google # G Suite Marketplace API # # Lets your G Suite Marketplace applications integrate with Google's licensing - # service + # and billing services. # - # @see https://developers.google.com/google-apps/marketplace/v2/developers_guide + # @see https://developers.google.com/apps-marketplace module AppsmarketV2 VERSION = 'V2' - REVISION = '20191025' + REVISION = '20200526' # View your installed application's licensing information AUTH_APPSMARKETPLACE_LICENSE = 'https://www.googleapis.com/auth/appsmarketplace.license' diff --git a/generated/google/apis/appsmarket_v2/classes.rb b/generated/google/apis/appsmarket_v2/classes.rb index 1528c982e..c0b8e4bf6 100644 --- a/generated/google/apis/appsmarket_v2/classes.rb +++ b/generated/google/apis/appsmarket_v2/classes.rb @@ -38,7 +38,7 @@ module Google # (Deprecated) # Corresponds to the JSON property `editions` - # @return [Array] + # @return [Array] attr_accessor :editions # The ID of the customer license. @@ -69,36 +69,86 @@ module Google @kind = args[:kind] if args.key?(:kind) @state = args[:state] if args.key?(:state) end - + end + + # + class Deletes + include Google::Apis::Core::Hashable + + # (Deprecated) + # Corresponds to the JSON property `editionId` + # @return [String] + attr_accessor :edition_id + # - class Edition - include Google::Apis::Core::Hashable - - # (Deprecated) - # Corresponds to the JSON property `assignedSeats` - # @return [Fixnum] - attr_accessor :assigned_seats - - # (Deprecated) - # Corresponds to the JSON property `editionId` - # @return [String] - attr_accessor :edition_id - - # (Deprecated) - # Corresponds to the JSON property `seatCount` - # @return [Fixnum] - attr_accessor :seat_count - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @assigned_seats = args[:assigned_seats] if args.key?(:assigned_seats) - @edition_id = args[:edition_id] if args.key?(:edition_id) - @seat_count = args[:seat_count] if args.key?(:seat_count) - end + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @edition_id = args[:edition_id] if args.key?(:edition_id) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class Editions + include Google::Apis::Core::Hashable + + # (Deprecated) + # Corresponds to the JSON property `assignedSeats` + # @return [Fixnum] + attr_accessor :assigned_seats + + # (Deprecated) + # Corresponds to the JSON property `editionId` + # @return [String] + attr_accessor :edition_id + + # (Deprecated) + # Corresponds to the JSON property `seatCount` + # @return [Fixnum] + attr_accessor :seat_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @assigned_seats = args[:assigned_seats] if args.key?(:assigned_seats) + @edition_id = args[:edition_id] if args.key?(:edition_id) + @seat_count = args[:seat_count] if args.key?(:seat_count) + end + end + + # + class Expiries + include Google::Apis::Core::Hashable + + # (Deprecated) + # Corresponds to the JSON property `editionId` + # @return [String] + attr_accessor :edition_id + + # + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @edition_id = args[:edition_id] if args.key?(:edition_id) + @kind = args[:kind] if args.key?(:kind) end end @@ -118,12 +168,12 @@ module Google # The list of deletion notifications. # Corresponds to the JSON property `deletes` - # @return [Array] + # @return [Array] attr_accessor :deletes # The list of expiry notifications. # Corresponds to the JSON property `expiries` - # @return [Array] + # @return [Array] attr_accessor :expiries # The ID of the license notification. @@ -138,15 +188,16 @@ module Google # The list of provisioning notifications. # Corresponds to the JSON property `provisions` - # @return [Array] + # @return [Array] attr_accessor :provisions # The list of reassignment notifications. # Corresponds to the JSON property `reassignments` - # @return [Array] + # @return [Array] attr_accessor :reassignments - # The time the event occurred, measuring in milliseconds since the UNIX epoch. + # The time the event occurred, measuring in milliseconds since the UNIX + # epoch. # Corresponds to the JSON property `timestamp` # @return [Fixnum] attr_accessor :timestamp @@ -167,124 +218,6 @@ module Google @reassignments = args[:reassignments] if args.key?(:reassignments) @timestamp = args[:timestamp] if args.key?(:timestamp) end - - # - class Delete - include Google::Apis::Core::Hashable - - # (Deprecated) - # Corresponds to the JSON property `editionId` - # @return [String] - attr_accessor :edition_id - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @edition_id = args[:edition_id] if args.key?(:edition_id) - @kind = args[:kind] if args.key?(:kind) - end - end - - # - class Expiry - include Google::Apis::Core::Hashable - - # (Deprecated) - # Corresponds to the JSON property `editionId` - # @return [String] - attr_accessor :edition_id - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @edition_id = args[:edition_id] if args.key?(:edition_id) - @kind = args[:kind] if args.key?(:kind) - end - end - - # - class Provision - include Google::Apis::Core::Hashable - - # (Deprecated) - # Corresponds to the JSON property `editionId` - # @return [String] - attr_accessor :edition_id - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The number of seats that were provisioned. - # Corresponds to the JSON property `seatCount` - # @return [Fixnum] - attr_accessor :seat_count - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @edition_id = args[:edition_id] if args.key?(:edition_id) - @kind = args[:kind] if args.key?(:kind) - @seat_count = args[:seat_count] if args.key?(:seat_count) - end - end - - # - class Reassignment - include Google::Apis::Core::Hashable - - # (Deprecated) - # Corresponds to the JSON property `editionId` - # @return [String] - attr_accessor :edition_id - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The email address of the reassigned user. - # Corresponds to the JSON property `userId` - # @return [String] - attr_accessor :user_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @edition_id = args[:edition_id] if args.key?(:edition_id) - @kind = args[:kind] if args.key?(:kind) - @type = args[:type] if args.key?(:type) - @user_id = args[:user_id] if args.key?(:user_id) - end - end end # @@ -306,8 +239,8 @@ module Google # - provisions -- A new license of the application has been provisioned. # - expiries -- A license of the application has expired. # - deletions -- An application has been deleted from a domain. - # - reassignments -- An administrator has assigned or revoked a seat license for - # the application on the provided domain. + # - reassignments -- An administrator has assigned or revoked a seat license + # for the application on the provided domain. # Corresponds to the JSON property `notifications` # @return [Array] attr_accessor :notifications @@ -324,6 +257,74 @@ module Google end end + # + class Provisions + include Google::Apis::Core::Hashable + + # (Deprecated) + # Corresponds to the JSON property `editionId` + # @return [String] + attr_accessor :edition_id + + # + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The number of seats that were provisioned. + # Corresponds to the JSON property `seatCount` + # @return [Fixnum] + attr_accessor :seat_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @edition_id = args[:edition_id] if args.key?(:edition_id) + @kind = args[:kind] if args.key?(:kind) + @seat_count = args[:seat_count] if args.key?(:seat_count) + end + end + + # + class Reassignments + include Google::Apis::Core::Hashable + + # (Deprecated) + # Corresponds to the JSON property `editionId` + # @return [String] + attr_accessor :edition_id + + # + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # The email address of the reassigned user. + # Corresponds to the JSON property `userId` + # @return [String] + attr_accessor :user_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @edition_id = args[:edition_id] if args.key?(:edition_id) + @kind = args[:kind] if args.key?(:kind) + @type = args[:type] if args.key?(:type) + @user_id = args[:user_id] if args.key?(:user_id) + end + end + # class UserLicense include Google::Apis::Core::Hashable @@ -362,10 +363,10 @@ module Google # The user's licensing status. One of: # - ACTIVE -- The user has a valid license and should be permitted to use the # application. - # - UNLICENSED -- The administrator of this user's domain never assigned a seat - # for the application to this user. - # - EXPIRED -- The administrator assigned a seat to this user, but the license - # is expired. + # - UNLICENSED -- The administrator of this user's domain never assigned a + # seat for the application to this user. + # - EXPIRED -- The administrator assigned a seat to this user, but the + # license is expired. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state diff --git a/generated/google/apis/appsmarket_v2/representations.rb b/generated/google/apis/appsmarket_v2/representations.rb index 7600fc287..dbf690294 100644 --- a/generated/google/apis/appsmarket_v2/representations.rb +++ b/generated/google/apis/appsmarket_v2/representations.rb @@ -24,42 +24,30 @@ module Google class CustomerLicense class Representation < Google::Apis::Core::JsonRepresentation; end - - class Edition - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end + + include Google::Apis::Core::JsonObjectSupport + end + + class Deletes + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Editions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Expiries + class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class LicenseNotification class Representation < Google::Apis::Core::JsonRepresentation; end - - class Delete - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Expiry - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Provision - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Reassignment - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end include Google::Apis::Core::JsonObjectSupport end @@ -70,6 +58,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Provisions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Reassignments + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class UserLicense class Representation < Google::Apis::Core::JsonRepresentation; end @@ -81,20 +81,36 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :application_id, as: 'applicationId' property :customer_id, as: 'customerId' - collection :editions, as: 'editions', class: Google::Apis::AppsmarketV2::CustomerLicense::Edition, decorator: Google::Apis::AppsmarketV2::CustomerLicense::Edition::Representation + collection :editions, as: 'editions', class: Google::Apis::AppsmarketV2::Editions, decorator: Google::Apis::AppsmarketV2::Editions::Representation property :id, as: 'id' property :kind, as: 'kind' property :state, as: 'state' end - - class Edition - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :assigned_seats, as: 'assignedSeats' - property :edition_id, as: 'editionId' - property :seat_count, as: 'seatCount' - end + end + + class Deletes + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :edition_id, as: 'editionId' + property :kind, as: 'kind' + end + end + + class Editions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :assigned_seats, as: 'assignedSeats' + property :edition_id, as: 'editionId' + property :seat_count, as: 'seatCount' + end + end + + class Expiries + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :edition_id, as: 'editionId' + property :kind, as: 'kind' end end @@ -103,53 +119,18 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :application_id, as: 'applicationId' property :customer_id, as: 'customerId' - collection :deletes, as: 'deletes', class: Google::Apis::AppsmarketV2::LicenseNotification::Delete, decorator: Google::Apis::AppsmarketV2::LicenseNotification::Delete::Representation + collection :deletes, as: 'deletes', class: Google::Apis::AppsmarketV2::Deletes, decorator: Google::Apis::AppsmarketV2::Deletes::Representation - collection :expiries, as: 'expiries', class: Google::Apis::AppsmarketV2::LicenseNotification::Expiry, decorator: Google::Apis::AppsmarketV2::LicenseNotification::Expiry::Representation + collection :expiries, as: 'expiries', class: Google::Apis::AppsmarketV2::Expiries, decorator: Google::Apis::AppsmarketV2::Expiries::Representation property :id, as: 'id' property :kind, as: 'kind' - collection :provisions, as: 'provisions', class: Google::Apis::AppsmarketV2::LicenseNotification::Provision, decorator: Google::Apis::AppsmarketV2::LicenseNotification::Provision::Representation + collection :provisions, as: 'provisions', class: Google::Apis::AppsmarketV2::Provisions, decorator: Google::Apis::AppsmarketV2::Provisions::Representation - collection :reassignments, as: 'reassignments', class: Google::Apis::AppsmarketV2::LicenseNotification::Reassignment, decorator: Google::Apis::AppsmarketV2::LicenseNotification::Reassignment::Representation + collection :reassignments, as: 'reassignments', class: Google::Apis::AppsmarketV2::Reassignments, decorator: Google::Apis::AppsmarketV2::Reassignments::Representation property :timestamp, :numeric_string => true, as: 'timestamp' end - - class Delete - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :edition_id, as: 'editionId' - property :kind, as: 'kind' - end - end - - class Expiry - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :edition_id, as: 'editionId' - property :kind, as: 'kind' - end - end - - class Provision - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :edition_id, as: 'editionId' - property :kind, as: 'kind' - property :seat_count, :numeric_string => true, as: 'seatCount' - end - end - - class Reassignment - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :edition_id, as: 'editionId' - property :kind, as: 'kind' - property :type, as: 'type' - property :user_id, as: 'userId' - end - end end class LicenseNotificationList @@ -162,6 +143,25 @@ module Google end end + class Provisions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :edition_id, as: 'editionId' + property :kind, as: 'kind' + property :seat_count, :numeric_string => true, as: 'seatCount' + end + end + + class Reassignments + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :edition_id, as: 'editionId' + property :kind, as: 'kind' + property :type, as: 'type' + property :user_id, as: 'userId' + end + end + class UserLicense # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/appsmarket_v2/service.rb b/generated/google/apis/appsmarket_v2/service.rb index bfbf571c0..ae401a53e 100644 --- a/generated/google/apis/appsmarket_v2/service.rb +++ b/generated/google/apis/appsmarket_v2/service.rb @@ -23,36 +23,33 @@ module Google # G Suite Marketplace API # # Lets your G Suite Marketplace applications integrate with Google's licensing - # service + # and billing services. # # @example # require 'google/apis/appsmarket_v2' # # Appsmarket = Google::Apis::AppsmarketV2 # Alias the module - # service = Appsmarket::AppsmarketService.new + # service = Appsmarket::GSuiteMarketplaceAPIService.new # - # @see https://developers.google.com/google-apps/marketplace/v2/developers_guide - class AppsmarketService < Google::Apis::Core::BaseService + # @see https://developers.google.com/apps-marketplace + class GSuiteMarketplaceAPIService < Google::Apis::Core::BaseService # @return [String] # API key. Your API key identifies your project and provides you with API access, # quota, and reports. Required unless you provide an OAuth 2.0 token. attr_accessor :key # @return [String] - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. attr_accessor :quota_user - # @return [String] - # Deprecated. Please use quotaUser instead. - attr_accessor :user_ip - def initialize - super('https://www.googleapis.com/', 'appsmarket/v2/') - @batch_path = 'batch/appsmarket/v2' + super('https://appsmarket.googleapis.com/', '') + @batch_path = 'batch' end - # + # Get the status of a license for a customer to determine if they have access + # for a given app. # @param [String] application_id # Application Id # @param [String] customer_id @@ -60,10 +57,8 @@ module Google # @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. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -76,34 +71,29 @@ module Google # @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_customer_license(application_id, customer_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'customerLicense/{applicationId}/{customerId}', options) + def get_customer_license(application_id, customer_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'appsmarket/v2/customerLicense/{applicationId}/{customerId}', options) command.response_representation = Google::Apis::AppsmarketV2::CustomerLicense::Representation command.response_class = Google::Apis::AppsmarketV2::CustomerLicense command.params['applicationId'] = application_id unless application_id.nil? command.params['customerId'] = customer_id unless customer_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 - # + # Get a list of licensing notifications with regards to a given app. # @param [String] application_id # Application Id # @param [Fixnum] max_results - # Maximum number of results to return # @param [String] start_token - # Pagination token # @param [Fixnum] timestamp # Timestamp in milliseconds since epoch # @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. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -116,8 +106,8 @@ module Google # @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_license_notifications(application_id, max_results: nil, start_token: nil, timestamp: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'licenseNotification/{applicationId}', options) + def list_license_notifications(application_id, max_results: nil, start_token: nil, timestamp: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'appsmarket/v2/licenseNotification/{applicationId}', options) command.response_representation = Google::Apis::AppsmarketV2::LicenseNotificationList::Representation command.response_class = Google::Apis::AppsmarketV2::LicenseNotificationList command.params['applicationId'] = application_id unless application_id.nil? @@ -126,11 +116,10 @@ module Google command.query['timestamp'] = timestamp unless timestamp.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 - # + # Get the user's licensing status for their permission to use a given app. # @param [String] application_id # Application Id # @param [String] user_id @@ -138,10 +127,8 @@ module Google # @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. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -154,15 +141,14 @@ module Google # @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_license(application_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'userLicense/{applicationId}/{userId}', options) + def get_user_license(application_id, user_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'appsmarket/v2/userLicense/{applicationId}/{userId}', options) command.response_representation = Google::Apis::AppsmarketV2::UserLicense::Representation command.response_class = Google::Apis::AppsmarketV2::UserLicense command.params['applicationId'] = application_id unless application_id.nil? 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 @@ -171,7 +157,6 @@ module Google def apply_command_defaults(command) command.query['key'] = key unless key.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? end end end diff --git a/generated/google/apis/cloudbuild_v1.rb b/generated/google/apis/cloudbuild_v1.rb index a19737e23..c3fe189f3 100644 --- a/generated/google/apis/cloudbuild_v1.rb +++ b/generated/google/apis/cloudbuild_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/cloud-build/docs/ module CloudbuildV1 VERSION = 'V1' - REVISION = '20200520' + REVISION = '20200601' # 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/cloudbuild_v1/classes.rb b/generated/google/apis/cloudbuild_v1/classes.rb index 0c8cd43c9..22c871678 100644 --- a/generated/google/apis/cloudbuild_v1/classes.rb +++ b/generated/google/apis/cloudbuild_v1/classes.rb @@ -357,6 +357,15 @@ module Google # @return [Fixnum] attr_accessor :disk_size_gb + # Option to specify whether or not to apply bash style string + # operations to the substitutions. + # NOTE: this is always enabled for triggered builds and cannot be + # overridden in the build configuration file. + # Corresponds to the JSON property `dynamicSubstitutions` + # @return [Boolean] + attr_accessor :dynamic_substitutions + alias_method :dynamic_substitutions?, :dynamic_substitutions + # A list of global environment variable definitions that will exist for all # build steps in this build. If a variable is defined in both globally and in # a build step, the variable will use the build step value. @@ -403,6 +412,8 @@ module Google # Option to specify behavior when there is an error in the substitution # checks. + # NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot + # be overridden in the build configuration file. # Corresponds to the JSON property `substitutionOption` # @return [String] attr_accessor :substitution_option @@ -432,6 +443,7 @@ module Google # Update properties of this object def update!(**args) @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) + @dynamic_substitutions = args[:dynamic_substitutions] if args.key?(:dynamic_substitutions) @env = args[:env] if args.key?(:env) @log_streaming_option = args[:log_streaming_option] if args.key?(:log_streaming_option) @logging = args[:logging] if args.key?(:logging) @@ -1030,8 +1042,8 @@ module Google # @return [String] attr_accessor :branch - # Configure builds to run only when a repository owner or collaborator - # comments `/gcbrun`. + # Configure builds to run whether a repository owner or collaborator need to + # comment `/gcbrun`. # Corresponds to the JSON property `commentControl` # @return [String] attr_accessor :comment_control diff --git a/generated/google/apis/cloudbuild_v1/representations.rb b/generated/google/apis/cloudbuild_v1/representations.rb index 27d49d141..e872bf099 100644 --- a/generated/google/apis/cloudbuild_v1/representations.rb +++ b/generated/google/apis/cloudbuild_v1/representations.rb @@ -285,6 +285,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb' + property :dynamic_substitutions, as: 'dynamicSubstitutions' collection :env, as: 'env' property :log_streaming_option, as: 'logStreamingOption' property :logging, as: 'logging' diff --git a/generated/google/apis/cloudbuild_v1/service.rb b/generated/google/apis/cloudbuild_v1/service.rb index dbf7ca9e8..fd33ce11a 100644 --- a/generated/google/apis/cloudbuild_v1/service.rb +++ b/generated/google/apis/cloudbuild_v1/service.rb @@ -703,6 +703,48 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an Operation.error value with a google.rpc.Status.code of 1, + # corresponding to `Code.CANCELLED`. + # @param [String] name + # The name of the operation resource to be cancelled. + # @param [Google::Apis::CloudbuildV1::CancelOperationRequest] cancel_operation_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudbuildV1::Empty] + # + # @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 cancel_vbeta1_project_location_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'vbeta1/{+name}:cancel', options) + command.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation + command.request_object = cancel_operation_request_object + command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation + command.response_class = Google::Apis::CloudbuildV1::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end protected diff --git a/generated/google/apis/cloudbuild_v1alpha1.rb b/generated/google/apis/cloudbuild_v1alpha1.rb index f2eb6dab7..a3510eafa 100644 --- a/generated/google/apis/cloudbuild_v1alpha1.rb +++ b/generated/google/apis/cloudbuild_v1alpha1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/cloud-build/docs/ module CloudbuildV1alpha1 VERSION = 'V1alpha1' - REVISION = '20200520' + REVISION = '20200601' # 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/cloudbuild_v1alpha1/classes.rb b/generated/google/apis/cloudbuild_v1alpha1/classes.rb index 2b091408f..aefcb0b32 100644 --- a/generated/google/apis/cloudbuild_v1alpha1/classes.rb +++ b/generated/google/apis/cloudbuild_v1alpha1/classes.rb @@ -357,6 +357,15 @@ module Google # @return [Fixnum] attr_accessor :disk_size_gb + # Option to specify whether or not to apply bash style string + # operations to the substitutions. + # NOTE: this is always enabled for triggered builds and cannot be + # overridden in the build configuration file. + # Corresponds to the JSON property `dynamicSubstitutions` + # @return [Boolean] + attr_accessor :dynamic_substitutions + alias_method :dynamic_substitutions?, :dynamic_substitutions + # A list of global environment variable definitions that will exist for all # build steps in this build. If a variable is defined in both globally and in # a build step, the variable will use the build step value. @@ -403,6 +412,8 @@ module Google # Option to specify behavior when there is an error in the substitution # checks. + # NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot + # be overridden in the build configuration file. # Corresponds to the JSON property `substitutionOption` # @return [String] attr_accessor :substitution_option @@ -432,6 +443,7 @@ module Google # Update properties of this object def update!(**args) @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) + @dynamic_substitutions = args[:dynamic_substitutions] if args.key?(:dynamic_substitutions) @env = args[:env] if args.key?(:env) @log_streaming_option = args[:log_streaming_option] if args.key?(:log_streaming_option) @logging = args[:logging] if args.key?(:logging) diff --git a/generated/google/apis/cloudbuild_v1alpha1/representations.rb b/generated/google/apis/cloudbuild_v1alpha1/representations.rb index d383cc314..a64e31991 100644 --- a/generated/google/apis/cloudbuild_v1alpha1/representations.rb +++ b/generated/google/apis/cloudbuild_v1alpha1/representations.rb @@ -261,6 +261,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb' + property :dynamic_substitutions, as: 'dynamicSubstitutions' collection :env, as: 'env' property :log_streaming_option, as: 'logStreamingOption' property :logging, as: 'logging' diff --git a/generated/google/apis/cloudbuild_v1alpha2.rb b/generated/google/apis/cloudbuild_v1alpha2.rb index a044d1af0..07bd35a5f 100644 --- a/generated/google/apis/cloudbuild_v1alpha2.rb +++ b/generated/google/apis/cloudbuild_v1alpha2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/cloud-build/docs/ module CloudbuildV1alpha2 VERSION = 'V1alpha2' - REVISION = '20200520' + REVISION = '20200601' # 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/cloudbuild_v1alpha2/classes.rb b/generated/google/apis/cloudbuild_v1alpha2/classes.rb index 8770a9db4..0da3f2d37 100644 --- a/generated/google/apis/cloudbuild_v1alpha2/classes.rb +++ b/generated/google/apis/cloudbuild_v1alpha2/classes.rb @@ -357,6 +357,15 @@ module Google # @return [Fixnum] attr_accessor :disk_size_gb + # Option to specify whether or not to apply bash style string + # operations to the substitutions. + # NOTE: this is always enabled for triggered builds and cannot be + # overridden in the build configuration file. + # Corresponds to the JSON property `dynamicSubstitutions` + # @return [Boolean] + attr_accessor :dynamic_substitutions + alias_method :dynamic_substitutions?, :dynamic_substitutions + # A list of global environment variable definitions that will exist for all # build steps in this build. If a variable is defined in both globally and in # a build step, the variable will use the build step value. @@ -403,6 +412,8 @@ module Google # Option to specify behavior when there is an error in the substitution # checks. + # NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot + # be overridden in the build configuration file. # Corresponds to the JSON property `substitutionOption` # @return [String] attr_accessor :substitution_option @@ -432,6 +443,7 @@ module Google # Update properties of this object def update!(**args) @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) + @dynamic_substitutions = args[:dynamic_substitutions] if args.key?(:dynamic_substitutions) @env = args[:env] if args.key?(:env) @log_streaming_option = args[:log_streaming_option] if args.key?(:log_streaming_option) @logging = args[:logging] if args.key?(:logging) diff --git a/generated/google/apis/cloudbuild_v1alpha2/representations.rb b/generated/google/apis/cloudbuild_v1alpha2/representations.rb index d7ce5beda..72027e3c2 100644 --- a/generated/google/apis/cloudbuild_v1alpha2/representations.rb +++ b/generated/google/apis/cloudbuild_v1alpha2/representations.rb @@ -261,6 +261,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb' + property :dynamic_substitutions, as: 'dynamicSubstitutions' collection :env, as: 'env' property :log_streaming_option, as: 'logStreamingOption' property :logging, as: 'logging' diff --git a/generated/google/apis/dialogflow_v2.rb b/generated/google/apis/dialogflow_v2.rb index 84fd7d57c..e7ee6c63c 100644 --- a/generated/google/apis/dialogflow_v2.rb +++ b/generated/google/apis/dialogflow_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow/ module DialogflowV2 VERSION = 'V2' - REVISION = '20200526' + REVISION = '20200601' # 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/dialogflow_v2/classes.rb b/generated/google/apis/dialogflow_v2/classes.rb index 722cebfd5..67da9eb45 100644 --- a/generated/google/apis/dialogflow_v2/classes.rb +++ b/generated/google/apis/dialogflow_v2/classes.rb @@ -66,17 +66,6 @@ module Google # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1PageInfoFormInfo] attr_accessor :form_info - # Deprecated. Please use WebhookResponse.target_page or - # WebhookResponse.target_flow instead. - # Optional for WebhookResponse. - # The unique identifier of the next page. This field can be set by the - # webhook to immediately transition to a page different from `current_page`. - # Format: `projects//locations//agents//flows//pages/`. - # Corresponds to the JSON property `nextPage` - # @return [String] - attr_accessor :next_page - def initialize(**args) update!(**args) end @@ -85,7 +74,6 @@ module Google def update!(**args) @current_page = args[:current_page] if args.key?(:current_page) @form_info = args[:form_info] if args.key?(:form_info) - @next_page = args[:next_page] if args.key?(:next_page) end end @@ -100,12 +88,6 @@ module Google # @return [Array] attr_accessor :parameter_info - # Always present for WebhookRequest. Ignored for WebhookResponse. - # The current state of the form. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - def initialize(**args) update!(**args) end @@ -113,7 +95,6 @@ module Google # Update properties of this object def update!(**args) @parameter_info = args[:parameter_info] if args.key?(:parameter_info) - @state = args[:state] if args.key?(:state) end end @@ -137,14 +118,6 @@ module Google attr_accessor :just_collected alias_method :just_collected?, :just_collected - # Not set for WebhookRequest. Optional for WebhookResponse. - # The prompt to send to the user to fill a required form parameter. This - # field can be set by the webhook. If set, this field overrides the - # prompt defined for the form parameter. - # Corresponds to the JSON property `prompt` - # @return [Array] - attr_accessor :prompt - # Optional for both WebhookRequest and WebhookResponse. # Indicates whether the parameter is required. Optional parameters will # not trigger prompts; however, they are filled if the user specifies @@ -178,7 +151,6 @@ module Google def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @just_collected = args[:just_collected] if args.key?(:just_collected) - @prompt = args[:prompt] if args.key?(:prompt) @required = args[:required] if args.key?(:required) @state = args[:state] if args.key?(:state) @value = args[:value] if args.key?(:value) @@ -579,7 +551,15 @@ module Google end end - # Represents a conversational agent. + # A Dialogflow agent is a virtual agent that handles conversations with your + # end-users. It is a natural language understanding module that understands the + # nuances of human language. Dialogflow translates end-user text or audio + # during a conversation to structured data that your apps and services can + # understand. You design and build a Dialogflow agent to handle the types of + # conversations required for your system. + # For more information about agents, see the + # [Agents + # documentation](https://cloud.google.com/dialogflow/docs/agents-overview). class GoogleCloudDialogflowV2Agent include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dialogflow_v2/representations.rb b/generated/google/apis/dialogflow_v2/representations.rb index 60c22fa40..d0a01a0dd 100644 --- a/generated/google/apis/dialogflow_v2/representations.rb +++ b/generated/google/apis/dialogflow_v2/representations.rb @@ -1086,7 +1086,6 @@ module Google property :current_page, as: 'currentPage' property :form_info, as: 'formInfo', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1PageInfoFormInfo, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1PageInfoFormInfo::Representation - property :next_page, as: 'nextPage' end end @@ -1095,7 +1094,6 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation collection :parameter_info, as: 'parameterInfo', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo::Representation - property :state, as: 'state' end end @@ -1104,8 +1102,6 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :display_name, as: 'displayName' property :just_collected, as: 'justCollected' - collection :prompt, as: 'prompt', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ResponseMessage, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ResponseMessage::Representation - property :required, as: 'required' property :state, as: 'state' property :value, as: 'value' diff --git a/generated/google/apis/dialogflow_v2beta1.rb b/generated/google/apis/dialogflow_v2beta1.rb index 9daf3d620..3cd11bfb7 100644 --- a/generated/google/apis/dialogflow_v2beta1.rb +++ b/generated/google/apis/dialogflow_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow/ module DialogflowV2beta1 VERSION = 'V2beta1' - REVISION = '20200526' + REVISION = '20200601' # 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/dialogflow_v2beta1/classes.rb b/generated/google/apis/dialogflow_v2beta1/classes.rb index 749dd1a76..e638a3958 100644 --- a/generated/google/apis/dialogflow_v2beta1/classes.rb +++ b/generated/google/apis/dialogflow_v2beta1/classes.rb @@ -66,17 +66,6 @@ module Google # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1PageInfoFormInfo] attr_accessor :form_info - # Deprecated. Please use WebhookResponse.target_page or - # WebhookResponse.target_flow instead. - # Optional for WebhookResponse. - # The unique identifier of the next page. This field can be set by the - # webhook to immediately transition to a page different from `current_page`. - # Format: `projects//locations//agents//flows//pages/`. - # Corresponds to the JSON property `nextPage` - # @return [String] - attr_accessor :next_page - def initialize(**args) update!(**args) end @@ -85,7 +74,6 @@ module Google def update!(**args) @current_page = args[:current_page] if args.key?(:current_page) @form_info = args[:form_info] if args.key?(:form_info) - @next_page = args[:next_page] if args.key?(:next_page) end end @@ -100,12 +88,6 @@ module Google # @return [Array] attr_accessor :parameter_info - # Always present for WebhookRequest. Ignored for WebhookResponse. - # The current state of the form. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - def initialize(**args) update!(**args) end @@ -113,7 +95,6 @@ module Google # Update properties of this object def update!(**args) @parameter_info = args[:parameter_info] if args.key?(:parameter_info) - @state = args[:state] if args.key?(:state) end end @@ -137,14 +118,6 @@ module Google attr_accessor :just_collected alias_method :just_collected?, :just_collected - # Not set for WebhookRequest. Optional for WebhookResponse. - # The prompt to send to the user to fill a required form parameter. This - # field can be set by the webhook. If set, this field overrides the - # prompt defined for the form parameter. - # Corresponds to the JSON property `prompt` - # @return [Array] - attr_accessor :prompt - # Optional for both WebhookRequest and WebhookResponse. # Indicates whether the parameter is required. Optional parameters will # not trigger prompts; however, they are filled if the user specifies @@ -178,7 +151,6 @@ module Google def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @just_collected = args[:just_collected] if args.key?(:just_collected) - @prompt = args[:prompt] if args.key?(:prompt) @required = args[:required] if args.key?(:required) @state = args[:state] if args.key?(:state) @value = args[:value] if args.key?(:value) diff --git a/generated/google/apis/dialogflow_v2beta1/representations.rb b/generated/google/apis/dialogflow_v2beta1/representations.rb index d4a96e050..36e05b848 100644 --- a/generated/google/apis/dialogflow_v2beta1/representations.rb +++ b/generated/google/apis/dialogflow_v2beta1/representations.rb @@ -1134,7 +1134,6 @@ module Google property :current_page, as: 'currentPage' property :form_info, as: 'formInfo', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1PageInfoFormInfo, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1PageInfoFormInfo::Representation - property :next_page, as: 'nextPage' end end @@ -1143,7 +1142,6 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation collection :parameter_info, as: 'parameterInfo', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo::Representation - property :state, as: 'state' end end @@ -1152,8 +1150,6 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :display_name, as: 'displayName' property :just_collected, as: 'justCollected' - collection :prompt, as: 'prompt', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1ResponseMessage, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1ResponseMessage::Representation - property :required, as: 'required' property :state, as: 'state' property :value, as: 'value' diff --git a/generated/google/apis/dialogflow_v3alpha1.rb b/generated/google/apis/dialogflow_v3alpha1.rb index 7b06f21e9..97ce81535 100644 --- a/generated/google/apis/dialogflow_v3alpha1.rb +++ b/generated/google/apis/dialogflow_v3alpha1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow/ module DialogflowV3alpha1 VERSION = 'V3alpha1' - REVISION = '20200526' + REVISION = '20200601' # 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/dialogflow_v3alpha1/classes.rb b/generated/google/apis/dialogflow_v3alpha1/classes.rb index 1e23795cf..f3f0a62b2 100644 --- a/generated/google/apis/dialogflow_v3alpha1/classes.rb +++ b/generated/google/apis/dialogflow_v3alpha1/classes.rb @@ -66,17 +66,6 @@ module Google # @return [Google::Apis::DialogflowV3alpha1::GoogleCloudDialogflowCxV3beta1PageInfoFormInfo] attr_accessor :form_info - # Deprecated. Please use WebhookResponse.target_page or - # WebhookResponse.target_flow instead. - # Optional for WebhookResponse. - # The unique identifier of the next page. This field can be set by the - # webhook to immediately transition to a page different from `current_page`. - # Format: `projects//locations//agents//flows//pages/`. - # Corresponds to the JSON property `nextPage` - # @return [String] - attr_accessor :next_page - def initialize(**args) update!(**args) end @@ -85,7 +74,6 @@ module Google def update!(**args) @current_page = args[:current_page] if args.key?(:current_page) @form_info = args[:form_info] if args.key?(:form_info) - @next_page = args[:next_page] if args.key?(:next_page) end end @@ -100,12 +88,6 @@ module Google # @return [Array] attr_accessor :parameter_info - # Always present for WebhookRequest. Ignored for WebhookResponse. - # The current state of the form. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - def initialize(**args) update!(**args) end @@ -113,7 +95,6 @@ module Google # Update properties of this object def update!(**args) @parameter_info = args[:parameter_info] if args.key?(:parameter_info) - @state = args[:state] if args.key?(:state) end end @@ -137,14 +118,6 @@ module Google attr_accessor :just_collected alias_method :just_collected?, :just_collected - # Not set for WebhookRequest. Optional for WebhookResponse. - # The prompt to send to the user to fill a required form parameter. This - # field can be set by the webhook. If set, this field overrides the - # prompt defined for the form parameter. - # Corresponds to the JSON property `prompt` - # @return [Array] - attr_accessor :prompt - # Optional for both WebhookRequest and WebhookResponse. # Indicates whether the parameter is required. Optional parameters will # not trigger prompts; however, they are filled if the user specifies @@ -178,7 +151,6 @@ module Google def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @just_collected = args[:just_collected] if args.key?(:just_collected) - @prompt = args[:prompt] if args.key?(:prompt) @required = args[:required] if args.key?(:required) @state = args[:state] if args.key?(:state) @value = args[:value] if args.key?(:value) diff --git a/generated/google/apis/dialogflow_v3alpha1/representations.rb b/generated/google/apis/dialogflow_v3alpha1/representations.rb index b20796098..4a3ec81f0 100644 --- a/generated/google/apis/dialogflow_v3alpha1/representations.rb +++ b/generated/google/apis/dialogflow_v3alpha1/representations.rb @@ -858,7 +858,6 @@ module Google property :current_page, as: 'currentPage' property :form_info, as: 'formInfo', class: Google::Apis::DialogflowV3alpha1::GoogleCloudDialogflowCxV3beta1PageInfoFormInfo, decorator: Google::Apis::DialogflowV3alpha1::GoogleCloudDialogflowCxV3beta1PageInfoFormInfo::Representation - property :next_page, as: 'nextPage' end end @@ -867,7 +866,6 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation collection :parameter_info, as: 'parameterInfo', class: Google::Apis::DialogflowV3alpha1::GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo, decorator: Google::Apis::DialogflowV3alpha1::GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo::Representation - property :state, as: 'state' end end @@ -876,8 +874,6 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :display_name, as: 'displayName' property :just_collected, as: 'justCollected' - collection :prompt, as: 'prompt', class: Google::Apis::DialogflowV3alpha1::GoogleCloudDialogflowCxV3beta1ResponseMessage, decorator: Google::Apis::DialogflowV3alpha1::GoogleCloudDialogflowCxV3beta1ResponseMessage::Representation - property :required, as: 'required' property :state, as: 'state' property :value, as: 'value' diff --git a/generated/google/apis/displayvideo_v1.rb b/generated/google/apis/displayvideo_v1.rb index 2a4f4643d..c50136dca 100644 --- a/generated/google/apis/displayvideo_v1.rb +++ b/generated/google/apis/displayvideo_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/display-video/ module DisplayvideoV1 VERSION = 'V1' - REVISION = '20200528' + REVISION = '20200602' # Create, see, edit, and permanently delete your Display & Video 360 entities and reports AUTH_DISPLAY_VIDEO = 'https://www.googleapis.com/auth/display-video' diff --git a/generated/google/apis/firebasehosting_v1beta1.rb b/generated/google/apis/firebasehosting_v1beta1.rb index 1b47d0768..d4db693d0 100644 --- a/generated/google/apis/firebasehosting_v1beta1.rb +++ b/generated/google/apis/firebasehosting_v1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://firebase.google.com/docs/hosting/ module FirebasehostingV1beta1 VERSION = 'V1beta1' - REVISION = '20200512' + REVISION = '20200601' # 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/firebasehosting_v1beta1/classes.rb b/generated/google/apis/firebasehosting_v1beta1/classes.rb index 09359284a..e6d4a6b0b 100644 --- a/generated/google/apis/firebasehosting_v1beta1/classes.rb +++ b/generated/google/apis/firebasehosting_v1beta1/classes.rb @@ -292,13 +292,14 @@ module Google end end - # A [`header`](/docs/hosting/full-config#headers) defines custom headers to - # add to a response should the request URL path match the pattern. + # A [`header`](/docs/hosting/full-config#headers) is an object that specifies + # a URL pattern that, if matched to the request URL path, triggers Hosting to + # apply the specified custom response headers. class Header include Google::Apis::Core::Hashable - # The user-supplied [glob - # pattern](/docs/hosting/full-config#glob_pattern_matching) to match + # The user-supplied + # [glob](/docs/hosting/full-config#glob_pattern_matching) to match # against the request URL path. # Corresponds to the JSON property `glob` # @return [String] @@ -575,14 +576,14 @@ module Google end end - # A [`redirect`](/docs/hosting/full-config#redirects) represents the - # configuration for returning an HTTP redirect response given a matching - # request URL path. + # A [`redirect`](/docs/hosting/full-config#redirects) object specifies a URL + # pattern that, if matched to the request URL path, triggers Hosting to + # respond with a redirect to the specified destination path. class Redirect include Google::Apis::Core::Hashable - # The user-supplied [glob - # pattern](/docs/hosting/full-config#glob_pattern_matching) to match + # The user-supplied + # [glob](/docs/hosting/full-config#glob_pattern_matching) to match # against the request URL path. # Corresponds to the JSON property `glob` # @return [String] @@ -684,10 +685,9 @@ module Google end end - # A [`rewrite`](/docs/hosting/full-config#rewrites) represents an internal - # content rewrite on the version. If the pattern matches, the request will be - # handled as if it were to the destination path specified in the - # configuration. + # A [`rewrite`](/docs/hosting/full-config#rewrites) object specifies a URL + # pattern that, if matched to the request URL path, triggers Hosting to + # respond as if the service were given the specified destination URL. class Rewrite include Google::Apis::Core::Hashable @@ -703,8 +703,8 @@ module Google # @return [String] attr_accessor :function - # The user-supplied [glob - # pattern](/docs/hosting/full-config#glob_pattern_matching) to match + # The user-supplied + # [glob](/docs/hosting/full-config#glob_pattern_matching) to match # against the request URL path. # Corresponds to the JSON property `glob` # @return [String] @@ -746,8 +746,9 @@ module Google end # The configuration for how incoming requests to a site should be routed and - # processed before serving content. The patterns are matched and applied - # according to a specific + # processed before serving content. The URL request paths are matched against + # the specified URL patterns in the configuration, then Hosting applies the + # applicable configuration according to a specific # [priority order](/docs/hosting/full-config#hosting_priority_order). class ServingConfig include Google::Apis::Core::Hashable @@ -763,20 +764,23 @@ module Google attr_accessor :clean_urls alias_method :clean_urls?, :clean_urls - # A list of custom response headers that are added to the content if the - # request URL path matches the glob. + # An array of objects, where each object specifies a URL pattern that, if + # matched to the request URL path, triggers Hosting to apply the specified + # custom response headers. # Corresponds to the JSON property `headers` # @return [Array] attr_accessor :headers - # A list of globs that will cause the response to redirect to another - # location. + # An array of objects (called redirect rules), where each rule specifies a + # URL pattern that, if matched to the request URL path, triggers Hosting to + # respond with a redirect to the specified destination path. # Corresponds to the JSON property `redirects` # @return [Array] attr_accessor :redirects - # A list of rewrites that will act as if the service were given the - # destination URL. + # An array of objects (called rewrite rules), where each rule specifies a URL + # pattern that, if matched to the request URL path, triggers Hosting to + # respond as if the service were given the specified destination URL. # Corresponds to the JSON property `rewrites` # @return [Array] attr_accessor :rewrites @@ -878,8 +882,9 @@ module Google include Google::Apis::Core::Hashable # The configuration for how incoming requests to a site should be routed and - # processed before serving content. The patterns are matched and applied - # according to a specific + # processed before serving content. The URL request paths are matched against + # the specified URL patterns in the configuration, then Hosting applies the + # applicable configuration according to a specific # [priority order](/docs/hosting/full-config#hosting_priority_order). # Corresponds to the JSON property `config` # @return [Google::Apis::FirebasehostingV1beta1::ServingConfig] diff --git a/generated/google/apis/healthcare_v1.rb b/generated/google/apis/healthcare_v1.rb index 7aa5c29c4..777e3d621 100644 --- a/generated/google/apis/healthcare_v1.rb +++ b/generated/google/apis/healthcare_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/healthcare module HealthcareV1 VERSION = 'V1' - REVISION = '20200515' + REVISION = '20200525' # 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/healthcare_v1/classes.rb b/generated/google/apis/healthcare_v1/classes.rb index 14ca90c8f..4db917734 100644 --- a/generated/google/apis/healthcare_v1/classes.rb +++ b/generated/google/apis/healthcare_v1/classes.rb @@ -307,7 +307,7 @@ module Google class Dataset include Google::Apis::Core::Hashable - # Output only. Resource name of the dataset, of the form + # Resource name of the dataset, of the form # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id``. # Corresponds to the JSON property `name` # @return [String] @@ -617,7 +617,7 @@ module Google # @return [Hash] attr_accessor :labels - # Output only. Resource name of the DICOM store, of the form + # Resource name of the DICOM store, of the form # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``. # Corresponds to the JSON property `name` @@ -1320,7 +1320,7 @@ module Google # @return [Hash] attr_accessor :labels - # Output only. Resource name of the HL7v2 store, of the form + # Resource name of the HL7v2 store, of the form # `projects/`project_id`/datasets/`dataset_id`/hl7V2Stores/`hl7v2_store_id``. # Corresponds to the JSON property `name` # @return [String] diff --git a/generated/google/apis/healthcare_v1/service.rb b/generated/google/apis/healthcare_v1/service.rb index c5ce94622..a66778c49 100644 --- a/generated/google/apis/healthcare_v1/service.rb +++ b/generated/google/apis/healthcare_v1/service.rb @@ -285,7 +285,7 @@ module Google # Updates dataset metadata. # @param [String] name - # Output only. Resource name of the dataset, of the form + # Resource name of the dataset, of the form # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id``. # @param [Google::Apis::HealthcareV1::Dataset] dataset_object # @param [String] update_mask @@ -712,7 +712,7 @@ module Google # Updates the specified DICOM store. # @param [String] name - # Output only. Resource name of the DICOM store, of the form + # Resource name of the DICOM store, of the form # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``. # @param [Google::Apis::HealthcareV1::DicomStore] dicom_store_object @@ -2935,7 +2935,7 @@ module Google # Updates the HL7v2 store. # @param [String] name - # Output only. Resource name of the HL7v2 store, of the form + # Resource name of the HL7v2 store, of the form # `projects/`project_id`/datasets/`dataset_id`/hl7V2Stores/`hl7v2_store_id``. # @param [Google::Apis::HealthcareV1::Hl7V2Store] hl7_v2_store_object # @param [String] update_mask diff --git a/generated/google/apis/healthcare_v1beta1.rb b/generated/google/apis/healthcare_v1beta1.rb index bccdb4c53..c48eb5178 100644 --- a/generated/google/apis/healthcare_v1beta1.rb +++ b/generated/google/apis/healthcare_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/healthcare module HealthcareV1beta1 VERSION = 'V1beta1' - REVISION = '20200515' + REVISION = '20200525' # 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/healthcare_v1beta1/classes.rb b/generated/google/apis/healthcare_v1beta1/classes.rb index 861eac41d..c326d846a 100644 --- a/generated/google/apis/healthcare_v1beta1/classes.rb +++ b/generated/google/apis/healthcare_v1beta1/classes.rb @@ -307,7 +307,7 @@ module Google class Dataset include Google::Apis::Core::Hashable - # Output only. Resource name of the dataset, of the form + # Resource name of the dataset, of the form # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id``. # Corresponds to the JSON property `name` # @return [String] @@ -675,7 +675,7 @@ module Google # @return [Hash] attr_accessor :labels - # Output only. Resource name of the DICOM store, of the form + # Resource name of the DICOM store, of the form # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``. # Corresponds to the JSON property `name` @@ -1707,7 +1707,7 @@ module Google # @return [Hash] attr_accessor :labels - # Output only. Resource name of the HL7v2 store, of the form + # Resource name of the HL7v2 store, of the form # `projects/`project_id`/datasets/`dataset_id`/hl7V2Stores/`hl7v2_store_id``. # Corresponds to the JSON property `name` # @return [String] diff --git a/generated/google/apis/healthcare_v1beta1/service.rb b/generated/google/apis/healthcare_v1beta1/service.rb index 3953e09bc..be7afe216 100644 --- a/generated/google/apis/healthcare_v1beta1/service.rb +++ b/generated/google/apis/healthcare_v1beta1/service.rb @@ -357,7 +357,7 @@ module Google # Updates dataset metadata. # @param [String] name - # Output only. Resource name of the dataset, of the form + # Resource name of the dataset, of the form # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id``. # @param [Google::Apis::HealthcareV1beta1::Dataset] dataset_object # @param [String] update_mask @@ -907,7 +907,7 @@ module Google # Updates the specified DICOM store. # @param [String] name - # Output only. Resource name of the DICOM store, of the form + # Resource name of the DICOM store, of the form # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``. # @param [Google::Apis::HealthcareV1beta1::DicomStore] dicom_store_object @@ -3482,7 +3482,7 @@ module Google # Updates the HL7v2 store. # @param [String] name - # Output only. Resource name of the HL7v2 store, of the form + # Resource name of the HL7v2 store, of the form # `projects/`project_id`/datasets/`dataset_id`/hl7V2Stores/`hl7v2_store_id``. # @param [Google::Apis::HealthcareV1beta1::Hl7V2Store] hl7_v2_store_object # @param [String] update_mask diff --git a/generated/google/apis/people_v1.rb b/generated/google/apis/people_v1.rb index 50c7cb83d..eed6478ec 100644 --- a/generated/google/apis/people_v1.rb +++ b/generated/google/apis/people_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/people/ module PeopleV1 VERSION = 'V1' - REVISION = '20200513' + REVISION = '20200601' # See, edit, download, and permanently delete your contacts AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts' diff --git a/generated/google/apis/people_v1/classes.rb b/generated/google/apis/people_v1/classes.rb index 77cd69c40..67e770b55 100644 --- a/generated/google/apis/people_v1/classes.rb +++ b/generated/google/apis/people_v1/classes.rb @@ -423,6 +423,64 @@ module Google end end + # A request to copy an other contact to my contacts group. + class CopyOtherContactToMyContactsGroupRequest + include Google::Apis::Core::Hashable + + # Required. A field mask to restrict which fields are copied into the new + # contact. + # Valid values are: + # * emailAddresses + # * names + # * phoneNumbers + # Corresponds to the JSON property `copyMask` + # @return [String] + attr_accessor :copy_mask + + # Optional. A field mask to restrict which fields on the person are returned. + # Multiple + # fields can be specified by separating them with commas. Defaults to empty + # if not set, which will skip the post mutate get. Valid values are: + # * addresses + # * ageRanges + # * biographies + # * birthdays + # * coverPhotos + # * emailAddresses + # * events + # * genders + # * imClients + # * interests + # * locales + # * memberships + # * metadata + # * names + # * nicknames + # * occupations + # * organizations + # * phoneNumbers + # * photos + # * relations + # * residences + # * sipAddresses + # * skills + # * urls + # * userDefined + # Corresponds to the JSON property `readMask` + # @return [String] + attr_accessor :read_mask + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @copy_mask = args[:copy_mask] if args.key?(:copy_mask) + @read_mask = args[:read_mask] if args.key?(:read_mask) + end + end + # A person's cover photo. A large image shown on the person's # profile page that represents who they are or what they care about. class CoverPhoto @@ -955,6 +1013,42 @@ module Google end end + # The response to a request for the authenticated user's other contacts. + class ListOtherContactsResponse + include Google::Apis::Core::Hashable + + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # A token, which can be sent as `sync_token` to retrieve changes since the + # last request. Request must set `request_sync_token` to return the sync + # token. + # Corresponds to the JSON property `nextSyncToken` + # @return [String] + attr_accessor :next_sync_token + + # The list of other contacts returned as Person resources. Other contacts + # support a limited subset of supported fields. See + # ListOtherContactsRequest.request_mask for more detailed information. + # Corresponds to the JSON property `otherContacts` + # @return [Array] + attr_accessor :other_contacts + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token) + @other_contacts = args[:other_contacts] if args.key?(:other_contacts) + end + end + # A person's locale preference. class Locale include Google::Apis::Core::Hashable diff --git a/generated/google/apis/people_v1/representations.rb b/generated/google/apis/people_v1/representations.rb index 0d0666b93..ebd2aa9da 100644 --- a/generated/google/apis/people_v1/representations.rb +++ b/generated/google/apis/people_v1/representations.rb @@ -82,6 +82,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class CopyOtherContactToMyContactsGroupRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CoverPhoto class Representation < Google::Apis::Core::JsonRepresentation; end @@ -172,6 +178,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListOtherContactsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Locale class Representation < Google::Apis::Core::JsonRepresentation; end @@ -448,6 +460,14 @@ module Google end end + class CopyOtherContactToMyContactsGroupRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :copy_mask, as: 'copyMask' + property :read_mask, as: 'readMask' + end + end + class CoverPhoto # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -594,6 +614,16 @@ module Google end end + class ListOtherContactsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + property :next_sync_token, as: 'nextSyncToken' + collection :other_contacts, as: 'otherContacts', class: Google::Apis::PeopleV1::Person, decorator: Google::Apis::PeopleV1::Person::Representation + + end + end + class Locale # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/people_v1/service.rb b/generated/google/apis/people_v1/service.rb index 292c41e72..17665e1ee 100644 --- a/generated/google/apis/people_v1/service.rb +++ b/generated/google/apis/people_v1/service.rb @@ -296,6 +296,39 @@ module Google execute_or_queue_command(command, &block) end + # Copies an other contact to a new contact in the user's MY_CONTACTS group + # @param [String] resource_name + # Required. The resource name of the other contact to copy. + # @param [Google::Apis::PeopleV1::CopyOtherContactToMyContactsGroupRequest] copy_other_contact_to_my_contacts_group_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PeopleV1::Person] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PeopleV1::Person] + # + # @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 copy_other_contact_to_my_contacts_group(resource_name, copy_other_contact_to_my_contacts_group_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resourceName}:copyOtherContactToMyContactsGroup', options) + command.request_representation = Google::Apis::PeopleV1::CopyOtherContactToMyContactsGroupRequest::Representation + command.request_object = copy_other_contact_to_my_contacts_group_request_object + command.response_representation = Google::Apis::PeopleV1::Person::Representation + command.response_class = Google::Apis::PeopleV1::Person + command.params['resourceName'] = resource_name unless resource_name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Create a new contact and return the person resource for that contact. # @param [Google::Apis::PeopleV1::Person] person_object # @param [String] fields @@ -670,8 +703,7 @@ module Google execute_or_queue_command(command, &block) end - # Provides a list of the authenticated user's contacts merged with any - # connected profiles. + # Provides a list of the authenticated user's contacts. # The request throws a 400 error if 'personFields' is not specified. # @param [String] resource_name # Required. The resource name to return connections for. Only `people/me` is @@ -767,6 +799,67 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # List all other contacts, that is contacts that are not in a contact group. + # Other contacts are typically auto created contacts from interactions. + # @param [Fixnum] page_size + # Optional. The number of other contacts to include in the response. Valid + # values are + # between 1 and 1000, inclusive. Defaults to 100 if not set or set to 0. + # @param [String] page_token + # Optional. A page token, received from a previous `ListOtherContacts` call. + # Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to `ListOtherContacts` + # must match the call that provided the page token. + # @param [String] read_mask + # Required. A field mask to restrict which fields on each person are returned. + # Multiple + # fields can be specified by separating them with commas. Valid values are: + # * emailAddresses + # * names + # * phoneNumbers + # @param [Boolean] request_sync_token + # Optional. Whether the response should include `next_sync_token`, which can be + # used to + # get all changes since the last request. For subsequent sync requests use + # the `sync_token` param instead. Initial sync requests that specify + # `request_sync_token` have an additional rate limit. + # @param [String] sync_token + # Optional. A sync token, received from a previous `ListOtherContacts` call. + # Provide this to retrieve only the resources changed since the last request. + # Sync requests that specify `sync_token` have an additional rate limit. + # When syncing, all other parameters provided to `ListOtherContacts` + # must match the call that provided the sync token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PeopleV1::ListOtherContactsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PeopleV1::ListOtherContactsResponse] + # + # @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 other_contacts(page_size: nil, page_token: nil, read_mask: nil, request_sync_token: nil, sync_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/otherContacts', options) + command.response_representation = Google::Apis::PeopleV1::ListOtherContactsResponse::Representation + command.response_class = Google::Apis::PeopleV1::ListOtherContactsResponse + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['readMask'] = read_mask unless read_mask.nil? + command.query['requestSyncToken'] = request_sync_token unless request_sync_token.nil? + command.query['syncToken'] = sync_token unless sync_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end protected diff --git a/generated/google/apis/prod_tt_sasportal_v1alpha1.rb b/generated/google/apis/prod_tt_sasportal_v1alpha1.rb index 70005da8e..4eda0f06a 100644 --- a/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +++ b/generated/google/apis/prod_tt_sasportal_v1alpha1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/spectrum-access-system/ module ProdTtSasportalV1alpha1 VERSION = 'V1alpha1' - REVISION = '20200416' + REVISION = '20200601' # View your email address AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email' diff --git a/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb b/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb index cfbb31a54..7e4912296 100644 --- a/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +++ b/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb @@ -818,6 +818,36 @@ module Google execute_or_queue_command(command, &block) end + # Returns a requested node. + # @param [String] name + # Required. The name of the node. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode] + # + # @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_node(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha1/{+name}', options) + command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode::Representation + command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a device under a node or customer. Returned devices are unordered. # @param [String] parent # Required. The name of the parent resource. diff --git a/generated/google/apis/sasportal_v1alpha1.rb b/generated/google/apis/sasportal_v1alpha1.rb index 7f380e52e..7a09df35e 100644 --- a/generated/google/apis/sasportal_v1alpha1.rb +++ b/generated/google/apis/sasportal_v1alpha1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/spectrum-access-system/ module SasportalV1alpha1 VERSION = 'V1alpha1' - REVISION = '20200416' + REVISION = '20200601' # View your email address AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email' diff --git a/generated/google/apis/sasportal_v1alpha1/service.rb b/generated/google/apis/sasportal_v1alpha1/service.rb index 6bcf71c6a..0cef41909 100644 --- a/generated/google/apis/sasportal_v1alpha1/service.rb +++ b/generated/google/apis/sasportal_v1alpha1/service.rb @@ -818,6 +818,36 @@ module Google execute_or_queue_command(command, &block) end + # Returns a requested node. + # @param [String] name + # Required. The name of the node. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalNode] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SasportalV1alpha1::SasPortalNode] + # + # @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_node(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha1/{+name}', options) + command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalNode::Representation + command.response_class = Google::Apis::SasportalV1alpha1::SasPortalNode + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a device under a node or customer. Returned devices are unordered. # @param [String] parent # Required. The name of the parent resource. diff --git a/generated/google/apis/sql_v1beta4.rb b/generated/google/apis/sql_v1beta4.rb index 2f8423e96..7b65c5893 100644 --- a/generated/google/apis/sql_v1beta4.rb +++ b/generated/google/apis/sql_v1beta4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/cloud-sql/ module SqlV1beta4 VERSION = 'V1beta4' - REVISION = '20200310' + REVISION = '20200518' # 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/sql_v1beta4/classes.rb b/generated/google/apis/sql_v1beta4/classes.rb index 8286e1c21..4898cf419 100644 --- a/generated/google/apis/sql_v1beta4/classes.rb +++ b/generated/google/apis/sql_v1beta4/classes.rb @@ -956,6 +956,12 @@ module Google # @return [String] attr_accessor :kind + # Option for export offload. + # Corresponds to the JSON property `offload` + # @return [Boolean] + attr_accessor :offload + alias_method :offload?, :offload + # Options for exporting data as SQL statements. # Corresponds to the JSON property `sqlExportOptions` # @return [Google::Apis::SqlV1beta4::ExportContext::SqlExportOptions] @@ -981,6 +987,7 @@ module Google @databases = args[:databases] if args.key?(:databases) @file_type = args[:file_type] if args.key?(:file_type) @kind = args[:kind] if args.key?(:kind) + @offload = args[:offload] if args.key?(:offload) @sql_export_options = args[:sql_export_options] if args.key?(:sql_export_options) @uri = args[:uri] if args.key?(:uri) end diff --git a/generated/google/apis/sql_v1beta4/representations.rb b/generated/google/apis/sql_v1beta4/representations.rb index bc3271dc9..212b79882 100644 --- a/generated/google/apis/sql_v1beta4/representations.rb +++ b/generated/google/apis/sql_v1beta4/representations.rb @@ -669,6 +669,7 @@ module Google collection :databases, as: 'databases' property :file_type, as: 'fileType' property :kind, as: 'kind' + property :offload, as: 'offload' property :sql_export_options, as: 'sqlExportOptions', class: Google::Apis::SqlV1beta4::ExportContext::SqlExportOptions, decorator: Google::Apis::SqlV1beta4::ExportContext::SqlExportOptions::Representation property :uri, as: 'uri'