lib/google/cloud/talent/v4beta1/company_service/client.rb in google-cloud-talent-v4beta1-0.4.1 vs lib/google/cloud/talent/v4beta1/company_service/client.rb in google-cloud-talent-v4beta1-0.4.2

- old
+ new

@@ -67,32 +67,23 @@ default_config.rpcs.create_company.timeout = 30.0 default_config.rpcs.get_company.timeout = 30.0 default_config.rpcs.get_company.retry_policy = { - initial_delay: 0.1, - max_delay: 60.0, - multiplier: 1.3, - retry_codes: [4, 14] + initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14] } default_config.rpcs.update_company.timeout = 30.0 default_config.rpcs.delete_company.timeout = 30.0 default_config.rpcs.delete_company.retry_policy = { - initial_delay: 0.1, - max_delay: 60.0, - multiplier: 1.3, - retry_codes: [4, 14] + initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14] } default_config.rpcs.list_companies.timeout = 30.0 default_config.rpcs.list_companies.retry_policy = { - initial_delay: 0.1, - max_delay: 60.0, - multiplier: 1.3, - retry_codes: [4, 14] + initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14] } default_config end yield @configure if block_given? @@ -159,10 +150,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