lib/google/cloud/functions/v1/cloud_functions_service/client.rb in google-cloud-functions-v1-0.13.0 vs lib/google/cloud/functions/v1/cloud_functions_service/client.rb in google-cloud-functions-v1-0.13.1
- old
+ new
@@ -177,33 +177,33 @@
config.quota_project = @quota_project_id
config.endpoint = @config.endpoint
config.universe_domain = @config.universe_domain
end
- @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
-
@cloud_functions_service_stub = ::Gapic::ServiceStub.new(
::Google::Cloud::Functions::V1::CloudFunctionsService::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 = @cloud_functions_service_stub.endpoint
+ config.universe_domain = @cloud_functions_service_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 = @cloud_functions_service_stub.endpoint
+ config.universe_domain = @cloud_functions_service_stub.universe_domain
+ end
end
##
# Get the associated client for long-running operations.
#