lib/google/cloud/run/v2/executions/rest/client.rb in google-cloud-run-v2-0.13.0 vs lib/google/cloud/run/v2/executions/rest/client.rb in google-cloud-run-v2-0.13.1
- old
+ new
@@ -149,22 +149,22 @@
config.quota_project = @quota_project_id
config.endpoint = @config.endpoint
config.universe_domain = @config.universe_domain
end
- @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
- end
-
@executions_stub = ::Google::Cloud::Run::V2::Executions::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 = @executions_stub.endpoint
+ config.universe_domain = @executions_stub.universe_domain
+ end
end
##
# Get the associated client for long-running operations.
#