lib/google/cloud/dataqna/v1alpha/question_service/client.rb in google-cloud-dataqna-v1alpha-0.2.1 vs lib/google/cloud/dataqna/v1alpha/question_service/client.rb in google-cloud-dataqna-v1alpha-0.2.2

- old
+ new

@@ -79,14 +79,11 @@ end default_config = Client::Configuration.new parent_config default_config.timeout = 60.0 default_config.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_question.timeout = 60.0 default_config.rpcs.execute_question.timeout = 60.0 @@ -159,10 +156,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