lib/google/cloud/tasks/v2/cloud_tasks/client.rb in google-cloud-tasks-v2-0.4.1 vs lib/google/cloud/tasks/v2/cloud_tasks/client.rb in google-cloud-tasks-v2-0.4.2

- old
+ new

@@ -66,84 +66,60 @@ end default_config = Client::Configuration.new parent_config default_config.rpcs.list_queues.timeout = 10.0 default_config.rpcs.list_queues.retry_policy = { - initial_delay: 0.1, - max_delay: 10.0, - multiplier: 1.3, - retry_codes: [4, 14] + initial_delay: 0.1, max_delay: 10.0, multiplier: 1.3, retry_codes: [4, 14] } default_config.rpcs.get_queue.timeout = 10.0 default_config.rpcs.get_queue.retry_policy = { - initial_delay: 0.1, - max_delay: 10.0, - multiplier: 1.3, - retry_codes: [4, 14] + initial_delay: 0.1, max_delay: 10.0, multiplier: 1.3, retry_codes: [4, 14] } default_config.rpcs.create_queue.timeout = 10.0 default_config.rpcs.update_queue.timeout = 10.0 default_config.rpcs.delete_queue.timeout = 10.0 default_config.rpcs.delete_queue.retry_policy = { - initial_delay: 0.1, - max_delay: 10.0, - multiplier: 1.3, - retry_codes: [4, 14] + initial_delay: 0.1, max_delay: 10.0, multiplier: 1.3, retry_codes: [4, 14] } default_config.rpcs.purge_queue.timeout = 10.0 default_config.rpcs.pause_queue.timeout = 10.0 default_config.rpcs.resume_queue.timeout = 10.0 default_config.rpcs.get_iam_policy.timeout = 10.0 default_config.rpcs.get_iam_policy.retry_policy = { - initial_delay: 0.1, - max_delay: 10.0, - multiplier: 1.3, - retry_codes: [4, 14] + initial_delay: 0.1, max_delay: 10.0, multiplier: 1.3, retry_codes: [4, 14] } default_config.rpcs.set_iam_policy.timeout = 10.0 default_config.rpcs.test_iam_permissions.timeout = 10.0 default_config.rpcs.test_iam_permissions.retry_policy = { - initial_delay: 0.1, - max_delay: 10.0, - multiplier: 1.3, - retry_codes: [4, 14] + initial_delay: 0.1, max_delay: 10.0, multiplier: 1.3, retry_codes: [4, 14] } default_config.rpcs.list_tasks.timeout = 10.0 default_config.rpcs.list_tasks.retry_policy = { - initial_delay: 0.1, - max_delay: 10.0, - multiplier: 1.3, - retry_codes: [4, 14] + initial_delay: 0.1, max_delay: 10.0, multiplier: 1.3, retry_codes: [4, 14] } default_config.rpcs.get_task.timeout = 10.0 default_config.rpcs.get_task.retry_policy = { - initial_delay: 0.1, - max_delay: 10.0, - multiplier: 1.3, - retry_codes: [4, 14] + initial_delay: 0.1, max_delay: 10.0, multiplier: 1.3, retry_codes: [4, 14] } default_config.rpcs.create_task.timeout = 10.0 default_config.rpcs.delete_task.timeout = 10.0 default_config.rpcs.delete_task.retry_policy = { - initial_delay: 0.1, - max_delay: 10.0, - multiplier: 1.3, - retry_codes: [4, 14] + initial_delay: 0.1, max_delay: 10.0, multiplier: 1.3, retry_codes: [4, 14] } default_config.rpcs.run_task.timeout = 10.0 default_config @@ -212,10 +188,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