lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/client.rb in google-cloud-dialogflow-cx-v3-0.24.0 vs lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/client.rb in google-cloud-dialogflow-cx-v3-0.24.1
- old
+ new
@@ -149,23 +149,23 @@
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::Rest::Client.new do |config|
- config.credentials = credentials
- config.quota_project = @quota_project_id
- config.endpoint = @config.endpoint
- config.universe_domain = @config.universe_domain
- config.bindings_override = @config.bindings_override
- end
-
@transition_route_groups_stub = ::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Rest::ServiceStub.new(
endpoint: @config.endpoint,
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
universe_domain: @config.universe_domain,
credentials: credentials
)
+
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
+ config.credentials = credentials
+ config.quota_project = @quota_project_id
+ config.endpoint = @transition_route_groups_stub.endpoint
+ config.universe_domain = @transition_route_groups_stub.universe_domain
+ config.bindings_override = @config.bindings_override
+ end
end
##
# Get the associated client for mix-in of the Locations.
#