google-cloud-kms-inventory-v1 0.9.1 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/kms/inventory/v1/key_dashboard_service/client.rb +5 -1
- data/lib/google/cloud/kms/inventory/v1/key_dashboard_service/rest/client.rb +5 -1
- data/lib/google/cloud/kms/inventory/v1/key_tracking_service/client.rb +7 -2
- data/lib/google/cloud/kms/inventory/v1/key_tracking_service/rest/client.rb +7 -2
- data/lib/google/cloud/kms/inventory/v1/version.rb +1 -1
- data/proto_docs/google/cloud/kms/v1/resources.rb +97 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3f10ea25f955a7c4e8414d450b1a39ae3dc31b473f8d095bfcd172d6e41ef7b
|
4
|
+
data.tar.gz: 90a8bd25953d2087eed377709984588660245f779a28d2ae981bd6fe61499202
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33b9ad81032b914926aca977a46bfef9257f56fb0b660c5709bca42b3da6f33975db78ecd9a27a87eb870357b285e14df24ca245b75ace5c642cfc46c4386da1
|
7
|
+
data.tar.gz: 29b618bbfae239f1e4caceb9691c2cd3a90b847e66d0a26c8c5ba1abf54a2e0e1b4d6bc034ed40bd7b8361cbe9bd380555642725716b355b522cbac9eab02689
|
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# Provides a cross-region view of all Cloud KMS keys in a given Cloud project.
|
32
32
|
#
|
33
33
|
class Client
|
34
|
+
# @private
|
35
|
+
API_VERSION = ""
|
36
|
+
|
34
37
|
# @private
|
35
38
|
DEFAULT_ENDPOINT_TEMPLATE = "kmsinventory.$UNIVERSE_DOMAIN$"
|
36
39
|
|
@@ -232,10 +235,11 @@ module Google
|
|
232
235
|
# Customize the options with defaults
|
233
236
|
metadata = @config.rpcs.list_crypto_keys.metadata.to_h
|
234
237
|
|
235
|
-
# Set x-goog-api-client
|
238
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
236
239
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
237
240
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
238
241
|
gapic_version: ::Google::Cloud::Kms::Inventory::V1::VERSION
|
242
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
239
243
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
240
244
|
|
241
245
|
header_params = {}
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# Provides a cross-region view of all Cloud KMS keys in a given Cloud project.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
API_VERSION = ""
|
38
|
+
|
36
39
|
# @private
|
37
40
|
DEFAULT_ENDPOINT_TEMPLATE = "kmsinventory.$UNIVERSE_DOMAIN$"
|
38
41
|
|
@@ -224,12 +227,13 @@ module Google
|
|
224
227
|
# Customize the options with defaults
|
225
228
|
call_metadata = @config.rpcs.list_crypto_keys.metadata.to_h
|
226
229
|
|
227
|
-
# Set x-goog-api-client
|
230
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
228
231
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
229
232
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
230
233
|
gapic_version: ::Google::Cloud::Kms::Inventory::V1::VERSION,
|
231
234
|
transports_version_send: [:rest]
|
232
235
|
|
236
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
233
237
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
234
238
|
|
235
239
|
options.apply_defaults timeout: @config.rpcs.list_crypto_keys.timeout,
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# given Cloud KMS key via CMEK.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
API_VERSION = ""
|
37
|
+
|
35
38
|
# @private
|
36
39
|
DEFAULT_ENDPOINT_TEMPLATE = "kmsinventory.$UNIVERSE_DOMAIN$"
|
37
40
|
|
@@ -226,10 +229,11 @@ module Google
|
|
226
229
|
# Customize the options with defaults
|
227
230
|
metadata = @config.rpcs.get_protected_resources_summary.metadata.to_h
|
228
231
|
|
229
|
-
# Set x-goog-api-client
|
232
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
230
233
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
231
234
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
232
235
|
gapic_version: ::Google::Cloud::Kms::Inventory::V1::VERSION
|
236
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
233
237
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
234
238
|
|
235
239
|
header_params = {}
|
@@ -348,10 +352,11 @@ module Google
|
|
348
352
|
# Customize the options with defaults
|
349
353
|
metadata = @config.rpcs.search_protected_resources.metadata.to_h
|
350
354
|
|
351
|
-
# Set x-goog-api-client
|
355
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
352
356
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
353
357
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
354
358
|
gapic_version: ::Google::Cloud::Kms::Inventory::V1::VERSION
|
359
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
355
360
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
356
361
|
|
357
362
|
header_params = {}
|
@@ -34,6 +34,9 @@ module Google
|
|
34
34
|
# given Cloud KMS key via CMEK.
|
35
35
|
#
|
36
36
|
class Client
|
37
|
+
# @private
|
38
|
+
API_VERSION = ""
|
39
|
+
|
37
40
|
# @private
|
38
41
|
DEFAULT_ENDPOINT_TEMPLATE = "kmsinventory.$UNIVERSE_DOMAIN$"
|
39
42
|
|
@@ -218,12 +221,13 @@ module Google
|
|
218
221
|
# Customize the options with defaults
|
219
222
|
call_metadata = @config.rpcs.get_protected_resources_summary.metadata.to_h
|
220
223
|
|
221
|
-
# Set x-goog-api-client
|
224
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
222
225
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
223
226
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
224
227
|
gapic_version: ::Google::Cloud::Kms::Inventory::V1::VERSION,
|
225
228
|
transports_version_send: [:rest]
|
226
229
|
|
230
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
227
231
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
228
232
|
|
229
233
|
options.apply_defaults timeout: @config.rpcs.get_protected_resources_summary.timeout,
|
@@ -333,12 +337,13 @@ module Google
|
|
333
337
|
# Customize the options with defaults
|
334
338
|
call_metadata = @config.rpcs.search_protected_resources.metadata.to_h
|
335
339
|
|
336
|
-
# Set x-goog-api-client
|
340
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
337
341
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
338
342
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
339
343
|
gapic_version: ::Google::Cloud::Kms::Inventory::V1::VERSION,
|
340
344
|
transports_version_send: [:rest]
|
341
345
|
|
346
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
342
347
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
343
348
|
|
344
349
|
options.apply_defaults timeout: @config.rpcs.search_protected_resources.timeout,
|
@@ -137,6 +137,16 @@ module Google
|
|
137
137
|
# resource name in the format `projects/*/locations/*/ekmConnections/*`.
|
138
138
|
# Note, this list is non-exhaustive and may apply to additional
|
139
139
|
# {::Google::Cloud::Kms::V1::ProtectionLevel ProtectionLevels} in the future.
|
140
|
+
# @!attribute [rw] key_access_justifications_policy
|
141
|
+
# @return [::Google::Cloud::Kms::V1::KeyAccessJustificationsPolicy]
|
142
|
+
# Optional. The policy used for Key Access Justifications Policy Enforcement.
|
143
|
+
# If this field is present and this key is enrolled in Key Access
|
144
|
+
# Justifications Policy Enforcement, the policy will be evaluated in encrypt,
|
145
|
+
# decrypt, and sign operations, and the operation will fail if rejected by
|
146
|
+
# the policy. The policy is defined by specifying zero or more allowed
|
147
|
+
# justification codes.
|
148
|
+
# https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes
|
149
|
+
# By default, this field is absent, and all justification codes are allowed.
|
140
150
|
class CryptoKey
|
141
151
|
include ::Google::Protobuf::MessageExts
|
142
152
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -516,6 +526,9 @@ module Google
|
|
516
526
|
# https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms
|
517
527
|
EC_SIGN_SECP256K1_SHA256 = 31
|
518
528
|
|
529
|
+
# EdDSA on the Curve25519 in pure mode (taking data as input).
|
530
|
+
EC_SIGN_ED25519 = 40
|
531
|
+
|
519
532
|
# HMAC-SHA256 signing with a 256 bit key.
|
520
533
|
HMAC_SHA256 = 32
|
521
534
|
|
@@ -873,6 +886,23 @@ module Google
|
|
873
886
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
874
887
|
end
|
875
888
|
|
889
|
+
# A
|
890
|
+
# {::Google::Cloud::Kms::V1::KeyAccessJustificationsPolicy KeyAccessJustificationsPolicy}
|
891
|
+
# specifies zero or more allowed
|
892
|
+
# {::Google::Cloud::Kms::V1::AccessReason AccessReason} values for encrypt, decrypt,
|
893
|
+
# and sign operations on a {::Google::Cloud::Kms::V1::CryptoKey CryptoKey}.
|
894
|
+
# @!attribute [rw] allowed_access_reasons
|
895
|
+
# @return [::Array<::Google::Cloud::Kms::V1::AccessReason>]
|
896
|
+
# The list of allowed reasons for access to a
|
897
|
+
# {::Google::Cloud::Kms::V1::CryptoKey CryptoKey}. Zero allowed access reasons
|
898
|
+
# means all encrypt, decrypt, and sign operations for the
|
899
|
+
# {::Google::Cloud::Kms::V1::CryptoKey CryptoKey} associated with this policy will
|
900
|
+
# fail.
|
901
|
+
class KeyAccessJustificationsPolicy
|
902
|
+
include ::Google::Protobuf::MessageExts
|
903
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
904
|
+
end
|
905
|
+
|
876
906
|
# {::Google::Cloud::Kms::V1::ProtectionLevel ProtectionLevel} specifies how
|
877
907
|
# cryptographic operations are performed. For more information, see [Protection
|
878
908
|
# levels] (https://cloud.google.com/kms/docs/algorithms#protection_levels).
|
@@ -892,6 +922,73 @@ module Google
|
|
892
922
|
# Crypto operations are performed in an EKM-over-VPC backend.
|
893
923
|
EXTERNAL_VPC = 4
|
894
924
|
end
|
925
|
+
|
926
|
+
# Describes the reason for a data access. Please refer to
|
927
|
+
# https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes
|
928
|
+
# for the detailed semantic meaning of justification reason codes.
|
929
|
+
module AccessReason
|
930
|
+
# Unspecified access reason.
|
931
|
+
REASON_UNSPECIFIED = 0
|
932
|
+
|
933
|
+
# Customer-initiated support.
|
934
|
+
CUSTOMER_INITIATED_SUPPORT = 1
|
935
|
+
|
936
|
+
# Google-initiated access for system management and troubleshooting.
|
937
|
+
GOOGLE_INITIATED_SERVICE = 2
|
938
|
+
|
939
|
+
# Google-initiated access in response to a legal request or legal process.
|
940
|
+
THIRD_PARTY_DATA_REQUEST = 3
|
941
|
+
|
942
|
+
# Google-initiated access for security, fraud, abuse, or compliance purposes.
|
943
|
+
GOOGLE_INITIATED_REVIEW = 4
|
944
|
+
|
945
|
+
# Customer uses their account to perform any access to their own data which
|
946
|
+
# their IAM policy authorizes.
|
947
|
+
CUSTOMER_INITIATED_ACCESS = 5
|
948
|
+
|
949
|
+
# Google systems access customer data to help optimize the structure of the
|
950
|
+
# data or quality for future uses by the customer.
|
951
|
+
GOOGLE_INITIATED_SYSTEM_OPERATION = 6
|
952
|
+
|
953
|
+
# No reason is expected for this key request.
|
954
|
+
REASON_NOT_EXPECTED = 7
|
955
|
+
|
956
|
+
# Customer uses their account to perform any access to their own data which
|
957
|
+
# their IAM policy authorizes, and one of the following is true:
|
958
|
+
#
|
959
|
+
# * A Google administrator has reset the root-access account associated with
|
960
|
+
# the user's organization within the past 7 days.
|
961
|
+
# * A Google-initiated emergency access operation has interacted with a
|
962
|
+
# resource in the same project or folder as the currently accessed resource
|
963
|
+
# within the past 7 days.
|
964
|
+
MODIFIED_CUSTOMER_INITIATED_ACCESS = 8
|
965
|
+
|
966
|
+
# Google systems access customer data to help optimize the structure of the
|
967
|
+
# data or quality for future uses by the customer, and one of the following
|
968
|
+
# is true:
|
969
|
+
#
|
970
|
+
# * A Google administrator has reset the root-access account associated with
|
971
|
+
# the user's organization within the past 7 days.
|
972
|
+
# * A Google-initiated emergency access operation has interacted with a
|
973
|
+
# resource in the same project or folder as the currently accessed resource
|
974
|
+
# within the past 7 days.
|
975
|
+
MODIFIED_GOOGLE_INITIATED_SYSTEM_OPERATION = 9
|
976
|
+
|
977
|
+
# Google-initiated access to maintain system reliability.
|
978
|
+
GOOGLE_RESPONSE_TO_PRODUCTION_ALERT = 10
|
979
|
+
|
980
|
+
# One of the following operations is being executed while simultaneously
|
981
|
+
# encountering an internal technical issue which prevented a more precise
|
982
|
+
# justification code from being generated:
|
983
|
+
#
|
984
|
+
# * Your account has been used to perform any access to your own data which
|
985
|
+
# your IAM policy authorizes.
|
986
|
+
# * An automated Google system operates on encrypted customer data which your
|
987
|
+
# IAM policy authorizes.
|
988
|
+
# * Customer-initiated Google support access.
|
989
|
+
# * Google-initiated support access to protect system reliability.
|
990
|
+
CUSTOMER_AUTHORIZED_WORKFLOW_SERVICING = 11
|
991
|
+
end
|
895
992
|
end
|
896
993
|
end
|
897
994
|
end
|
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.11.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: 2024-
|
11
|
+
date: 2024-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|