lib/google/cloud/tpu/v1/tpu/client.rb in google-cloud-tpu-v1-0.2.0 vs lib/google/cloud/tpu/v1/tpu/client.rb in google-cloud-tpu-v1-0.3.0

- old
+ new

@@ -16,10 +16,11 @@ # Auto-generated by gapic-generator-ruby. DO NOT EDIT! require "google/cloud/errors" require "google/cloud/tpu/v1/cloud_tpu_pb" +require "google/cloud/location" module Google module Cloud module Tpu module V1 @@ -141,10 +142,16 @@ config.credentials = credentials config.quota_project = @quota_project_id config.endpoint = @config.endpoint end + @location_client = Google::Cloud::Location::Locations::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + end + @tpu_stub = ::Gapic::ServiceStub.new( ::Google::Cloud::Tpu::V1::Tpu::Stub, credentials: credentials, endpoint: @config.endpoint, channel_args: @config.channel_args, @@ -157,10 +164,17 @@ # # @return [::Google::Cloud::Tpu::V1::Tpu::Operations] # attr_reader :operations_client + ## + # Get the associated client for mix-in of the Locations. + # + # @return [Google::Cloud::Location::Locations::Client] + # + attr_reader :location_client + # Service calls ## # Lists nodes. # @@ -626,10 +640,10 @@ rescue ::GRPC::BadStatus => e raise ::Google::Cloud::Error.from_error(e) end ## - # Stops a node. + # Stops a node, this operation is only available with single TPU nodes. # # @overload stop_node(request, options = nil) # Pass arguments to `stop_node` via a request object, either of type # {::Google::Cloud::Tpu::V1::StopNodeRequest} or an equivalent Hash. #