lib/google/cloud/functions/v1/cloud_functions_service/rest/client.rb in google-cloud-functions-v1-0.13.0 vs lib/google/cloud/functions/v1/cloud_functions_service/rest/client.rb in google-cloud-functions-v1-0.13.1
- old
+ new
@@ -174,30 +174,30 @@
config.quota_project = @quota_project_id
config.endpoint = @config.endpoint
config.universe_domain = @config.universe_domain
end
+ @cloud_functions_service_stub = ::Google::Cloud::Functions::V1::CloudFunctionsService::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 = @config.endpoint
- config.universe_domain = @config.universe_domain
+ config.endpoint = @cloud_functions_service_stub.endpoint
+ config.universe_domain = @cloud_functions_service_stub.universe_domain
config.bindings_override = @config.bindings_override
end
@iam_policy_client = Google::Iam::V1::IAMPolicy::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.endpoint = @cloud_functions_service_stub.endpoint
+ config.universe_domain = @cloud_functions_service_stub.universe_domain
end
-
- @cloud_functions_service_stub = ::Google::Cloud::Functions::V1::CloudFunctionsService::Rest::ServiceStub.new(
- endpoint: @config.endpoint,
- endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
- universe_domain: @config.universe_domain,
- credentials: credentials
- )
end
##
# Get the associated client for long-running operations.
#