lib/google/cloud/vision/v1p3beta1/image_annotator/client.rb in google-cloud-vision-v1p3beta1-0.5.1 vs lib/google/cloud/vision/v1p3beta1/image_annotator/client.rb in google-cloud-vision-v1p3beta1-0.5.2

- old
+ new

@@ -67,22 +67,16 @@ end default_config = Client::Configuration.new parent_config default_config.rpcs.batch_annotate_images.timeout = 600.0 default_config.rpcs.batch_annotate_images.retry_policy = { - initial_delay: 0.1, - max_delay: 60.0, - multiplier: 1.3, - retry_codes: [14, 4] + initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] } default_config.rpcs.async_batch_annotate_files.timeout = 600.0 default_config.rpcs.async_batch_annotate_files.retry_policy = { - initial_delay: 0.1, - max_delay: 60.0, - multiplier: 1.3, - retry_codes: [] + initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [] } default_config end yield @configure if block_given? @@ -149,10 +143,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