lib/google/cloud/dataform/v1beta1/dataform/client.rb in google-cloud-dataform-v1beta1-0.6.0 vs lib/google/cloud/dataform/v1beta1/dataform/client.rb in google-cloud-dataform-v1beta1-0.6.1

- old
+ new

@@ -147,33 +147,33 @@ credentials = Credentials.new credentials, scope: @config.scope end @quota_project_id = @config.quota_project @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - @location_client = Google::Cloud::Location::Locations::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - config.universe_domain = @config.universe_domain - end - - @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - config.universe_domain = @config.universe_domain - end - @dataform_stub = ::Gapic::ServiceStub.new( ::Google::Cloud::Dataform::V1beta1::Dataform::Stub, credentials: credentials, endpoint: @config.endpoint, endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, universe_domain: @config.universe_domain, channel_args: @config.channel_args, interceptors: @config.interceptors, channel_pool_config: @config.channel_pool ) + + @location_client = Google::Cloud::Location::Locations::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @dataform_stub.endpoint + config.universe_domain = @dataform_stub.universe_domain + end + + @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @dataform_stub.endpoint + config.universe_domain = @dataform_stub.universe_domain + end end ## # Get the associated client for mix-in of the Locations. #