google-cloud-kms 1.1.0 → 1.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: 3b31a26b0f50865e05cc9481bf05e56333bea86f015e44c9e080d1c36e970ff2
|
4
|
+
data.tar.gz: 30a4a9a82a4c2d93903ea68fcfad995a5c864a6a61b97f3d8150f9d8723498fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42c27be2adb7aa03dd660dd3a1db78461ad13a956520dafb3d880c789535d7995fbb950d5f38ab6f3dfc1acd4787f25635a29495f11cd366b461b4f602b418f3
|
7
|
+
data.tar.gz: a624f18a984d726612437532d7510832f2a621f4b2633007c7db11911579f204873887491acef5f7e17ec78da7c4fea83ca89ceed147c5ba5b0df1be55ddee72
|
data/lib/google/cloud/kms.rb
CHANGED
@@ -130,6 +130,10 @@ module Google
|
|
130
130
|
# The default timeout, in seconds, for calls made through this client.
|
131
131
|
# @param metadata [Hash]
|
132
132
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
133
|
+
# @param service_address [String]
|
134
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
135
|
+
# @param service_port [Integer]
|
136
|
+
# Override for the service port, or `nil` to leave as the default.
|
133
137
|
# @param exception_transformer [Proc]
|
134
138
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
135
139
|
# custom error handling.
|
data/lib/google/cloud/kms/v1.rb
CHANGED
@@ -120,6 +120,10 @@ module Google
|
|
120
120
|
# The default timeout, in seconds, for calls made through this client.
|
121
121
|
# @param metadata [Hash]
|
122
122
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
123
|
+
# @param service_address [String]
|
124
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
125
|
+
# @param service_port [Integer]
|
126
|
+
# Override for the service port, or `nil` to leave as the default.
|
123
127
|
# @param exception_transformer [Proc]
|
124
128
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
125
129
|
# custom error handling.
|
@@ -129,6 +133,8 @@ module Google
|
|
129
133
|
client_config: nil,
|
130
134
|
timeout: nil,
|
131
135
|
metadata: nil,
|
136
|
+
service_address: nil,
|
137
|
+
service_port: nil,
|
132
138
|
exception_transformer: nil,
|
133
139
|
lib_name: nil,
|
134
140
|
lib_version: nil
|
@@ -140,6 +146,8 @@ module Google
|
|
140
146
|
metadata: metadata,
|
141
147
|
exception_transformer: exception_transformer,
|
142
148
|
lib_name: lib_name,
|
149
|
+
service_address: service_address,
|
150
|
+
service_port: service_port,
|
143
151
|
lib_version: lib_version
|
144
152
|
}.select { |_, v| v != nil }
|
145
153
|
Google::Cloud::Kms::V1::KeyManagementServiceClient.new(**kwargs)
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# Copyright 2019 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
|
16
|
+
module Google
|
17
|
+
module Iam
|
18
|
+
module V1
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -242,6 +242,10 @@ module Google
|
|
242
242
|
# The default timeout, in seconds, for calls made through this client.
|
243
243
|
# @param metadata [Hash]
|
244
244
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
245
|
+
# @param service_address [String]
|
246
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
247
|
+
# @param service_port [Integer]
|
248
|
+
# Override for the service port, or `nil` to leave as the default.
|
245
249
|
# @param exception_transformer [Proc]
|
246
250
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
247
251
|
# custom error handling.
|
@@ -251,6 +255,8 @@ module Google
|
|
251
255
|
client_config: {},
|
252
256
|
timeout: DEFAULT_TIMEOUT,
|
253
257
|
metadata: nil,
|
258
|
+
service_address: nil,
|
259
|
+
service_port: nil,
|
254
260
|
exception_transformer: nil,
|
255
261
|
lib_name: nil,
|
256
262
|
lib_version: ""
|
@@ -306,8 +312,8 @@ module Google
|
|
306
312
|
end
|
307
313
|
|
308
314
|
# Allow overriding the service path/port in subclasses.
|
309
|
-
service_path = self.class::SERVICE_ADDRESS
|
310
|
-
port = self.class::DEFAULT_SERVICE_PORT
|
315
|
+
service_path = service_address || self.class::SERVICE_ADDRESS
|
316
|
+
port = service_port || self.class::DEFAULT_SERVICE_PORT
|
311
317
|
interceptors = self.class::GRPC_INTERCEPTORS
|
312
318
|
@key_management_service_stub = Google::Gax::Grpc.create_stub(
|
313
319
|
service_path,
|
@@ -1689,6 +1695,11 @@ module Google
|
|
1689
1695
|
# @param resource [String]
|
1690
1696
|
# REQUIRED: The resource for which the policy is being requested.
|
1691
1697
|
# See the operation documentation for the appropriate value for this field.
|
1698
|
+
# @param options_ [Google::Iam::V1::GetPolicyOptions | Hash]
|
1699
|
+
# OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
1700
|
+
# `GetIamPolicy`. This field is only used by Cloud IAM.
|
1701
|
+
# A hash of the same form as `Google::Iam::V1::GetPolicyOptions`
|
1702
|
+
# can also be provided.
|
1692
1703
|
# @param options [Google::Gax::CallOptions]
|
1693
1704
|
# Overrides the default settings for this call, e.g, timeout,
|
1694
1705
|
# retries, etc.
|
@@ -1706,10 +1717,12 @@ module Google
|
|
1706
1717
|
|
1707
1718
|
def get_iam_policy \
|
1708
1719
|
resource,
|
1720
|
+
options_: nil,
|
1709
1721
|
options: nil,
|
1710
1722
|
&block
|
1711
1723
|
req = {
|
1712
|
-
resource: resource
|
1724
|
+
resource: resource,
|
1725
|
+
options: options_
|
1713
1726
|
}.delete_if { |_, v| v.nil? }
|
1714
1727
|
req = Google::Gax::to_proto(req, Google::Iam::V1::GetIamPolicyRequest)
|
1715
1728
|
@get_iam_policy.call(req, options, &block)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-kms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.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: 2019-
|
11
|
+
date: 2019-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.7'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.7'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: grpc-google-iam-v1
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -125,6 +125,7 @@ files:
|
|
125
125
|
- lib/google/cloud/kms/v1/doc/google/cloud/kms/v1/resources.rb
|
126
126
|
- lib/google/cloud/kms/v1/doc/google/cloud/kms/v1/service.rb
|
127
127
|
- lib/google/cloud/kms/v1/doc/google/iam/v1/iam_policy.rb
|
128
|
+
- lib/google/cloud/kms/v1/doc/google/iam/v1/options.rb
|
128
129
|
- lib/google/cloud/kms/v1/doc/google/iam/v1/policy.rb
|
129
130
|
- lib/google/cloud/kms/v1/doc/google/protobuf/duration.rb
|
130
131
|
- lib/google/cloud/kms/v1/doc/google/protobuf/field_mask.rb
|