lib/google/cloud/firestore/admin/v1/firestore_admin/client.rb in google-cloud-firestore-admin-v1-0.3.1 vs lib/google/cloud/firestore/admin/v1/firestore_admin/client.rb in google-cloud-firestore-admin-v1-0.3.2

- old
+ new

@@ -69,48 +69,33 @@ default_config.rpcs.create_index.timeout = 60.0 default_config.rpcs.list_indexes.timeout = 60.0 default_config.rpcs.list_indexes.retry_policy = { - initial_delay: 0.1, - max_delay: 60.0, - multiplier: 1.3, - retry_codes: [14, 13, 4] + initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 13, 4] } default_config.rpcs.get_index.timeout = 60.0 default_config.rpcs.get_index.retry_policy = { - initial_delay: 0.1, - max_delay: 60.0, - multiplier: 1.3, - retry_codes: [14, 13, 4] + initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 13, 4] } default_config.rpcs.delete_index.timeout = 60.0 default_config.rpcs.delete_index.retry_policy = { - initial_delay: 0.1, - max_delay: 60.0, - multiplier: 1.3, - retry_codes: [14, 13, 4] + initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 13, 4] } default_config.rpcs.get_field.timeout = 60.0 default_config.rpcs.get_field.retry_policy = { - initial_delay: 0.1, - max_delay: 60.0, - multiplier: 1.3, - retry_codes: [14, 13, 4] + initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 13, 4] } default_config.rpcs.update_field.timeout = 60.0 default_config.rpcs.list_fields.timeout = 60.0 default_config.rpcs.list_fields.retry_policy = { - initial_delay: 0.1, - max_delay: 60.0, - multiplier: 1.3, - retry_codes: [14, 13, 4] + initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 13, 4] } default_config.rpcs.export_documents.timeout = 60.0 default_config.rpcs.import_documents.timeout = 60.0 @@ -181,10 +166,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