Autogenerated update (2017-11-25)

Update:
- tpu_v1alpha1
This commit is contained in:
Google APIs 2017-11-25 00:36:05 +00:00
parent 0d346576bd
commit dbb8fbe846
5 changed files with 69 additions and 6 deletions

View File

@ -64610,6 +64610,9 @@
"/tpu:v1alpha1/OperationMetadata/statusDetail": status_detail "/tpu:v1alpha1/OperationMetadata/statusDetail": status_detail
"/tpu:v1alpha1/OperationMetadata/target": target "/tpu:v1alpha1/OperationMetadata/target": target
"/tpu:v1alpha1/OperationMetadata/verb": verb "/tpu:v1alpha1/OperationMetadata/verb": verb
"/tpu:v1alpha1/ReimageNodeRequest": reimage_node_request
"/tpu:v1alpha1/ReimageNodeRequest/tensorflowVersion": tensorflow_version
"/tpu:v1alpha1/ResetNodeRequest": reset_node_request
"/tpu:v1alpha1/Status": status "/tpu:v1alpha1/Status": status
"/tpu:v1alpha1/Status/code": code "/tpu:v1alpha1/Status/code": code
"/tpu:v1alpha1/Status/details": details "/tpu:v1alpha1/Status/details": details

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/tpu/ # @see https://cloud.google.com/tpu/
module TpuV1alpha1 module TpuV1alpha1
VERSION = 'V1alpha1' VERSION = 'V1alpha1'
REVISION = '20171108' REVISION = '20171121'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -454,6 +454,38 @@ module Google
end end
end end
# Request for ReimageNode.
class ReimageNodeRequest
include Google::Apis::Core::Hashable
# The version for reimage to create.
# Corresponds to the JSON property `tensorflowVersion`
# @return [String]
attr_accessor :tensorflow_version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@tensorflow_version = args[:tensorflow_version] if args.key?(:tensorflow_version)
end
end
# Request for ResetNode.
class ResetNodeRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# The `Status` type defines a logical error model that is suitable for different # 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 # programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be: # [gRPC](https://github.com/grpc). The error model is designed to be:

View File

@ -76,6 +76,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ReimageNodeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResetNodeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status class Status
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -178,6 +190,19 @@ module Google
end end
end end
class ReimageNodeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :tensorflow_version, as: 'tensorflowVersion'
end
end
class ResetNodeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Status class Status
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -251,8 +251,7 @@ module Google
# Reimage a node's OS. # Reimage a node's OS.
# @param [String] name # @param [String] name
# The resource name. # The resource name.
# @param [String] tensorflow_version # @param [Google::Apis::TpuV1alpha1::ReimageNodeRequest] reimage_node_request_object
# The version for reimage to create.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -270,12 +269,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def reimage_project_location_node(name, tensorflow_version: nil, fields: nil, quota_user: nil, options: nil, &block) def reimage_project_location_node(name, reimage_node_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1alpha1/{+name}:reimage', options) command = make_simple_command(:post, 'v1alpha1/{+name}:reimage', options)
command.request_representation = Google::Apis::TpuV1alpha1::ReimageNodeRequest::Representation
command.request_object = reimage_node_request_object
command.response_representation = Google::Apis::TpuV1alpha1::Operation::Representation command.response_representation = Google::Apis::TpuV1alpha1::Operation::Representation
command.response_class = Google::Apis::TpuV1alpha1::Operation command.response_class = Google::Apis::TpuV1alpha1::Operation
command.params['name'] = name unless name.nil? command.params['name'] = name unless name.nil?
command.query['tensorflowVersion'] = tensorflow_version unless tensorflow_version.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
@ -284,6 +284,7 @@ module Google
# Resets a node, which stops and starts the VM. # Resets a node, which stops and starts the VM.
# @param [String] name # @param [String] name
# The resource name. # The resource name.
# @param [Google::Apis::TpuV1alpha1::ResetNodeRequest] reset_node_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -301,8 +302,10 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def reset_project_location_node(name, fields: nil, quota_user: nil, options: nil, &block) def reset_project_location_node(name, reset_node_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1alpha1/{+name}:reset', options) command = make_simple_command(:post, 'v1alpha1/{+name}:reset', options)
command.request_representation = Google::Apis::TpuV1alpha1::ResetNodeRequest::Representation
command.request_object = reset_node_request_object
command.response_representation = Google::Apis::TpuV1alpha1::Operation::Representation command.response_representation = Google::Apis::TpuV1alpha1::Operation::Representation
command.response_class = Google::Apis::TpuV1alpha1::Operation command.response_class = Google::Apis::TpuV1alpha1::Operation
command.params['name'] = name unless name.nil? command.params['name'] = name unless name.nil?