Autogenerated update (2019-06-16)
Update: - bigtableadmin_v1 - bigtableadmin_v2 - dataproc_v1 - dataproc_v1beta2 - dns_v1beta2 - file_v1beta1
This commit is contained in:
parent
5a8f301209
commit
cebc1b257f
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/bigtable/
|
||||
module BigtableadminV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190328'
|
||||
REVISION = '20190506'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -295,78 +295,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The response message for Locations.ListLocations.
|
||||
class ListLocationsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A list of locations that matches the specified filter in the request.
|
||||
# Corresponds to the JSON property `locations`
|
||||
# @return [Array<Google::Apis::BigtableadminV1::Location>]
|
||||
attr_accessor :locations
|
||||
|
||||
# The standard List next-page token.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@locations = args[:locations] if args.key?(:locations)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
end
|
||||
end
|
||||
|
||||
# A resource that represents Google Cloud Platform location.
|
||||
class Location
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The friendly name for this location, typically a nearby city name.
|
||||
# For example, "Tokyo".
|
||||
# Corresponds to the JSON property `displayName`
|
||||
# @return [String]
|
||||
attr_accessor :display_name
|
||||
|
||||
# Cross-service attributes for the location. For example
|
||||
# `"cloud.googleapis.com/region": "us-east1"`
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# The canonical id for this location. For example: `"us-east1"`.
|
||||
# Corresponds to the JSON property `locationId`
|
||||
# @return [String]
|
||||
attr_accessor :location_id
|
||||
|
||||
# Service-specific metadata. For example the available capacity at the given
|
||||
# location.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :metadata
|
||||
|
||||
# Resource name for the location, which may vary between implementations.
|
||||
# For example: `"projects/example-project/locations/us-east1"`
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@display_name = args[:display_name] if args.key?(:display_name)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@location_id = args[:location_id] if args.key?(:location_id)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
end
|
||||
end
|
||||
|
||||
# Request message for BigtableInstanceAdmin.PartialUpdateInstance.
|
||||
class PartialUpdateInstanceRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -58,18 +58,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListLocationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Location
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PartialUpdateInstanceRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -166,26 +154,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ListLocationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :locations, as: 'locations', class: Google::Apis::BigtableadminV1::Location, decorator: Google::Apis::BigtableadminV1::Location::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class Location
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :display_name, as: 'displayName'
|
||||
hash :labels, as: 'labels'
|
||||
property :location_id, as: 'locationId'
|
||||
hash :metadata, as: 'metadata'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class PartialUpdateInstanceRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -46,75 +46,6 @@ module Google
|
|||
super('https://bigtableadmin.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Gets information about a location.
|
||||
# @param [String] name
|
||||
# Resource name for the location.
|
||||
# @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::BigtableadminV1::Location] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::BigtableadminV1::Location]
|
||||
#
|
||||
# @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_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::BigtableadminV1::Location::Representation
|
||||
command.response_class = Google::Apis::BigtableadminV1::Location
|
||||
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
|
||||
|
||||
# Lists information about the supported locations for this service.
|
||||
# @param [String] name
|
||||
# The resource that owns the locations collection, if applicable.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] page_token
|
||||
# The standard list page 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::BigtableadminV1::ListLocationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::BigtableadminV1::ListLocationsResponse]
|
||||
#
|
||||
# @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_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}/locations', options)
|
||||
command.response_representation = Google::Apis::BigtableadminV1::ListLocationsResponse::Representation
|
||||
command.response_class = Google::Apis::BigtableadminV1::ListLocationsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_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
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/bigtable/
|
||||
module BigtableadminV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20190406'
|
||||
REVISION = '20190506'
|
||||
|
||||
# Administer your Cloud Bigtable tables and clusters
|
||||
AUTH_BIGTABLE_ADMIN = 'https://www.googleapis.com/auth/bigtable.admin'
|
||||
|
|
|
@ -952,6 +952,31 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The response message for Locations.ListLocations.
|
||||
class ListLocationsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A list of locations that matches the specified filter in the request.
|
||||
# Corresponds to the JSON property `locations`
|
||||
# @return [Array<Google::Apis::BigtableadminV2::Location>]
|
||||
attr_accessor :locations
|
||||
|
||||
# The standard List next-page token.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@locations = args[:locations] if args.key?(:locations)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
end
|
||||
end
|
||||
|
||||
# The response message for Operations.ListOperations.
|
||||
class ListOperationsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -1005,6 +1030,53 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# A resource that represents Google Cloud Platform location.
|
||||
class Location
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The friendly name for this location, typically a nearby city name.
|
||||
# For example, "Tokyo".
|
||||
# Corresponds to the JSON property `displayName`
|
||||
# @return [String]
|
||||
attr_accessor :display_name
|
||||
|
||||
# Cross-service attributes for the location. For example
|
||||
# `"cloud.googleapis.com/region": "us-east1"`
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# The canonical id for this location. For example: `"us-east1"`.
|
||||
# Corresponds to the JSON property `locationId`
|
||||
# @return [String]
|
||||
attr_accessor :location_id
|
||||
|
||||
# Service-specific metadata. For example the available capacity at the given
|
||||
# location.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :metadata
|
||||
|
||||
# Resource name for the location, which may vary between implementations.
|
||||
# For example: `"projects/example-project/locations/us-east1"`
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@display_name = args[:display_name] if args.key?(:display_name)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@location_id = args[:location_id] if args.key?(:location_id)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
end
|
||||
end
|
||||
|
||||
# A create, update, or delete of a particular column family.
|
||||
class Modification
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -178,6 +178,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListLocationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -190,6 +196,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Location
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Modification
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -537,6 +549,15 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ListLocationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :locations, as: 'locations', class: Google::Apis::BigtableadminV2::Location, decorator: Google::Apis::BigtableadminV2::Location::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -555,6 +576,17 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Location
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :display_name, as: 'displayName'
|
||||
hash :labels, as: 'labels'
|
||||
property :location_id, as: 'locationId'
|
||||
hash :metadata, as: 'metadata'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class Modification
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -1277,6 +1277,75 @@ module Google
|
|||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets information about a location.
|
||||
# @param [String] name
|
||||
# Resource name for the location.
|
||||
# @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::BigtableadminV2::Location] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::BigtableadminV2::Location]
|
||||
#
|
||||
# @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_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v2/{+name}', options)
|
||||
command.response_representation = Google::Apis::BigtableadminV2::Location::Representation
|
||||
command.response_class = Google::Apis::BigtableadminV2::Location
|
||||
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
|
||||
|
||||
# Lists information about the supported locations for this service.
|
||||
# @param [String] name
|
||||
# The resource that owns the locations collection, if applicable.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] page_token
|
||||
# The standard list page 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::BigtableadminV2::ListLocationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::BigtableadminV2::ListLocationsResponse]
|
||||
#
|
||||
# @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_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v2/{+name}/locations', options)
|
||||
command.response_representation = Google::Apis::BigtableadminV2::ListLocationsResponse::Representation
|
||||
command.response_class = Google::Apis::BigtableadminV2::ListLocationsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_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
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/dataproc/
|
||||
module DataprocV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190523'
|
||||
REVISION = '20190606'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1609,38 +1609,10 @@ module Google
|
|||
|
||||
# The Status type defines a logical error model that is suitable for different
|
||||
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
||||
# (https://github.com/grpc). The error model is designed to be:
|
||||
# Simple to use and understand for most users
|
||||
# Flexible enough to meet unexpected needsOverviewThe Status message contains
|
||||
# three pieces of data: error code, error message, and error details. The error
|
||||
# code should be an enum value of google.rpc.Code, but it may accept additional
|
||||
# error codes if needed. The error message should be a developer-facing English
|
||||
# message that helps developers understand and resolve the error. If a localized
|
||||
# user-facing error message is needed, put the localized message in the error
|
||||
# details or localize it in the client. The optional error details may contain
|
||||
# arbitrary information about the error. There is a predefined set of error
|
||||
# detail types in the package google.rpc that can be used for common error
|
||||
# conditions.Language mappingThe Status message is the logical representation of
|
||||
# the error model, but it is not necessarily the actual wire format. When the
|
||||
# Status message is exposed in different client libraries and different wire
|
||||
# protocols, it can be mapped differently. For example, it will likely be mapped
|
||||
# to some exceptions in Java, but more likely mapped to some error codes in C.
|
||||
# Other usesThe error model and the Status message can be used in a variety of
|
||||
# environments, either with or without APIs, to provide a consistent developer
|
||||
# experience across different environments.Example uses of this error model
|
||||
# include:
|
||||
# Partial errors. If a service needs to return partial errors to the client, it
|
||||
# may embed the Status in the normal response to indicate the partial errors.
|
||||
# Workflow errors. A typical workflow has multiple steps. Each step may have a
|
||||
# Status message for error reporting.
|
||||
# Batch operations. If a client uses batch request and batch response, the
|
||||
# Status message should be used directly inside batch response, one for each
|
||||
# error sub-response.
|
||||
# Asynchronous operations. If an API call embeds asynchronous operation results
|
||||
# in its response, the status of those operations should be represented directly
|
||||
# using the Status message.
|
||||
# Logging. If some API errors are stored in logs, the message Status could be
|
||||
# used directly after any stripping needed for security/privacy reasons.
|
||||
# (https://github.com/grpc). Each Status message contains three pieces of data:
|
||||
# error code, error message, and error details.You can find out more about this
|
||||
# error model and how to work with it in the API Design Guide (https://cloud.
|
||||
# google.com/apis/design/errors).
|
||||
# Corresponds to the JSON property `error`
|
||||
# @return [Google::Apis::DataprocV1::Status]
|
||||
attr_accessor :error
|
||||
|
@ -2307,38 +2279,10 @@ module Google
|
|||
|
||||
# The Status type defines a logical error model that is suitable for different
|
||||
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
||||
# (https://github.com/grpc). The error model is designed to be:
|
||||
# Simple to use and understand for most users
|
||||
# Flexible enough to meet unexpected needsOverviewThe Status message contains
|
||||
# three pieces of data: error code, error message, and error details. The error
|
||||
# code should be an enum value of google.rpc.Code, but it may accept additional
|
||||
# error codes if needed. The error message should be a developer-facing English
|
||||
# message that helps developers understand and resolve the error. If a localized
|
||||
# user-facing error message is needed, put the localized message in the error
|
||||
# details or localize it in the client. The optional error details may contain
|
||||
# arbitrary information about the error. There is a predefined set of error
|
||||
# detail types in the package google.rpc that can be used for common error
|
||||
# conditions.Language mappingThe Status message is the logical representation of
|
||||
# the error model, but it is not necessarily the actual wire format. When the
|
||||
# Status message is exposed in different client libraries and different wire
|
||||
# protocols, it can be mapped differently. For example, it will likely be mapped
|
||||
# to some exceptions in Java, but more likely mapped to some error codes in C.
|
||||
# Other usesThe error model and the Status message can be used in a variety of
|
||||
# environments, either with or without APIs, to provide a consistent developer
|
||||
# experience across different environments.Example uses of this error model
|
||||
# include:
|
||||
# Partial errors. If a service needs to return partial errors to the client, it
|
||||
# may embed the Status in the normal response to indicate the partial errors.
|
||||
# Workflow errors. A typical workflow has multiple steps. Each step may have a
|
||||
# Status message for error reporting.
|
||||
# Batch operations. If a client uses batch request and batch response, the
|
||||
# Status message should be used directly inside batch response, one for each
|
||||
# error sub-response.
|
||||
# Asynchronous operations. If an API call embeds asynchronous operation results
|
||||
# in its response, the status of those operations should be represented directly
|
||||
# using the Status message.
|
||||
# Logging. If some API errors are stored in logs, the message Status could be
|
||||
# used directly after any stripping needed for security/privacy reasons.
|
||||
# (https://github.com/grpc). Each Status message contains three pieces of data:
|
||||
# error code, error message, and error details.You can find out more about this
|
||||
# error model and how to work with it in the API Design Guide (https://cloud.
|
||||
# google.com/apis/design/errors).
|
||||
class Status
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/dataproc/
|
||||
module DataprocV1beta2
|
||||
VERSION = 'V1beta2'
|
||||
REVISION = '20190523'
|
||||
REVISION = '20190606'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1969,38 +1969,10 @@ module Google
|
|||
|
||||
# The Status type defines a logical error model that is suitable for different
|
||||
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
||||
# (https://github.com/grpc). The error model is designed to be:
|
||||
# Simple to use and understand for most users
|
||||
# Flexible enough to meet unexpected needsOverviewThe Status message contains
|
||||
# three pieces of data: error code, error message, and error details. The error
|
||||
# code should be an enum value of google.rpc.Code, but it may accept additional
|
||||
# error codes if needed. The error message should be a developer-facing English
|
||||
# message that helps developers understand and resolve the error. If a localized
|
||||
# user-facing error message is needed, put the localized message in the error
|
||||
# details or localize it in the client. The optional error details may contain
|
||||
# arbitrary information about the error. There is a predefined set of error
|
||||
# detail types in the package google.rpc that can be used for common error
|
||||
# conditions.Language mappingThe Status message is the logical representation of
|
||||
# the error model, but it is not necessarily the actual wire format. When the
|
||||
# Status message is exposed in different client libraries and different wire
|
||||
# protocols, it can be mapped differently. For example, it will likely be mapped
|
||||
# to some exceptions in Java, but more likely mapped to some error codes in C.
|
||||
# Other usesThe error model and the Status message can be used in a variety of
|
||||
# environments, either with or without APIs, to provide a consistent developer
|
||||
# experience across different environments.Example uses of this error model
|
||||
# include:
|
||||
# Partial errors. If a service needs to return partial errors to the client, it
|
||||
# may embed the Status in the normal response to indicate the partial errors.
|
||||
# Workflow errors. A typical workflow has multiple steps. Each step may have a
|
||||
# Status message for error reporting.
|
||||
# Batch operations. If a client uses batch request and batch response, the
|
||||
# Status message should be used directly inside batch response, one for each
|
||||
# error sub-response.
|
||||
# Asynchronous operations. If an API call embeds asynchronous operation results
|
||||
# in its response, the status of those operations should be represented directly
|
||||
# using the Status message.
|
||||
# Logging. If some API errors are stored in logs, the message Status could be
|
||||
# used directly after any stripping needed for security/privacy reasons.
|
||||
# (https://github.com/grpc). Each Status message contains three pieces of data:
|
||||
# error code, error message, and error details.You can find out more about this
|
||||
# error model and how to work with it in the API Design Guide (https://cloud.
|
||||
# google.com/apis/design/errors).
|
||||
# Corresponds to the JSON property `error`
|
||||
# @return [Google::Apis::DataprocV1beta2::Status]
|
||||
attr_accessor :error
|
||||
|
@ -2818,38 +2790,10 @@ module Google
|
|||
|
||||
# The Status type defines a logical error model that is suitable for different
|
||||
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
||||
# (https://github.com/grpc). The error model is designed to be:
|
||||
# Simple to use and understand for most users
|
||||
# Flexible enough to meet unexpected needsOverviewThe Status message contains
|
||||
# three pieces of data: error code, error message, and error details. The error
|
||||
# code should be an enum value of google.rpc.Code, but it may accept additional
|
||||
# error codes if needed. The error message should be a developer-facing English
|
||||
# message that helps developers understand and resolve the error. If a localized
|
||||
# user-facing error message is needed, put the localized message in the error
|
||||
# details or localize it in the client. The optional error details may contain
|
||||
# arbitrary information about the error. There is a predefined set of error
|
||||
# detail types in the package google.rpc that can be used for common error
|
||||
# conditions.Language mappingThe Status message is the logical representation of
|
||||
# the error model, but it is not necessarily the actual wire format. When the
|
||||
# Status message is exposed in different client libraries and different wire
|
||||
# protocols, it can be mapped differently. For example, it will likely be mapped
|
||||
# to some exceptions in Java, but more likely mapped to some error codes in C.
|
||||
# Other usesThe error model and the Status message can be used in a variety of
|
||||
# environments, either with or without APIs, to provide a consistent developer
|
||||
# experience across different environments.Example uses of this error model
|
||||
# include:
|
||||
# Partial errors. If a service needs to return partial errors to the client, it
|
||||
# may embed the Status in the normal response to indicate the partial errors.
|
||||
# Workflow errors. A typical workflow has multiple steps. Each step may have a
|
||||
# Status message for error reporting.
|
||||
# Batch operations. If a client uses batch request and batch response, the
|
||||
# Status message should be used directly inside batch response, one for each
|
||||
# error sub-response.
|
||||
# Asynchronous operations. If an API call embeds asynchronous operation results
|
||||
# in its response, the status of those operations should be represented directly
|
||||
# using the Status message.
|
||||
# Logging. If some API errors are stored in logs, the message Status could be
|
||||
# used directly after any stripping needed for security/privacy reasons.
|
||||
# (https://github.com/grpc). Each Status message contains three pieces of data:
|
||||
# error code, error message, and error details.You can find out more about this
|
||||
# error model and how to work with it in the API Design Guide (https://cloud.
|
||||
# google.com/apis/design/errors).
|
||||
class Status
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/cloud-dns
|
||||
module DnsV1beta2
|
||||
VERSION = 'V1beta2'
|
||||
REVISION = '20190418'
|
||||
REVISION = '20190611'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -47,7 +47,7 @@ module Google
|
|||
attr_accessor :user_ip
|
||||
|
||||
def initialize
|
||||
super('https://www.googleapis.com/', 'dns/v1beta2/projects/')
|
||||
super('https://dns.googleapis.com/', 'dns/v1beta2/projects/')
|
||||
@batch_path = 'batch/dns/v1beta2'
|
||||
end
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/filestore/
|
||||
module FileV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20190605'
|
||||
REVISION = '20190613'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -270,6 +270,14 @@ module Google
|
|||
class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Can this scheduled update be rescheduled?
|
||||
# By default, it's true and API needs to do explicitly check whether it's
|
||||
# set, if it's set as false explicitly, it's false
|
||||
# Corresponds to the JSON property `canReschedule`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_reschedule
|
||||
alias_method :can_reschedule?, :can_reschedule
|
||||
|
||||
# The scheduled end time for the maintenance.
|
||||
# Corresponds to the JSON property `endTime`
|
||||
# @return [String]
|
||||
|
@ -286,6 +294,7 @@ module Google
|
|||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@can_reschedule = args[:can_reschedule] if args.key?(:can_reschedule)
|
||||
@end_time = args[:end_time] if args.key?(:end_time)
|
||||
@start_time = args[:start_time] if args.key?(:start_time)
|
||||
end
|
||||
|
@ -801,43 +810,10 @@ module Google
|
|||
|
||||
# The `Status` type defines a logical error model that is suitable for
|
||||
# different programming environments, including REST APIs and RPC APIs. It is
|
||||
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||
# - Simple to use and understand for most users
|
||||
# - Flexible enough to meet unexpected needs
|
||||
# # Overview
|
||||
# The `Status` message contains three pieces of data: error code, error
|
||||
# message, and error details. The error code should be an enum value of
|
||||
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||
# error message should be a developer-facing English message that helps
|
||||
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||
# error message is needed, put the localized message in the error details or
|
||||
# localize it in the client. The optional error details may contain arbitrary
|
||||
# information about the error. There is a predefined set of error detail types
|
||||
# in the package `google.rpc` that can be used for common error conditions.
|
||||
# # Language mapping
|
||||
# The `Status` message is the logical representation of the error model, but it
|
||||
# is not necessarily the actual wire format. When the `Status` message is
|
||||
# exposed in different client libraries and different wire protocols, it can be
|
||||
# mapped differently. For example, it will likely be mapped to some exceptions
|
||||
# in Java, but more likely mapped to some error codes in C.
|
||||
# # Other uses
|
||||
# The error model and the `Status` message can be used in a variety of
|
||||
# environments, either with or without APIs, to provide a
|
||||
# consistent developer experience across different environments.
|
||||
# Example uses of this error model include:
|
||||
# - Partial errors. If a service needs to return partial errors to the client,
|
||||
# it may embed the `Status` in the normal response to indicate the partial
|
||||
# errors.
|
||||
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
||||
# have a `Status` message for error reporting.
|
||||
# - Batch operations. If a client uses batch request and batch response, the
|
||||
# `Status` message should be used directly inside batch response, one for
|
||||
# each error sub-response.
|
||||
# - Asynchronous operations. If an API call embeds asynchronous operation
|
||||
# results in its response, the status of those operations should be
|
||||
# represented directly using the `Status` message.
|
||||
# - Logging. If some API errors are stored in logs, the message `Status` could
|
||||
# be used directly after any stripping needed for security/privacy reasons.
|
||||
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||
# three pieces of data: error code, error message, and error details.
|
||||
# You can find out more about this error model and how to work with it in the
|
||||
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||
# Corresponds to the JSON property `error`
|
||||
# @return [Google::Apis::FileV1beta1::Status]
|
||||
attr_accessor :error
|
||||
|
@ -944,43 +920,10 @@ module Google
|
|||
|
||||
# The `Status` type defines a logical error model that is suitable for
|
||||
# different programming environments, including REST APIs and RPC APIs. It is
|
||||
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||
# - Simple to use and understand for most users
|
||||
# - Flexible enough to meet unexpected needs
|
||||
# # Overview
|
||||
# The `Status` message contains three pieces of data: error code, error
|
||||
# message, and error details. The error code should be an enum value of
|
||||
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||
# error message should be a developer-facing English message that helps
|
||||
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||
# error message is needed, put the localized message in the error details or
|
||||
# localize it in the client. The optional error details may contain arbitrary
|
||||
# information about the error. There is a predefined set of error detail types
|
||||
# in the package `google.rpc` that can be used for common error conditions.
|
||||
# # Language mapping
|
||||
# The `Status` message is the logical representation of the error model, but it
|
||||
# is not necessarily the actual wire format. When the `Status` message is
|
||||
# exposed in different client libraries and different wire protocols, it can be
|
||||
# mapped differently. For example, it will likely be mapped to some exceptions
|
||||
# in Java, but more likely mapped to some error codes in C.
|
||||
# # Other uses
|
||||
# The error model and the `Status` message can be used in a variety of
|
||||
# environments, either with or without APIs, to provide a
|
||||
# consistent developer experience across different environments.
|
||||
# Example uses of this error model include:
|
||||
# - Partial errors. If a service needs to return partial errors to the client,
|
||||
# it may embed the `Status` in the normal response to indicate the partial
|
||||
# errors.
|
||||
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
||||
# have a `Status` message for error reporting.
|
||||
# - Batch operations. If a client uses batch request and batch response, the
|
||||
# `Status` message should be used directly inside batch response, one for
|
||||
# each error sub-response.
|
||||
# - Asynchronous operations. If an API call embeds asynchronous operation
|
||||
# results in its response, the status of those operations should be
|
||||
# represented directly using the `Status` message.
|
||||
# - Logging. If some API errors are stored in logs, the message `Status` could
|
||||
# be used directly after any stripping needed for security/privacy reasons.
|
||||
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||
# three pieces of data: error code, error message, and error details.
|
||||
# You can find out more about this error model and how to work with it in the
|
||||
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||
class Status
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
|
|
@ -188,6 +188,7 @@ module Google
|
|||
class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :can_reschedule, as: 'canReschedule'
|
||||
property :end_time, as: 'endTime'
|
||||
property :start_time, as: 'startTime'
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue