lib/google/cloud/logging/v2/logging_service/client.rb in google-cloud-logging-v2-0.5.1 vs lib/google/cloud/logging/v2/logging_service/client.rb in google-cloud-logging-v2-0.5.2

- old
+ new

@@ -65,54 +65,36 @@ end default_config = Client::Configuration.new parent_config default_config.rpcs.delete_log.timeout = 60.0 default_config.rpcs.delete_log.retry_policy = { - initial_delay: 0.1, - max_delay: 60.0, - multiplier: 1.3, - retry_codes: [4, 13, 14] + initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 13, 14] } default_config.rpcs.write_log_entries.timeout = 60.0 default_config.rpcs.write_log_entries.retry_policy = { - initial_delay: 0.1, - max_delay: 60.0, - multiplier: 1.3, - retry_codes: [4, 13, 14] + initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 13, 14] } default_config.rpcs.list_log_entries.timeout = 60.0 default_config.rpcs.list_log_entries.retry_policy = { - initial_delay: 0.1, - max_delay: 60.0, - multiplier: 1.3, - retry_codes: [4, 13, 14] + initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 13, 14] } default_config.rpcs.list_monitored_resource_descriptors.timeout = 60.0 default_config.rpcs.list_monitored_resource_descriptors.retry_policy = { - initial_delay: 0.1, - max_delay: 60.0, - multiplier: 1.3, - retry_codes: [4, 13, 14] + initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 13, 14] } default_config.rpcs.list_logs.timeout = 60.0 default_config.rpcs.list_logs.retry_policy = { - initial_delay: 0.1, - max_delay: 60.0, - multiplier: 1.3, - retry_codes: [4, 13, 14] + initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 13, 14] } default_config.rpcs.tail_log_entries.timeout = 3600.0 default_config.rpcs.tail_log_entries.retry_policy = { - initial_delay: 0.1, - max_delay: 60.0, - multiplier: 1.3, - retry_codes: [4, 13, 14] + initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 13, 14] } default_config end yield @configure if block_given? @@ -179,10 +161,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