google-cloud-redis-v1beta1 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb2ec5c9386de7c735110e11e89c510f587f27777e1a27def923a30523bea94a
4
- data.tar.gz: fbfd4d89050020e8971db2854d654651e0dd217a5f381aaf58509a1633feb99e
3
+ metadata.gz: 076eb50baeb8f4c67453f537c5794979b33d185eccdf339f41bc4194f3a972ee
4
+ data.tar.gz: 958da724969c3297e54bfe2c75ff7f4e7d993f6df107c865c5ec7f790acb39e3
5
5
  SHA512:
6
- metadata.gz: 5ee40e76cf8671c4f8d10129c286f743eef1aa866b2c93dc9ce51e7d7bbff6af02479506032da5f05676444d5e1bfd7002c02b4c7a43a64a987eabeec5b380f6
7
- data.tar.gz: 62f49116b6afe316952eca986badc45cb3576c59ac45484e5aa039578df1ae1ac013bed3e380a5fdff34b39e4efb901010ac4f79770984eedfc2ea8944128b20
6
+ metadata.gz: ebae632bd32c5d36fd93a6c66d51aa48a1637f8287b009687cf1e177e6c4fff82648c0e3b7d7d068a5774758af7994b46f95158fca84e8361fd0117bda391892
7
+ data.tar.gz: b969807219e9a6a1dbf15293318b4d648e4feaadd17bc54347abe48fec5540ff872117c57d62c0e9f2a2fed29b2b9adabe2e53013da9efed57ce4ad2ff11a5fd
@@ -162,7 +162,8 @@ module Google
162
162
  if credentials.is_a?(String) || credentials.is_a?(Hash)
163
163
  credentials = Credentials.new credentials, scope: @config.scope
164
164
  end
165
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
165
+ @quota_project_id = @config.quota_project
166
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
166
167
 
167
168
  @operations_client = Operations.new do |config|
168
169
  config.credentials = credentials
@@ -960,24 +961,28 @@ module Google
960
961
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
961
962
  # trigger a retry.
962
963
  # @return [::Hash]
964
+ # @!attribute [rw] quota_project
965
+ # A separate project against which to charge quota.
966
+ # @return [::String]
963
967
  #
964
968
  class Configuration
965
969
  extend ::Gapic::Config
966
970
 
967
- config_attr :endpoint, "redis.googleapis.com", String
968
- config_attr :credentials, nil do |value|
971
+ config_attr :endpoint, "redis.googleapis.com", ::String
972
+ config_attr :credentials, nil do |value|
969
973
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
970
974
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
971
975
  allowed.any? { |klass| klass === value }
972
976
  end
973
- config_attr :scope, nil, ::String, ::Array, nil
974
- config_attr :lib_name, nil, ::String, nil
975
- config_attr :lib_version, nil, ::String, nil
976
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
977
- config_attr :interceptors, nil, ::Array, nil
978
- config_attr :timeout, nil, ::Numeric, nil
979
- config_attr :metadata, nil, ::Hash, nil
980
- config_attr :retry_policy, nil, ::Hash, Proc, nil
977
+ config_attr :scope, nil, ::String, ::Array, nil
978
+ config_attr :lib_name, nil, ::String, nil
979
+ config_attr :lib_version, nil, ::String, nil
980
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
981
+ config_attr :interceptors, nil, ::Array, nil
982
+ config_attr :timeout, nil, ::Numeric, nil
983
+ config_attr :metadata, nil, ::Hash, nil
984
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
985
+ config_attr :quota_project, nil, ::String, nil
981
986
 
982
987
  # @private
983
988
  def initialize parent_config = nil
@@ -464,24 +464,28 @@ module Google
464
464
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
465
465
  # trigger a retry.
466
466
  # @return [::Hash]
467
+ # @!attribute [rw] quota_project
468
+ # A separate project against which to charge quota.
469
+ # @return [::String]
467
470
  #
468
471
  class Configuration
469
472
  extend ::Gapic::Config
470
473
 
471
- config_attr :endpoint, "redis.googleapis.com", String
472
- config_attr :credentials, nil do |value|
474
+ config_attr :endpoint, "redis.googleapis.com", ::String
475
+ config_attr :credentials, nil do |value|
473
476
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
474
477
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
475
478
  allowed.any? { |klass| klass === value }
476
479
  end
477
- config_attr :scope, nil, ::String, ::Array, nil
478
- config_attr :lib_name, nil, ::String, nil
479
- config_attr :lib_version, nil, ::String, nil
480
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
481
- config_attr :interceptors, nil, ::Array, nil
482
- config_attr :timeout, nil, ::Numeric, nil
483
- config_attr :metadata, nil, ::Hash, nil
484
- config_attr :retry_policy, nil, ::Hash, Proc, nil
480
+ config_attr :scope, nil, ::String, ::Array, nil
481
+ config_attr :lib_name, nil, ::String, nil
482
+ config_attr :lib_version, nil, ::String, nil
483
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
484
+ config_attr :interceptors, nil, ::Array, nil
485
+ config_attr :timeout, nil, ::Numeric, nil
486
+ config_attr :metadata, nil, ::Hash, nil
487
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
488
+ config_attr :quota_project, nil, ::String, nil
485
489
 
486
490
  # @private
487
491
  def initialize parent_config = nil
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Redis
23
23
  module V1beta1
24
- VERSION = "0.1.1"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-redis-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-05 00:00:00.000000000 Z
11
+ date: 2020-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -58,14 +58,42 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '5.10'
61
+ version: '5.14'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '5.10'
68
+ version: '5.14'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest-focus
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.1'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: minitest-rg
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '5.2'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '5.2'
69
97
  - !ruby/object:Gem::Dependency
70
98
  name: rake
71
99
  requirement: !ruby/object:Gem::Requirement