parent
0d346576bd
commit
dbb8fbe846
|
@ -64610,6 +64610,9 @@
|
|||
"/tpu:v1alpha1/OperationMetadata/statusDetail": status_detail
|
||||
"/tpu:v1alpha1/OperationMetadata/target": target
|
||||
"/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/code": code
|
||||
"/tpu:v1alpha1/Status/details": details
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/tpu/
|
||||
module TpuV1alpha1
|
||||
VERSION = 'V1alpha1'
|
||||
REVISION = '20171108'
|
||||
REVISION = '20171121'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -454,6 +454,38 @@ module Google
|
|||
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
|
||||
# programming environments, including REST APIs and RPC APIs. It is used by
|
||||
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||
|
|
|
@ -76,6 +76,18 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
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 Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -178,6 +190,19 @@ module Google
|
|||
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
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -251,8 +251,7 @@ module Google
|
|||
# Reimage a node's OS.
|
||||
# @param [String] name
|
||||
# The resource name.
|
||||
# @param [String] tensorflow_version
|
||||
# The version for reimage to create.
|
||||
# @param [Google::Apis::TpuV1alpha1::ReimageNodeRequest] reimage_node_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||
# @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.request_representation = Google::Apis::TpuV1alpha1::ReimageNodeRequest::Representation
|
||||
command.request_object = reimage_node_request_object
|
||||
command.response_representation = Google::Apis::TpuV1alpha1::Operation::Representation
|
||||
command.response_class = Google::Apis::TpuV1alpha1::Operation
|
||||
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['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
@ -284,6 +284,7 @@ module Google
|
|||
# Resets a node, which stops and starts the VM.
|
||||
# @param [String] name
|
||||
# The resource name.
|
||||
# @param [Google::Apis::TpuV1alpha1::ResetNodeRequest] reset_node_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||
# @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.request_representation = Google::Apis::TpuV1alpha1::ResetNodeRequest::Representation
|
||||
command.request_object = reset_node_request_object
|
||||
command.response_representation = Google::Apis::TpuV1alpha1::Operation::Representation
|
||||
command.response_class = Google::Apis::TpuV1alpha1::Operation
|
||||
command.params['name'] = name unless name.nil?
|
||||
|
|
Loading…
Reference in New Issue