google-cloud-kms-inventory-v1 0.6.0 → 0.7.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 +4 -4
- data/lib/google/cloud/kms/inventory/v1/key_dashboard_service/client.rb +10 -1
- data/lib/google/cloud/kms/inventory/v1/key_dashboard_service/rest/client.rb +20 -0
- data/lib/google/cloud/kms/inventory/v1/key_tracking_service/client.rb +10 -1
- data/lib/google/cloud/kms/inventory/v1/key_tracking_service/rest/client.rb +36 -0
- data/lib/google/cloud/kms/inventory/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/kms/v1/resources.rb +8 -8
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c6ed9fb6df3ded7dc914937cba8193e062af5bdee3cbc6bf6109fc99315aee0
|
4
|
+
data.tar.gz: fd90c9913cdfcea4feb8491c0f55e8b187646d9dc8ec5ca7b7c9aa5f02f6deec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 499fbe785c74ab9aa22da9ca2c84c20c99a5fa0a158eeeb138ce27a91eaf0bdffd711b223889df21e045453e61f21b2ff21589a424ddc2d70665f3798c7d326f
|
7
|
+
data.tar.gz: 6ac482bdaee1015012e1ee0ac101d919664689799cd0f96670aea88c9245ac5aa564c04294b3c9c98a75d2c078440ec3e83c0a8d7c471bf2e0fa024e7600d2af
|
@@ -141,7 +141,8 @@ module Google
|
|
141
141
|
credentials: credentials,
|
142
142
|
endpoint: @config.endpoint,
|
143
143
|
channel_args: @config.channel_args,
|
144
|
-
interceptors: @config.interceptors
|
144
|
+
interceptors: @config.interceptors,
|
145
|
+
channel_pool_config: @config.channel_pool
|
145
146
|
)
|
146
147
|
end
|
147
148
|
|
@@ -366,6 +367,14 @@ module Google
|
|
366
367
|
end
|
367
368
|
end
|
368
369
|
|
370
|
+
##
|
371
|
+
# Configuration for the channel pool
|
372
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
373
|
+
#
|
374
|
+
def channel_pool
|
375
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
376
|
+
end
|
377
|
+
|
369
378
|
##
|
370
379
|
# Configuration RPC class for the KeyDashboardService API.
|
371
380
|
#
|
@@ -175,6 +175,26 @@ module Google
|
|
175
175
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Kms::V1::CryptoKey>]
|
176
176
|
#
|
177
177
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
178
|
+
#
|
179
|
+
# @example Basic example
|
180
|
+
# require "google/cloud/kms/inventory/v1"
|
181
|
+
#
|
182
|
+
# # Create a client object. The client can be reused for multiple calls.
|
183
|
+
# client = Google::Cloud::Kms::Inventory::V1::KeyDashboardService::Rest::Client.new
|
184
|
+
#
|
185
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
186
|
+
# request = Google::Cloud::Kms::Inventory::V1::ListCryptoKeysRequest.new
|
187
|
+
#
|
188
|
+
# # Call the list_crypto_keys method.
|
189
|
+
# result = client.list_crypto_keys request
|
190
|
+
#
|
191
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
192
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
193
|
+
# result.each do |item|
|
194
|
+
# # Each element is of type ::Google::Cloud::Kms::V1::CryptoKey.
|
195
|
+
# p item
|
196
|
+
# end
|
197
|
+
#
|
178
198
|
def list_crypto_keys request, options = nil
|
179
199
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
180
200
|
|
@@ -144,7 +144,8 @@ module Google
|
|
144
144
|
credentials: credentials,
|
145
145
|
endpoint: @config.endpoint,
|
146
146
|
channel_args: @config.channel_args,
|
147
|
-
interceptors: @config.interceptors
|
147
|
+
interceptors: @config.interceptors,
|
148
|
+
channel_pool_config: @config.channel_pool
|
148
149
|
)
|
149
150
|
end
|
150
151
|
|
@@ -482,6 +483,14 @@ module Google
|
|
482
483
|
end
|
483
484
|
end
|
484
485
|
|
486
|
+
##
|
487
|
+
# Configuration for the channel pool
|
488
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
489
|
+
#
|
490
|
+
def channel_pool
|
491
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
492
|
+
end
|
493
|
+
|
485
494
|
##
|
486
495
|
# Configuration RPC class for the KeyTrackingService API.
|
487
496
|
#
|
@@ -173,6 +173,22 @@ module Google
|
|
173
173
|
# @return [::Google::Cloud::Kms::Inventory::V1::ProtectedResourcesSummary]
|
174
174
|
#
|
175
175
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
176
|
+
#
|
177
|
+
# @example Basic example
|
178
|
+
# require "google/cloud/kms/inventory/v1"
|
179
|
+
#
|
180
|
+
# # Create a client object. The client can be reused for multiple calls.
|
181
|
+
# client = Google::Cloud::Kms::Inventory::V1::KeyTrackingService::Rest::Client.new
|
182
|
+
#
|
183
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
184
|
+
# request = Google::Cloud::Kms::Inventory::V1::GetProtectedResourcesSummaryRequest.new
|
185
|
+
#
|
186
|
+
# # Call the get_protected_resources_summary method.
|
187
|
+
# result = client.get_protected_resources_summary request
|
188
|
+
#
|
189
|
+
# # The returned object is of type Google::Cloud::Kms::Inventory::V1::ProtectedResourcesSummary.
|
190
|
+
# p result
|
191
|
+
#
|
176
192
|
def get_protected_resources_summary request, options = nil
|
177
193
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
178
194
|
|
@@ -268,6 +284,26 @@ module Google
|
|
268
284
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Kms::Inventory::V1::ProtectedResource>]
|
269
285
|
#
|
270
286
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
287
|
+
#
|
288
|
+
# @example Basic example
|
289
|
+
# require "google/cloud/kms/inventory/v1"
|
290
|
+
#
|
291
|
+
# # Create a client object. The client can be reused for multiple calls.
|
292
|
+
# client = Google::Cloud::Kms::Inventory::V1::KeyTrackingService::Rest::Client.new
|
293
|
+
#
|
294
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
295
|
+
# request = Google::Cloud::Kms::Inventory::V1::SearchProtectedResourcesRequest.new
|
296
|
+
#
|
297
|
+
# # Call the search_protected_resources method.
|
298
|
+
# result = client.search_protected_resources request
|
299
|
+
#
|
300
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
301
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
302
|
+
# result.each do |item|
|
303
|
+
# # Each element is of type ::Google::Cloud::Kms::Inventory::V1::ProtectedResource.
|
304
|
+
# p item
|
305
|
+
# end
|
306
|
+
#
|
271
307
|
def search_protected_resources request, options = nil
|
272
308
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
273
309
|
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
end
|
@@ -386,11 +386,11 @@ module Google
|
|
386
386
|
# {::Google::Cloud::Kms::V1::CryptoKey#purpose CryptoKey.purpose}
|
387
387
|
# {::Google::Cloud::Kms::V1::CryptoKey::CryptoKeyPurpose::ENCRYPT_DECRYPT ENCRYPT_DECRYPT}.
|
388
388
|
#
|
389
|
-
# Algorithms beginning with
|
389
|
+
# Algorithms beginning with `RSA_SIGN_` are usable with
|
390
390
|
# {::Google::Cloud::Kms::V1::CryptoKey#purpose CryptoKey.purpose}
|
391
391
|
# {::Google::Cloud::Kms::V1::CryptoKey::CryptoKeyPurpose::ASYMMETRIC_SIGN ASYMMETRIC_SIGN}.
|
392
392
|
#
|
393
|
-
# The fields in the name after
|
393
|
+
# The fields in the name after `RSA_SIGN_` correspond to the following
|
394
394
|
# parameters: padding algorithm, modulus bit length, and digest algorithm.
|
395
395
|
#
|
396
396
|
# For PSS, the salt length used is equal to the length of digest
|
@@ -398,25 +398,25 @@ module Google
|
|
398
398
|
# {::Google::Cloud::Kms::V1::CryptoKeyVersion::CryptoKeyVersionAlgorithm::RSA_SIGN_PSS_2048_SHA256 RSA_SIGN_PSS_2048_SHA256}
|
399
399
|
# will use PSS with a salt length of 256 bits or 32 bytes.
|
400
400
|
#
|
401
|
-
# Algorithms beginning with
|
401
|
+
# Algorithms beginning with `RSA_DECRYPT_` are usable with
|
402
402
|
# {::Google::Cloud::Kms::V1::CryptoKey#purpose CryptoKey.purpose}
|
403
403
|
# {::Google::Cloud::Kms::V1::CryptoKey::CryptoKeyPurpose::ASYMMETRIC_DECRYPT ASYMMETRIC_DECRYPT}.
|
404
404
|
#
|
405
|
-
# The fields in the name after
|
405
|
+
# The fields in the name after `RSA_DECRYPT_` correspond to the following
|
406
406
|
# parameters: padding algorithm, modulus bit length, and digest algorithm.
|
407
407
|
#
|
408
|
-
# Algorithms beginning with
|
408
|
+
# Algorithms beginning with `EC_SIGN_` are usable with
|
409
409
|
# {::Google::Cloud::Kms::V1::CryptoKey#purpose CryptoKey.purpose}
|
410
410
|
# {::Google::Cloud::Kms::V1::CryptoKey::CryptoKeyPurpose::ASYMMETRIC_SIGN ASYMMETRIC_SIGN}.
|
411
411
|
#
|
412
|
-
# The fields in the name after
|
412
|
+
# The fields in the name after `EC_SIGN_` correspond to the following
|
413
413
|
# parameters: elliptic curve, digest algorithm.
|
414
414
|
#
|
415
|
-
# Algorithms beginning with
|
415
|
+
# Algorithms beginning with `HMAC_` are usable with
|
416
416
|
# {::Google::Cloud::Kms::V1::CryptoKey#purpose CryptoKey.purpose}
|
417
417
|
# {::Google::Cloud::Kms::V1::CryptoKey::CryptoKeyPurpose::MAC MAC}.
|
418
418
|
#
|
419
|
-
# The suffix following
|
419
|
+
# The suffix following `HMAC_` corresponds to the hash algorithm being used
|
420
420
|
# (eg. SHA256).
|
421
421
|
#
|
422
422
|
# For more information, see [Key purposes and algorithms]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-kms-inventory-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.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: 2023-
|
11
|
+
date: 2023-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.20.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -241,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
241
241
|
- !ruby/object:Gem::Version
|
242
242
|
version: '0'
|
243
243
|
requirements: []
|
244
|
-
rubygems_version: 3.4.
|
244
|
+
rubygems_version: 3.4.19
|
245
245
|
signing_key:
|
246
246
|
specification_version: 4
|
247
247
|
summary: API Client library for the KMS Inventory V1 API
|