google-cloud-kms-v1 1.19.0 → 1.19.1
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 +4 -4
- data/lib/google/cloud/kms/v1/iam_policy/client.rb +16 -5
- data/lib/google/cloud/kms/v1/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6858f9455b3880fc1b1f97b7b78c4a6388052e47d325654c89512bd180183826
|
|
4
|
+
data.tar.gz: 4ac421746d353d3811fad2a2328e83e5508bda67a08b4c1b69a67f3788477163
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5d3c71c200a68dd616540bff9ae8c1cc0dedbcc83f1d86e2c61c1c1d51eeae5495a8a6098177c7f341c44197a1877d7a976be82d195b39abb7a3866bfe86b465
|
|
7
|
+
data.tar.gz: e328758d850d81b9523206a9d19dc6979dd901ebaee6536507f8620c731df3025a78bc7e4f4e10c710fa15001f6fc7f577dae1aeac74f1b58472c02dc4e795fd
|
|
@@ -32,6 +32,9 @@ module Google
|
|
|
32
32
|
# legacy class.
|
|
33
33
|
#
|
|
34
34
|
class Client
|
|
35
|
+
# @private
|
|
36
|
+
DEFAULT_ENDPOINT_TEMPLATE = "cloudkms.$UNIVERSE_DOMAIN$"
|
|
37
|
+
|
|
35
38
|
# @private
|
|
36
39
|
attr_reader :iam_policy_stub
|
|
37
40
|
|
|
@@ -83,8 +86,9 @@ module Google
|
|
|
83
86
|
credentials = @config.credentials
|
|
84
87
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
85
88
|
# but only if the default endpoint does not have a region prefix.
|
|
86
|
-
enable_self_signed_jwt = @config.endpoint
|
|
87
|
-
|
|
89
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
|
90
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
91
|
+
!@config.endpoint.split(".").first.include?("-"))
|
|
88
92
|
credentials ||= Credentials.default scope: @config.scope,
|
|
89
93
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
90
94
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
|
@@ -95,8 +99,10 @@ module Google
|
|
|
95
99
|
|
|
96
100
|
@iam_policy_stub = ::Gapic::ServiceStub.new(
|
|
97
101
|
::Google::Iam::V1::IAMPolicy::Stub,
|
|
98
|
-
credentials:
|
|
99
|
-
endpoint:
|
|
102
|
+
credentials: credentials,
|
|
103
|
+
endpoint: @config.endpoint,
|
|
104
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
|
105
|
+
universe_domain: @config.universe_domain,
|
|
100
106
|
channel_args: @config.channel_args,
|
|
101
107
|
interceptors: @config.interceptors
|
|
102
108
|
)
|
|
@@ -242,7 +248,11 @@ module Google
|
|
|
242
248
|
class Configuration
|
|
243
249
|
extend ::Gapic::Config
|
|
244
250
|
|
|
245
|
-
|
|
251
|
+
# @private
|
|
252
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
|
253
|
+
DEFAULT_ENDPOINT = "cloudkms.googleapis.com"
|
|
254
|
+
|
|
255
|
+
config_attr :endpoint, nil, ::String, nil
|
|
246
256
|
config_attr :credentials, nil do |value|
|
|
247
257
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
248
258
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -257,6 +267,7 @@ module Google
|
|
|
257
267
|
config_attr :metadata, nil, ::Hash, nil
|
|
258
268
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
259
269
|
config_attr :quota_project, nil, ::String, nil
|
|
270
|
+
config_attr :universe_domain, nil, ::String, nil
|
|
260
271
|
|
|
261
272
|
# @private
|
|
262
273
|
def initialize parent_config = nil
|