lib/google/cloud/gaming/v1/realms_service/client.rb in google-cloud-gaming-v1-0.3.1 vs lib/google/cloud/gaming/v1/realms_service/client.rb in google-cloud-gaming-v1-0.3.2
- old
+ new
@@ -66,36 +66,27 @@
end
default_config = Client::Configuration.new parent_config
default_config.rpcs.list_realms.timeout = 60.0
default_config.rpcs.list_realms.retry_policy = {
- initial_delay: 1.0,
- max_delay: 10.0,
- multiplier: 1.3,
- retry_codes: [14]
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
}
default_config.rpcs.get_realm.timeout = 60.0
default_config.rpcs.get_realm.retry_policy = {
- initial_delay: 1.0,
- max_delay: 10.0,
- multiplier: 1.3,
- retry_codes: [14]
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
}
default_config.rpcs.create_realm.timeout = 60.0
default_config.rpcs.delete_realm.timeout = 60.0
default_config.rpcs.update_realm.timeout = 60.0
default_config.rpcs.preview_realm_update.timeout = 60.0
default_config.rpcs.preview_realm_update.retry_policy = {
- initial_delay: 1.0,
- max_delay: 10.0,
- multiplier: 1.3,
- retry_codes: [14]
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
}
default_config
end
yield @configure if block_given?
@@ -162,10 +153,10 @@
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
@config.endpoint == Client.configure.endpoint &&
!@config.endpoint.split(".").first.include?("-")
credentials ||= Credentials.default scope: @config.scope,
enable_self_signed_jwt: enable_self_signed_jwt
- if credentials.is_a?(String) || credentials.is_a?(Hash)
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
credentials = Credentials.new credentials, scope: @config.scope
end
@quota_project_id = @config.quota_project
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id