From dbb8fbe846f886ab33dde614de31d014effea2ac Mon Sep 17 00:00:00 2001 From: Google APIs Date: Sat, 25 Nov 2017 00:36:05 +0000 Subject: [PATCH] Autogenerated update (2017-11-25) Update: - tpu_v1alpha1 --- api_names_out.yaml | 3 ++ generated/google/apis/tpu_v1alpha1.rb | 2 +- generated/google/apis/tpu_v1alpha1/classes.rb | 32 +++++++++++++++++++ .../apis/tpu_v1alpha1/representations.rb | 25 +++++++++++++++ generated/google/apis/tpu_v1alpha1/service.rb | 13 +++++--- 5 files changed, 69 insertions(+), 6 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 3cdf69bf6..04447ee02 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -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 diff --git a/generated/google/apis/tpu_v1alpha1.rb b/generated/google/apis/tpu_v1alpha1.rb index 8cce49c40..ff703c1d4 100644 --- a/generated/google/apis/tpu_v1alpha1.rb +++ b/generated/google/apis/tpu_v1alpha1.rb @@ -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' diff --git a/generated/google/apis/tpu_v1alpha1/classes.rb b/generated/google/apis/tpu_v1alpha1/classes.rb index 237f5c545..b4595f7d4 100644 --- a/generated/google/apis/tpu_v1alpha1/classes.rb +++ b/generated/google/apis/tpu_v1alpha1/classes.rb @@ -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: diff --git a/generated/google/apis/tpu_v1alpha1/representations.rb b/generated/google/apis/tpu_v1alpha1/representations.rb index d210aa376..ac1671f28 100644 --- a/generated/google/apis/tpu_v1alpha1/representations.rb +++ b/generated/google/apis/tpu_v1alpha1/representations.rb @@ -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 diff --git a/generated/google/apis/tpu_v1alpha1/service.rb b/generated/google/apis/tpu_v1alpha1/service.rb index 1fa091b83..d48c5371c 100644 --- a/generated/google/apis/tpu_v1alpha1/service.rb +++ b/generated/google/apis/tpu_v1alpha1/service.rb @@ -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?