google-cloud-redis-v1beta1 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 076eb50baeb8f4c67453f537c5794979b33d185eccdf339f41bc4194f3a972ee
|
|
4
|
+
data.tar.gz: 958da724969c3297e54bfe2c75ff7f4e7d993f6df107c865c5ec7f790acb39e3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 =
|
|
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,
|
|
968
|
-
config_attr :credentials,
|
|
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,
|
|
974
|
-
config_attr :lib_name,
|
|
975
|
-
config_attr :lib_version,
|
|
976
|
-
config_attr(:channel_args,
|
|
977
|
-
config_attr :interceptors,
|
|
978
|
-
config_attr :timeout,
|
|
979
|
-
config_attr :metadata,
|
|
980
|
-
config_attr :retry_policy,
|
|
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,
|
|
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-v1beta1
|
|
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-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.
|
|
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
|