Autogenerated update (2019-11-08)

Delete:
- sqladmin_v1beta4

Update:
- bigquerydatatransfer_v1
- bigqueryreservation_v1
- bigqueryreservation_v1alpha2
- bigqueryreservation_v1beta1
- ml_v1
- monitoring_v3
This commit is contained in:
Google APIs 2019-11-08 00:36:47 +00:00
parent 8ecce755b9
commit ea3d2c8785
22 changed files with 440 additions and 5898 deletions

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigquerydatatransferV1
VERSION = 'V1'
REVISION = '20190918'
REVISION = '20191103'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -368,6 +368,11 @@ module Google
# urn:ietf:wg:oauth:2.0:oob means that authorization code should be
# returned in the title bar of the browser, with the page text prompting
# the user to copy the code and paste it in the application.
# @param [String] service_account_name
# Optional service account name. If this field is set, transfer config will
# be created with this service account credentials. It requires that
# requesting user calling this API has permissions to act as this service
# account.
# @param [String] version_info
# Optional version info. If users want to find a very recent access token,
# that is, immediately after approving access, users have to set the
@ -392,7 +397,7 @@ 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 create_project_location_transfer_config(parent, transfer_config_object = nil, authorization_code: nil, version_info: nil, fields: nil, quota_user: nil, options: nil, &block)
def create_project_location_transfer_config(parent, transfer_config_object = nil, authorization_code: nil, service_account_name: nil, version_info: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/transferConfigs', options)
command.request_representation = Google::Apis::BigquerydatatransferV1::TransferConfig::Representation
command.request_object = transfer_config_object
@ -400,6 +405,7 @@ module Google
command.response_class = Google::Apis::BigquerydatatransferV1::TransferConfig
command.params['parent'] = parent unless parent.nil?
command.query['authorizationCode'] = authorization_code unless authorization_code.nil?
command.query['serviceAccountName'] = service_account_name unless service_account_name.nil?
command.query['versionInfo'] = version_info unless version_info.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@ -541,6 +547,12 @@ module Google
# urn:ietf:wg:oauth:2.0:oob means that authorization code should be
# returned in the title bar of the browser, with the page text prompting
# the user to copy the code and paste it in the application.
# @param [String] service_account_name
# Optional service account name. If this field is set and
# "service_account_name" is set in update_mask, transfer config will be
# updated to use this service account credentials. It requires that
# requesting user calling this API has permissions to act as this service
# account.
# @param [String] update_mask
# Required. Required list of fields to be updated in this request.
# @param [String] version_info
@ -567,7 +579,7 @@ 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 patch_project_location_transfer_config(name, transfer_config_object = nil, authorization_code: nil, update_mask: nil, version_info: nil, fields: nil, quota_user: nil, options: nil, &block)
def patch_project_location_transfer_config(name, transfer_config_object = nil, authorization_code: nil, service_account_name: nil, update_mask: nil, version_info: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::BigquerydatatransferV1::TransferConfig::Representation
command.request_object = transfer_config_object
@ -575,6 +587,7 @@ module Google
command.response_class = Google::Apis::BigquerydatatransferV1::TransferConfig
command.params['name'] = name unless name.nil?
command.query['authorizationCode'] = authorization_code unless authorization_code.nil?
command.query['serviceAccountName'] = service_account_name unless service_account_name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['versionInfo'] = version_info unless version_info.nil?
command.query['fields'] = fields unless fields.nil?
@ -838,6 +851,11 @@ module Google
# urn:ietf:wg:oauth:2.0:oob means that authorization code should be
# returned in the title bar of the browser, with the page text prompting
# the user to copy the code and paste it in the application.
# @param [String] service_account_name
# Optional service account name. If this field is set, transfer config will
# be created with this service account credentials. It requires that
# requesting user calling this API has permissions to act as this service
# account.
# @param [String] version_info
# Optional version info. If users want to find a very recent access token,
# that is, immediately after approving access, users have to set the
@ -862,7 +880,7 @@ 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 create_project_transfer_config(parent, transfer_config_object = nil, authorization_code: nil, version_info: nil, fields: nil, quota_user: nil, options: nil, &block)
def create_project_transfer_config(parent, transfer_config_object = nil, authorization_code: nil, service_account_name: nil, version_info: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/transferConfigs', options)
command.request_representation = Google::Apis::BigquerydatatransferV1::TransferConfig::Representation
command.request_object = transfer_config_object
@ -870,6 +888,7 @@ module Google
command.response_class = Google::Apis::BigquerydatatransferV1::TransferConfig
command.params['parent'] = parent unless parent.nil?
command.query['authorizationCode'] = authorization_code unless authorization_code.nil?
command.query['serviceAccountName'] = service_account_name unless service_account_name.nil?
command.query['versionInfo'] = version_info unless version_info.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@ -1011,6 +1030,12 @@ module Google
# urn:ietf:wg:oauth:2.0:oob means that authorization code should be
# returned in the title bar of the browser, with the page text prompting
# the user to copy the code and paste it in the application.
# @param [String] service_account_name
# Optional service account name. If this field is set and
# "service_account_name" is set in update_mask, transfer config will be
# updated to use this service account credentials. It requires that
# requesting user calling this API has permissions to act as this service
# account.
# @param [String] update_mask
# Required. Required list of fields to be updated in this request.
# @param [String] version_info
@ -1037,7 +1062,7 @@ 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 patch_project_transfer_config(name, transfer_config_object = nil, authorization_code: nil, update_mask: nil, version_info: nil, fields: nil, quota_user: nil, options: nil, &block)
def patch_project_transfer_config(name, transfer_config_object = nil, authorization_code: nil, service_account_name: nil, update_mask: nil, version_info: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::BigquerydatatransferV1::TransferConfig::Representation
command.request_object = transfer_config_object
@ -1045,6 +1070,7 @@ module Google
command.response_class = Google::Apis::BigquerydatatransferV1::TransferConfig
command.params['name'] = name unless name.nil?
command.query['authorizationCode'] = authorization_code unless authorization_code.nil?
command.query['serviceAccountName'] = service_account_name unless service_account_name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['versionInfo'] = version_info unless version_info.nil?
command.query['fields'] = fields unless fields.nil?

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigqueryreservationV1
VERSION = 'V1'
REVISION = '20190920'
REVISION = '20191029'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -22,27 +22,6 @@ module Google
module Apis
module BigqueryreservationV1
# The metadata for operation returned from
# ReservationService.CreateCapacityCommitment.
class CreateCapacityCommitmentMetadata
include Google::Apis::Core::Hashable
# Resource name of the capacity commitment that is being created. E.g.,
# projects/myproject/locations/US/capacityCommitments/123
# Corresponds to the JSON property `capacityCommitment`
# @return [String]
attr_accessor :capacity_commitment
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@capacity_commitment = args[:capacity_commitment] if args.key?(:capacity_commitment)
end
end
# A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance:

View File

@ -22,12 +22,6 @@ module Google
module Apis
module BigqueryreservationV1
class CreateCapacityCommitmentMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -58,13 +52,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class CreateCapacityCommitmentMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :capacity_commitment, as: 'capacityCommitment'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigqueryreservationV1alpha2
VERSION = 'V1alpha2'
REVISION = '20190920'
REVISION = '20191029'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -162,6 +162,70 @@ module Google
end
end
# This resource represents a long-running operation that is the result of a
# network API call.
class Operation
include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress.
# If `true`, the operation is completed, and either `error` or `response` is
# available.
# Corresponds to the JSON property `done`
# @return [Boolean]
attr_accessor :done
alias_method :done?, :done
# 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). 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::BigqueryreservationV1alpha2::Status]
attr_accessor :error
# Service-specific metadata associated with the operation. It typically
# contains progress information and common metadata such as create time.
# Some services might not provide such metadata. Any method that returns a
# long-running operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the
# `name` should be a resource name ending with `operations/`unique_id``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is
# `google.protobuf.Empty`. If the original method is standard
# `Get`/`Create`/`Update`, the response should be the resource. For other
# methods, the response should have the type `XxxResponse`, where `Xxx`
# is the original method name. For example, if the original method name
# is `TakeSnapshot()`, the inferred response type is
# `TakeSnapshotResponse`.
# Corresponds to the JSON property `response`
# @return [Hash<String,Object>]
attr_accessor :response
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@done = args[:done] if args.key?(:done)
@error = args[:error] if args.key?(:error)
@metadata = args[:metadata] if args.key?(:metadata)
@name = args[:name] if args.key?(:name)
@response = args[:response] if args.key?(:response)
end
end
# A reservation is a mechanism used to guarantee slots to users.
class Reservation
include Google::Apis::Core::Hashable
@ -284,7 +348,8 @@ module Google
# Slot pool is a way to purchase slots with some minimum committed period of
# usage. Slot pool is immutable and cannot be deleted until the end of the
# commitment period. After the end of the commitment period, slots are still
# available but can be freely removed any time.
# available but can be freely removed any time. Annual commitments will
# automatically be downgraded to monthly after the commitment ends.
# A slot pool resource exists as a child resource of a top-level reservation.
# Sum of all the ACTIVE pools slot_count is always equal to the reservation
# slot_capacity.
@ -299,6 +364,16 @@ module Google
# @return [String]
attr_accessor :commitment_end_time
# 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). 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 `failureStatus`
# @return [Google::Apis::BigqueryreservationV1alpha2::Status]
attr_accessor :failure_status
# Output only. The resource name of the slot pool, e.g.,
# projects/myproject/locations/us-central1/reservations/myreservation/
# slotPools/123
@ -328,12 +403,52 @@ module Google
# Update properties of this object
def update!(**args)
@commitment_end_time = args[:commitment_end_time] if args.key?(:commitment_end_time)
@failure_status = args[:failure_status] if args.key?(:failure_status)
@name = args[:name] if args.key?(:name)
@plan = args[:plan] if args.key?(:plan)
@slot_count = args[:slot_count] if args.key?(:slot_count)
@state = args[:state] if args.key?(:state)
end
end
# 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). 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
# The status code, which should be an enum value of google.rpc.Code.
# Corresponds to the JSON property `code`
# @return [Fixnum]
attr_accessor :code
# A list of messages that carry the error details. There is a common set of
# message types for APIs to use.
# Corresponds to the JSON property `details`
# @return [Array<Hash<String,Object>>]
attr_accessor :details
# A developer-facing error message, which should be in English. Any
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@details = args[:details] if args.key?(:details)
@message = args[:message] if args.key?(:message)
end
end
end
end
end

View File

@ -58,6 +58,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Reservation
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -82,6 +88,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CreateSlotPoolMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -129,6 +141,18 @@ module Google
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
property :error, as: 'error', class: Google::Apis::BigqueryreservationV1alpha2::Status, decorator: Google::Apis::BigqueryreservationV1alpha2::Status::Representation
hash :metadata, as: 'metadata'
property :name, as: 'name'
hash :response, as: 'response'
end
end
class Reservation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -161,12 +185,23 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :commitment_end_time, as: 'commitmentEndTime'
property :failure_status, as: 'failureStatus', class: Google::Apis::BigqueryreservationV1alpha2::Status, decorator: Google::Apis::BigqueryreservationV1alpha2::Status::Representation
property :name, as: 'name'
property :plan, as: 'plan'
property :slot_count, :numeric_string => true, as: 'slotCount'
property :state, as: 'state'
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :details, as: 'details'
property :message, as: 'message'
end
end
end
end
end

View File

@ -102,6 +102,77 @@ module Google
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 [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::BigqueryreservationV1alpha2::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1alpha2::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_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1alpha2/{+name}:cancel', options)
command.response_representation = Google::Apis::BigqueryreservationV1alpha2::Empty::Representation
command.response_class = Google::Apis::BigqueryreservationV1alpha2::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
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# @param [String] name
# The name of the operation resource.
# @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::BigqueryreservationV1alpha2::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1alpha2::Operation]
#
# @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_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha2/{+name}', options)
command.response_representation = Google::Apis::BigqueryreservationV1alpha2::Operation::Representation
command.response_class = Google::Apis::BigqueryreservationV1alpha2::Operation
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
# Returns `google.rpc.Code.PERMISSION_DENIED` if user does not have
# 'bigquery.admin' permissions on the project using the reservation
# and the project that owns this reservation.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigqueryreservationV1beta1
VERSION = 'V1beta1'
REVISION = '20190920'
REVISION = '20191029'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -60,7 +60,8 @@ module Google
# (in the form of slots) with some minimum committed period of usage. Capacity
# commitment is immutable and cannot be deleted until the end of the commitment
# period. After the end of the commitment period, slots are still available but
# can be freely removed any time.
# can be freely removed any time. Annual commitments will automatically be
# downgraded to monthly after the commitment ends.
# A capacity commitment resource exists as a child resource of the admin
# project.
class CapacityCommitment
@ -74,6 +75,16 @@ module Google
# @return [String]
attr_accessor :commitment_end_time
# 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). 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 `failureStatus`
# @return [Google::Apis::BigqueryreservationV1beta1::Status]
attr_accessor :failure_status
# Output only. The resource name of the capacity commitment, e.g.,
# projects/myproject/locations/US/capacityCommitments/123
# Corresponds to the JSON property `name`
@ -102,6 +113,7 @@ module Google
# Update properties of this object
def update!(**args)
@commitment_end_time = args[:commitment_end_time] if args.key?(:commitment_end_time)
@failure_status = args[:failure_status] if args.key?(:failure_status)
@name = args[:name] if args.key?(:name)
@plan = args[:plan] if args.key?(:plan)
@slot_count = args[:slot_count] if args.key?(:slot_count)
@ -109,27 +121,6 @@ module Google
end
end
# The metadata for operation returned from
# ReservationService.CreateCapacityCommitment.
class CreateCapacityCommitmentMetadata
include Google::Apis::Core::Hashable
# Resource name of the capacity commitment that is being created. E.g.,
# projects/myproject/locations/US/capacityCommitments/123
# Corresponds to the JSON property `capacityCommitment`
# @return [String]
attr_accessor :capacity_commitment
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@capacity_commitment = args[:capacity_commitment] if args.key?(:capacity_commitment)
end
end
# A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance:
@ -321,55 +312,20 @@ module Google
end
end
# This resource represents a long-running operation that is the result of a
# network API call.
class Operation
# The request for
# ReservationService.MoveAssignment.
# Note: "bigquery.reservationAssignments.create" permission is required on the
# destination_id. Note: "bigquery.reservationAssignments.create" and
# "bigquery.reservationAssignments.delete" permission is required on the
# related assignee.
class MoveAssignmentRequest
include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress.
# If `true`, the operation is completed, and either `error` or `response` is
# available.
# Corresponds to the JSON property `done`
# @return [Boolean]
attr_accessor :done
alias_method :done?, :done
# 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). 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::BigqueryreservationV1beta1::Status]
attr_accessor :error
# Service-specific metadata associated with the operation. It typically
# contains progress information and common metadata such as create time.
# Some services might not provide such metadata. Any method that returns a
# long-running operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the
# `name` should be a resource name ending with `operations/`unique_id``.
# Corresponds to the JSON property `name`
# The new reservation ID, e.g.:
# projects/myotherproject/locations/US/reservations/team2-prod
# Corresponds to the JSON property `destinationId`
# @return [String]
attr_accessor :name
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is
# `google.protobuf.Empty`. If the original method is standard
# `Get`/`Create`/`Update`, the response should be the resource. For other
# methods, the response should have the type `XxxResponse`, where `Xxx`
# is the original method name. For example, if the original method name
# is `TakeSnapshot()`, the inferred response type is
# `TakeSnapshotResponse`.
# Corresponds to the JSON property `response`
# @return [Hash<String,Object>]
attr_accessor :response
attr_accessor :destination_id
def initialize(**args)
update!(**args)
@ -377,11 +333,7 @@ module Google
# Update properties of this object
def update!(**args)
@done = args[:done] if args.key?(:done)
@error = args[:error] if args.key?(:error)
@metadata = args[:metadata] if args.key?(:metadata)
@name = args[:name] if args.key?(:name)
@response = args[:response] if args.key?(:response)
@destination_id = args[:destination_id] if args.key?(:destination_id)
end
end
@ -389,10 +341,9 @@ module Google
class Reservation
include Google::Apis::Core::Hashable
# If true, any query using this reservation might be able to use the idle
# slots from other reservations within the same admin project. If false, a
# query using this reservation will execute with the maximum slot capacity as
# specified above. If not specified, default value is true.
# If false, any query using this reservation will use idle slots from other
# reservations within the same admin project. If true, a query using this
# reservation will execute with the maximum slot capacity as specified above.
# Corresponds to the JSON property `ignoreIdleSlots`
# @return [Boolean]
attr_accessor :ignore_idle_slots

View File

@ -34,12 +34,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class CreateCapacityCommitmentMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -82,7 +76,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class MoveAssignmentRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -119,6 +113,8 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :commitment_end_time, as: 'commitmentEndTime'
property :failure_status, as: 'failureStatus', class: Google::Apis::BigqueryreservationV1beta1::Status, decorator: Google::Apis::BigqueryreservationV1beta1::Status::Representation
property :name, as: 'name'
property :plan, as: 'plan'
property :slot_count, :numeric_string => true, as: 'slotCount'
@ -126,13 +122,6 @@ module Google
end
end
class CreateCapacityCommitmentMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :capacity_commitment, as: 'capacityCommitment'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -193,15 +182,10 @@ module Google
end
end
class Operation
class MoveAssignmentRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
property :error, as: 'error', class: Google::Apis::BigqueryreservationV1beta1::Status, decorator: Google::Apis::BigqueryreservationV1beta1::Status::Representation
hash :metadata, as: 'metadata'
property :name, as: 'name'
hash :response, as: 'response'
property :destination_id, as: 'destinationId'
end
end

View File

@ -130,8 +130,7 @@ module Google
# 2) Hierarchy lookup (project->folder->organization) happens in this API.
# 3) Parent here is projects/*/locations/*, instead of
# projects/*/locations/*reservations/*.
# Wildcard "-" can be used for projects in
# SearchAssignmentsRequest.parent. Note "-" cannot be used for projects
# Note "-" cannot be used for projects
# nor locations.
# @param [String] parent
# The resource name of the admin project(containing project and location),
@ -277,77 +276,6 @@ module Google
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 [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::BigqueryreservationV1beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1beta1::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_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
command.response_representation = Google::Apis::BigqueryreservationV1beta1::Empty::Representation
command.response_class = Google::Apis::BigqueryreservationV1beta1::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
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# @param [String] name
# The name of the operation resource.
# @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::BigqueryreservationV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1beta1::Operation]
#
# @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_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::BigqueryreservationV1beta1::Operation::Representation
command.response_class = Google::Apis::BigqueryreservationV1beta1::Operation
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 new reservation resource.
# @param [String] parent
# Project, location. E.g.,
@ -388,8 +316,7 @@ module Google
# Deletes a reservation.
# Returns `google.rpc.Code.FAILED_PRECONDITION` when reservation has
# assignments. This check can be bypassed by
# setting DeleteReservationRequest.force flag to true.
# assignments.
# @param [String] name
# Resource name of the reservation to retrieve. E.g.,
# projects/myproject/locations/US/reservations/team1-prod
@ -539,7 +466,7 @@ module Google
# does not match location of the reservation.
# @param [String] parent
# The parent resource name of the assignment
# E.g.: projects/myproject/location/US/reservations/team1-prod
# E.g.: projects/myproject/locations/US/reservations/team1-prod
# @param [Google::Apis::BigqueryreservationV1beta1::Assignment] assignment_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -624,9 +551,9 @@ module Google
# "-" cannot be used for projects nor locations.
# @param [String] parent
# The parent resource name e.g.:
# projects/myproject/location/US/reservations/team1-prod
# projects/myproject/locations/US/reservations/team1-prod
# Or:
# projects/myproject/location/US/reservations/-
# projects/myproject/locations/US/reservations/-
# @param [Fixnum] page_size
# The maximum number of items to return.
# @param [String] page_token
@ -670,9 +597,7 @@ module Google
# The resource name of the assignment,
# e.g.:
# projects/myproject/locations/US/reservations/team1-prod/assignments/123
# @param [String] destination_id
# The new reservation ID, e.g.:
# projects/myotherproject/locations/US/reservations/team2-prod
# @param [Google::Apis::BigqueryreservationV1beta1::MoveAssignmentRequest] move_assignment_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -690,12 +615,13 @@ 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 move_project_location_reservation_assignment(name, destination_id: nil, fields: nil, quota_user: nil, options: nil, &block)
def move_assignment(name, move_assignment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+name}:move', options)
command.request_representation = Google::Apis::BigqueryreservationV1beta1::MoveAssignmentRequest::Representation
command.request_object = move_assignment_request_object
command.response_representation = Google::Apis::BigqueryreservationV1beta1::Assignment::Representation
command.response_class = Google::Apis::BigqueryreservationV1beta1::Assignment
command.params['name'] = name unless name.nil?
command.query['destinationId'] = destination_id unless destination_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/ml/
module MlV1
VERSION = 'V1'
REVISION = '20191025'
REVISION = '20191101'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1331,92 +1331,10 @@ module Google
attr_accessor :master_config
# Optional. Specifies the type of virtual machine to use for your training
# job's master worker.
# job's master worker. You must specify this field when `scaleTier` is set to
# `CUSTOM`.
# You can use certain Compute Engine machine types directly in this field.
# The following types are supported:
# <dl>
# <dt>standard</dt>
# <dd>
# A basic machine configuration suitable for training simple models with
# small to moderate datasets.
# </dd>
# <dt>large_model</dt>
# <dd>
# A machine with a lot of memory, specially suited for parameter servers
# when your model is large (having many hidden layers or layers with very
# large numbers of nodes).
# </dd>
# <dt>complex_model_s</dt>
# <dd>
# A machine suitable for the master and workers of the cluster when your
# model requires more computation than the standard machine can handle
# satisfactorily.
# </dd>
# <dt>complex_model_m</dt>
# <dd>
# A machine with roughly twice the number of cores and roughly double the
# memory of <i>complex_model_s</i>.
# </dd>
# <dt>complex_model_l</dt>
# <dd>
# A machine with roughly twice the number of cores and roughly double the
# memory of <i>complex_model_m</i>.
# </dd>
# <dt>standard_gpu</dt>
# <dd>
# A machine equivalent to <i>standard</i> that
# also includes a single NVIDIA Tesla K80 GPU. See more about
# <a href="/ml-engine/docs/tensorflow/using-gpus">using GPUs to
# train your model</a>.
# </dd>
# <dt>complex_model_m_gpu</dt>
# <dd>
# A machine equivalent to <i>complex_model_m</i> that also includes
# four NVIDIA Tesla K80 GPUs.
# </dd>
# <dt>complex_model_l_gpu</dt>
# <dd>
# A machine equivalent to <i>complex_model_l</i> that also includes
# eight NVIDIA Tesla K80 GPUs.
# </dd>
# <dt>standard_p100</dt>
# <dd>
# A machine equivalent to <i>standard</i> that
# also includes a single NVIDIA Tesla P100 GPU.
# </dd>
# <dt>complex_model_m_p100</dt>
# <dd>
# A machine equivalent to <i>complex_model_m</i> that also includes
# four NVIDIA Tesla P100 GPUs.
# </dd>
# <dt>standard_v100</dt>
# <dd>
# A machine equivalent to <i>standard</i> that
# also includes a single NVIDIA Tesla V100 GPU.
# </dd>
# <dt>large_model_v100</dt>
# <dd>
# A machine equivalent to <i>large_model</i> that
# also includes a single NVIDIA Tesla V100 GPU.
# </dd>
# <dt>complex_model_m_v100</dt>
# <dd>
# A machine equivalent to <i>complex_model_m</i> that
# also includes four NVIDIA Tesla V100 GPUs.
# </dd>
# <dt>complex_model_l_v100</dt>
# <dd>
# A machine equivalent to <i>complex_model_l</i> that
# also includes eight NVIDIA Tesla V100 GPUs.
# </dd>
# <dt>cloud_tpu</dt>
# <dd>
# A TPU VM including one Cloud TPU. See more about
# <a href="/ml-engine/docs/tensorflow/using-tpus">using TPUs to train
# your model</a>.
# </dd>
# </dl>
# You may also use certain Compute Engine machine types directly in this
# field. The following types are supported:
# - `n1-standard-4`
# - `n1-standard-8`
# - `n1-standard-16`
@ -1434,9 +1352,29 @@ module Google
# - `n1-highcpu-32`
# - `n1-highcpu-64`
# - `n1-highcpu-96`
# See more about [using Compute Engine machine
# types](/ml-engine/docs/tensorflow/machine-types#compute-engine-machine-types).
# You must set this value when `scaleTier` is set to `CUSTOM`.
# Learn more about [using Compute Engine machine
# types](/ml-engine/docs/machine-types#compute-engine-machine-types).
# Alternatively, you can use the following legacy machine types:
# - `standard`
# - `large_model`
# - `complex_model_s`
# - `complex_model_m`
# - `complex_model_l`
# - `standard_gpu`
# - `complex_model_m_gpu`
# - `complex_model_l_gpu`
# - `standard_p100`
# - `complex_model_m_p100`
# - `standard_v100`
# - `large_model_v100`
# - `complex_model_m_v100`
# - `complex_model_l_v100`
# Learn more about [using legacy machine
# types](/ml-engine/docs/machine-types#legacy-machine-types).
# Finally, if you want to use a TPU for training, specify `cloud_tpu` in this
# field. Learn more about the [special configuration options for training
# with
# TPUs](/ml-engine/docs/tensorflow/using-tpus#configuring_a_custom_tpu_machine).
# Corresponds to the JSON property `masterType`
# @return [String]
attr_accessor :master_type
@ -1468,8 +1406,8 @@ module Google
# The supported values are the same as those described in the entry for
# `master_type`.
# This value must be consistent with the category of machine type that
# `masterType` uses. In other words, both must be AI Platform machine
# types or both must be Compute Engine machine types.
# `masterType` uses. In other words, both must be Compute Engine machine
# types or both must be legacy machine types.
# This value must be present when `scaleTier` is set to `CUSTOM` and
# `parameter_server_count` is greater than zero.
# Corresponds to the JSON property `parameterServerType`
@ -1539,8 +1477,8 @@ module Google
# The supported values are the same as those described in the entry for
# `masterType`.
# This value must be consistent with the category of machine type that
# `masterType` uses. In other words, both must be AI Platform machine
# types or both must be Compute Engine machine types.
# `masterType` uses. In other words, both must be Compute Engine machine
# types or both must be legacy machine types.
# If you use `cloud_tpu` for this value, see special instructions for
# [configuring a custom TPU
# machine](/ml-engine/docs/tensorflow/using-tpus#

View File

@ -30,7 +30,7 @@ module Google
# @see https://cloud.google.com/monitoring/api/
module MonitoringV3
VERSION = 'V3'
REVISION = '20191027'
REVISION = '20191102'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -507,12 +507,15 @@ module Google
end
end
# Used to perform string matching. It allows substring and regular expressions,
# together with their negations.
# Optional. Used to perform content matching. This allows matching based on
# substrings and regular expressions, together with their negations. Only the
# first 4&nbsp;MB of an HTTP or HTTPS check's response (and the first 1&nbsp;MB
# of a TCP check's response) are examined for purposes of content matching.
class ContentMatcher
include Google::Apis::Core::Hashable
# String or regex content to match (max 1024 bytes)
# String or regex content to match. Maximum 1024 bytes. An empty content string
# indicates no content matching is to be performed.
# Corresponds to the JSON property `content`
# @return [String]
attr_accessor :content
@ -583,13 +586,19 @@ module Google
class CreateCollectdTimeSeriesResponse
include Google::Apis::Core::Hashable
# Records the error status for points that were not written due to an error.
# Failed requests for which nothing is written will return an error response
# instead.
# Records the error status for points that were not written due to an error in
# the request.Failed requests for which nothing is written will return an error
# response instead. Requests where data points were rejected by the backend will
# set summary instead.
# Corresponds to the JSON property `payloadErrors`
# @return [Array<Google::Apis::MonitoringV3::CollectdPayloadError>]
attr_accessor :payload_errors
# Summary of the result of a failed request to write data to a time series.
# Corresponds to the JSON property `summary`
# @return [Google::Apis::MonitoringV3::CreateTimeSeriesSummary]
attr_accessor :summary
def initialize(**args)
update!(**args)
end
@ -597,6 +606,7 @@ module Google
# Update properties of this object
def update!(**args)
@payload_errors = args[:payload_errors] if args.key?(:payload_errors)
@summary = args[:summary] if args.key?(:summary)
end
end
@ -624,6 +634,37 @@ module Google
end
end
# Summary of the result of a failed request to write data to a time series.
class CreateTimeSeriesSummary
include Google::Apis::Core::Hashable
# The number of points that failed to be written. Order is not guaranteed.
# Corresponds to the JSON property `errors`
# @return [Array<Google::Apis::MonitoringV3::Error>]
attr_accessor :errors
# The number of points that were successfully written.
# Corresponds to the JSON property `successPointCount`
# @return [Fixnum]
attr_accessor :success_point_count
# The number of points in the request.
# Corresponds to the JSON property `totalPointCount`
# @return [Fixnum]
attr_accessor :total_point_count
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@errors = args[:errors] if args.key?(:errors)
@success_point_count = args[:success_point_count] if args.key?(:success_point_count)
@total_point_count = args[:total_point_count] if args.key?(:total_point_count)
end
end
# Distribution contains summary statistics for a population of values. It
# optionally contains a histogram representing the distribution of those values
# across a set of buckets.The summary statistics are the count, mean, sum of the
@ -792,6 +833,36 @@ module Google
end
end
# Detailed information about an error category.
class Error
include Google::Apis::Core::Hashable
# The number of points that couldn't be written because of status.
# Corresponds to the JSON property `pointCount`
# @return [Fixnum]
attr_accessor :point_count
# 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). 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 `status`
# @return [Google::Apis::MonitoringV3::Status]
attr_accessor :status
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@point_count = args[:point_count] if args.key?(:point_count)
@status = args[:status] if args.key?(:status)
end
end
# Exemplars are example points that may be used to annotate aggregated
# distribution values. They are metadata that gives information about a
# particular value added to a Distribution bucket, such as a trace ID that was

View File

@ -100,6 +100,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class CreateTimeSeriesSummary
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Distribution
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -124,6 +130,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Error
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Exemplar
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -552,6 +564,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
collection :payload_errors, as: 'payloadErrors', class: Google::Apis::MonitoringV3::CollectdPayloadError, decorator: Google::Apis::MonitoringV3::CollectdPayloadError::Representation
property :summary, as: 'summary', class: Google::Apis::MonitoringV3::CreateTimeSeriesSummary, decorator: Google::Apis::MonitoringV3::CreateTimeSeriesSummary::Representation
end
end
@ -563,6 +577,16 @@ module Google
end
end
class CreateTimeSeriesSummary
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :errors, as: 'errors', class: Google::Apis::MonitoringV3::Error, decorator: Google::Apis::MonitoringV3::Error::Representation
property :success_point_count, as: 'successPointCount'
property :total_point_count, as: 'totalPointCount'
end
end
class Distribution
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -600,6 +624,15 @@ module Google
end
end
class Error
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :point_count, as: 'pointCount'
property :status, as: 'status', class: Google::Apis::MonitoringV3::Status, decorator: Google::Apis::MonitoringV3::Status::Representation
end
end
class Exemplar
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -1,38 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/sqladmin_v1beta4/service.rb'
require 'google/apis/sqladmin_v1beta4/classes.rb'
require 'google/apis/sqladmin_v1beta4/representations.rb'
module Google
module Apis
# Cloud SQL Admin API
#
# Creates and manages Cloud SQL instances, which provide fully managed MySQL or
# PostgreSQL databases.
#
# @see https://cloud.google.com/sql/docs/reference/latest
module SqladminV1beta4
VERSION = 'V1beta4'
REVISION = '20190827'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# Manage your Google SQL Service instances
AUTH_SQLSERVICE_ADMIN = 'https://www.googleapis.com/auth/sqlservice.admin'
end
end
end

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff