lib/google/cloud/datastream/v1/datastream/client.rb in google-cloud-datastream-v1-0.1.0 vs lib/google/cloud/datastream/v1/datastream/client.rb in google-cloud-datastream-v1-0.2.0

- old
+ new

@@ -16,10 +16,11 @@ # Auto-generated by gapic-generator-ruby. DO NOT EDIT! require "google/cloud/errors" require "google/cloud/datastream/v1/datastream_pb" +require "google/cloud/location" module Google module Cloud module Datastream module V1 @@ -162,10 +163,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 + @datastream_stub = ::Gapic::ServiceStub.new( ::Google::Cloud::Datastream::V1::Datastream::Stub, credentials: credentials, endpoint: @config.endpoint, channel_args: @config.channel_args, @@ -177,9 +184,16 @@ # Get the associated client for long-running operations. # # @return [::Google::Cloud::Datastream::V1::Datastream::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 ## # Use this method to list connection profiles created in a project and