Skip to content

Commit

Permalink
feat: quota_project can be set via library configuration (#7630)
Browse files Browse the repository at this point in the history
  • Loading branch information
dazuma committed Sep 15, 2020
1 parent 4993733 commit fd5146d
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions google-cloud-bigtable/lib/google-cloud-bigtable.rb
Expand Up @@ -166,6 +166,7 @@ def self.bigtable project_id: nil, credentials: nil, scope: nil, timeout: nil
],
allow_nil: true
config.add_field! :scope, default_scopes, match: [String, Array]
config.add_field! :quota_project, nil, match: String
config.add_field! :timeout, nil, match: Integer
config.add_field! :emulator_host, default_emulator, match: String, allow_nil: true
config.add_field! :endpoint, "bigtable.googleapis.com", match: String
Expand Down
1 change: 1 addition & 0 deletions google-cloud-datastore/lib/google-cloud-datastore.rb
Expand Up @@ -145,6 +145,7 @@ def self.datastore project_id = nil, credentials = nil, scope: nil,
config.add_field! :credentials, default_creds, match: [String, Hash, Google::Auth::Credentials], allow_nil: true
config.add_alias! :keyfile, :credentials
config.add_field! :scope, default_scopes, match: [String, Array]
config.add_field! :quota_project, nil, match: String
config.add_field! :timeout, nil, match: Integer
config.add_field! :emulator_host, default_emulator, match: String, allow_nil: true
config.add_field! :endpoint, "datastore.googleapis.com", match: String
Expand Down
1 change: 1 addition & 0 deletions google-cloud-debugger/lib/google-cloud-debugger.rb
Expand Up @@ -173,6 +173,7 @@ def self.debugger project_id = nil, credentials = nil, service_name: nil,
config.add_field! :app_root, nil, match: String
config.add_field! :root, nil, match: String
config.add_field! :scope, default_scopes, match: [String, Array]
config.add_field! :quota_project, nil, match: String
config.add_field! :timeout, nil, match: Integer
config.add_field! :endpoint, "clouddebugger.googleapis.com", match: String
config.add_field! :allow_mutating_methods, false
Expand Down
Expand Up @@ -150,6 +150,7 @@ def self.error_reporting project_id = nil, credentials = nil, scope: nil, timeou
allow_nil: true
config.add_alias! :keyfile, :credentials
config.add_field! :scope, default_scopes, match: [String, Array]
config.add_field! :quota_project, nil, match: String
config.add_field! :timeout, nil, match: Integer
config.add_field! :endpoint, "clouderrorreporting.googleapis.com", match: String
config.add_field! :service_name, default_service,
Expand Down
1 change: 1 addition & 0 deletions google-cloud-firestore/lib/google-cloud-firestore.rb
Expand Up @@ -125,6 +125,7 @@ def self.firestore project_id = nil, credentials = nil, scope: nil, timeout: nil
config.add_field! :credentials, default_creds, match: [String, Hash, Google::Auth::Credentials], allow_nil: true
config.add_alias! :keyfile, :credentials
config.add_field! :scope, default_scopes, match: [String, Array]
config.add_field! :quota_project, nil, match: String
config.add_field! :timeout, nil, match: Integer
config.add_field! :emulator_host, default_emulator, match: String, allow_nil: true
config.add_field! :endpoint, "firestore.googleapis.com", match: String
Expand Down
1 change: 1 addition & 0 deletions google-cloud-logging/lib/google-cloud-logging.rb
Expand Up @@ -147,6 +147,7 @@ def self.logging project_id = nil, credentials = nil, scope: nil, timeout: nil
allow_nil: true
config.add_alias! :keyfile, :credentials
config.add_field! :scope, default_scopes, match: [String, Array]
config.add_field! :quota_project, nil, match: String
config.add_field! :timeout, nil, match: Integer
config.add_field! :endpoint, "logging.googleapis.com", match: String
config.add_field! :log_name, nil, match: String
Expand Down
1 change: 1 addition & 0 deletions google-cloud-pubsub/lib/google-cloud-pubsub.rb
Expand Up @@ -132,6 +132,7 @@ def self.pubsub project_id = nil,
config.add_field! :credentials, default_creds, match: [String, Hash, Google::Auth::Credentials], allow_nil: true
config.add_alias! :keyfile, :credentials
config.add_field! :scope, default_scopes, match: [String, Array]
config.add_field! :quota_project, nil, match: String
config.add_field! :timeout, nil, match: Integer
config.add_field! :emulator_host, default_emulator, match: String, allow_nil: true
config.add_field! :on_error, nil, match: Proc
Expand Down
1 change: 1 addition & 0 deletions google-cloud-spanner/lib/google-cloud-spanner.rb
Expand Up @@ -174,6 +174,7 @@ def self.spanner project_id = nil, credentials = nil, scope: nil,
allow_nil: true
config.add_alias! :keyfile, :credentials
config.add_field! :scope, default_scopes, match: [String, Array]
config.add_field! :quota_project, nil, match: String
config.add_field! :timeout, nil, match: Integer
config.add_field! :endpoint, "spanner.googleapis.com", match: String
config.add_field! :emulator_host, default_emulator, match: String, allow_nil: true
Expand Down

0 comments on commit fd5146d

Please sign in to comment.