google-cloud-redis-v1 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: 96e3dfdba6283c5e01b9cd277897b83ce9c7ced88c26a24e574cb2429f6caf1d
4
- data.tar.gz: f7e60670c1f2faa913043dc2e9cabf34ebeb8381960e53f820399aa59709ef1e
3
+ metadata.gz: 9db09d5d687a7c7e04b954ba99e87b4e7d972952f839e40ad2ae56aff7cec00c
4
+ data.tar.gz: fa4386a70ebb090d042d09671272d92ee5301e24059e33b7cbf73ae925d0ed4c
5
5
  SHA512:
6
- metadata.gz: 06b41c996afa7d0e0a296b17108ce9aaf0e760153409035462d496cf842c8515332443736dbaf3a3d102e3cb1f9df0b2ccb694ff336a63de0f2bee20bb07bc42
7
- data.tar.gz: eef8724ea179d54baed22be7bc4e7bf007be0b77bb9c75e55e26268b59bce4936ea6f6734efd2f4caef534ee485416f2f56f11ef356d90dca530768a3915fdda
6
+ metadata.gz: a573d10381e38beb34ab80f56080cd25e2495b58d5f66bf8c7bae49a14f16b21d103b60a7bd31f93c12368133c81c3edf967b3b7823e48c39229a3098c845844
7
+ data.tar.gz: 4518434cf6a34832a3ede77af09e35116aa2ad474f3705e977910e0ea79888ddefb1f6d3653812084ae9f7633894850b05c125c2e84384af7ca438ba61c2e531
@@ -160,7 +160,8 @@ module Google
160
160
  if credentials.is_a?(String) || credentials.is_a?(Hash)
161
161
  credentials = Credentials.new credentials, scope: @config.scope
162
162
  end
163
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
163
+ @quota_project_id = @config.quota_project
164
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
164
165
 
165
166
  @operations_client = Operations.new do |config|
166
167
  config.credentials = credentials
@@ -886,24 +887,28 @@ module Google
886
887
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
887
888
  # trigger a retry.
888
889
  # @return [::Hash]
890
+ # @!attribute [rw] quota_project
891
+ # A separate project against which to charge quota.
892
+ # @return [::String]
889
893
  #
890
894
  class Configuration
891
895
  extend ::Gapic::Config
892
896
 
893
- config_attr :endpoint, "redis.googleapis.com", String
894
- config_attr :credentials, nil do |value|
897
+ config_attr :endpoint, "redis.googleapis.com", ::String
898
+ config_attr :credentials, nil do |value|
895
899
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
896
900
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
897
901
  allowed.any? { |klass| klass === value }
898
902
  end
899
- config_attr :scope, nil, ::String, ::Array, nil
900
- config_attr :lib_name, nil, ::String, nil
901
- config_attr :lib_version, nil, ::String, nil
902
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
903
- config_attr :interceptors, nil, ::Array, nil
904
- config_attr :timeout, nil, ::Numeric, nil
905
- config_attr :metadata, nil, ::Hash, nil
906
- config_attr :retry_policy, nil, ::Hash, Proc, nil
903
+ config_attr :scope, nil, ::String, ::Array, nil
904
+ config_attr :lib_name, nil, ::String, nil
905
+ config_attr :lib_version, nil, ::String, nil
906
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
907
+ config_attr :interceptors, nil, ::Array, nil
908
+ config_attr :timeout, nil, ::Numeric, nil
909
+ config_attr :metadata, nil, ::Hash, nil
910
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
911
+ config_attr :quota_project, nil, ::String, nil
907
912
 
908
913
  # @private
909
914
  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 V1
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-v1
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-20 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