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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9db09d5d687a7c7e04b954ba99e87b4e7d972952f839e40ad2ae56aff7cec00c
|
4
|
+
data.tar.gz: fa4386a70ebb090d042d09671272d92ee5301e24059e33b7cbf73ae925d0ed4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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,
|
894
|
-
config_attr :credentials,
|
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,
|
900
|
-
config_attr :lib_name,
|
901
|
-
config_attr :lib_version,
|
902
|
-
config_attr(:channel_args,
|
903
|
-
config_attr :interceptors,
|
904
|
-
config_attr :timeout,
|
905
|
-
config_attr :metadata,
|
906
|
-
config_attr :retry_policy,
|
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,
|
472
|
-
config_attr :credentials,
|
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,
|
478
|
-
config_attr :lib_name,
|
479
|
-
config_attr :lib_version,
|
480
|
-
config_attr(:channel_args,
|
481
|
-
config_attr :interceptors,
|
482
|
-
config_attr :timeout,
|
483
|
-
config_attr :metadata,
|
484
|
-
config_attr :retry_policy,
|
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
|
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.
|
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-
|
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.
|
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.
|
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
|