lib/google/cloud/config_service/v1/config/rest/client.rb in google-cloud-config_service-v1-0.2.0 vs lib/google/cloud/config_service/v1/config/rest/client.rb in google-cloud-config_service-v1-0.2.1
- old
+ new
@@ -151,31 +151,31 @@
config.quota_project = @quota_project_id
config.endpoint = @config.endpoint
config.universe_domain = @config.universe_domain
end
+ @config_stub = ::Google::Cloud::ConfigService::V1::Config::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 = @config_stub.endpoint
+ config.universe_domain = @config_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 = @config_stub.endpoint
+ config.universe_domain = @config_stub.universe_domain
config.bindings_override = @config.bindings_override
end
-
- @config_stub = ::Google::Cloud::ConfigService::V1::Config::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.
#