google-apis-cloudkms_v1 0.8.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/lib/google/apis/cloudkms_v1/classes.rb +349 -30
- data/lib/google/apis/cloudkms_v1/gem_version.rb +3 -3
- data/lib/google/apis/cloudkms_v1/representations.rb +97 -0
- data/lib/google/apis/cloudkms_v1/service.rb +116 -9
- data/lib/google/apis/cloudkms_v1.rb +1 -1
- 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: 22e33d975c7d2ff654a7cf4f8086ed742ebd11ac2bfc2e407a3d13d0642c06a6
|
4
|
+
data.tar.gz: 2c66ff71bc9f2131c1ae7cf1e713c898e1647b491c7dc62212cf5bac6e876442
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da773c7442c88181ecfc374331909f685979a8166161fc51e5c420de02f8df201f56aabe69475ef8df1d3352e6eee33cd9800b46898ad49eb6eeefcdb38b4e03
|
7
|
+
data.tar.gz: d7d1e1f4dd0699ead1005a7651348f0f0e59ea2b631df7e8f5e8dde092448e53105b89dede38fe05451b30f4d5f9b4c8538d646b67367f20f7a8a02746a1ae8c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-cloudkms_v1
|
2
2
|
|
3
|
+
### v0.12.0 (2021-09-01)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210820
|
6
|
+
|
7
|
+
### v0.11.0 (2021-07-31)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210723
|
10
|
+
|
11
|
+
### v0.10.0 (2021-07-14)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210702
|
14
|
+
|
15
|
+
### v0.9.0 (2021-06-29)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210622
|
18
|
+
* Regenerated using generator version 0.4.0
|
19
|
+
|
3
20
|
### v0.8.0 (2021-06-24)
|
4
21
|
|
5
22
|
* Regenerated using generator version 0.3.0
|
@@ -44,7 +44,7 @@ module Google
|
|
44
44
|
# checksum. Note: This field is defined as int64 for reasons of compatibility
|
45
45
|
# across different languages. However, it is a non-negative integer, which will
|
46
46
|
# never exceed 2^32-1, and can be safely downconverted to uint32 in languages
|
47
|
-
# that support this type.
|
47
|
+
# that support this type.
|
48
48
|
# Corresponds to the JSON property `ciphertextCrc32c`
|
49
49
|
# @return [Fixnum]
|
50
50
|
attr_accessor :ciphertext_crc32c
|
@@ -79,8 +79,7 @@ module Google
|
|
79
79
|
# issue in your computation of the CRC32C checksum. Note: This field is defined
|
80
80
|
# as int64 for reasons of compatibility across different languages. However, it
|
81
81
|
# is a non-negative integer, which will never exceed 2^32-1, and can be safely
|
82
|
-
# downconverted to uint32 in languages that support this type.
|
83
|
-
# is in Beta.
|
82
|
+
# downconverted to uint32 in languages that support this type.
|
84
83
|
# Corresponds to the JSON property `plaintextCrc32c`
|
85
84
|
# @return [Fixnum]
|
86
85
|
attr_accessor :plaintext_crc32c
|
@@ -97,7 +96,7 @@ module Google
|
|
97
96
|
# ciphertext_crc32c was left unset or that it was not delivered to
|
98
97
|
# KeyManagementService. If you've set AsymmetricDecryptRequest.ciphertext_crc32c
|
99
98
|
# but this field is still false, discard the response and perform a limited
|
100
|
-
# number of retries.
|
99
|
+
# number of retries.
|
101
100
|
# Corresponds to the JSON property `verifiedCiphertextCrc32c`
|
102
101
|
# @return [Boolean]
|
103
102
|
attr_accessor :verified_ciphertext_crc32c
|
@@ -135,8 +134,7 @@ module Google
|
|
135
134
|
# computation of the CRC32C checksum. Note: This field is defined as int64 for
|
136
135
|
# reasons of compatibility across different languages. However, it is a non-
|
137
136
|
# negative integer, which will never exceed 2^32-1, and can be safely
|
138
|
-
# downconverted to uint32 in languages that support this type.
|
139
|
-
# is in Beta.
|
137
|
+
# downconverted to uint32 in languages that support this type.
|
140
138
|
# Corresponds to the JSON property `digestCrc32c`
|
141
139
|
# @return [Fixnum]
|
142
140
|
attr_accessor :digest_crc32c
|
@@ -157,8 +155,7 @@ module Google
|
|
157
155
|
include Google::Apis::Core::Hashable
|
158
156
|
|
159
157
|
# The resource name of the CryptoKeyVersion used for signing. Check this field
|
160
|
-
# to verify that the intended resource was used for signing.
|
161
|
-
# in Beta.
|
158
|
+
# to verify that the intended resource was used for signing.
|
162
159
|
# Corresponds to the JSON property `name`
|
163
160
|
# @return [String]
|
164
161
|
attr_accessor :name
|
@@ -183,8 +180,7 @@ module Google
|
|
183
180
|
# computation of the CRC32C checksum. Note: This field is defined as int64 for
|
184
181
|
# reasons of compatibility across different languages. However, it is a non-
|
185
182
|
# negative integer, which will never exceed 2^32-1, and can be safely
|
186
|
-
# downconverted to uint32 in languages that support this type.
|
187
|
-
# is in Beta.
|
183
|
+
# downconverted to uint32 in languages that support this type.
|
188
184
|
# Corresponds to the JSON property `signatureCrc32c`
|
189
185
|
# @return [Fixnum]
|
190
186
|
attr_accessor :signature_crc32c
|
@@ -195,7 +191,7 @@ module Google
|
|
195
191
|
# AsymmetricSignRequest.digest_crc32c was left unset or that it was not
|
196
192
|
# delivered to KeyManagementService. If you've set AsymmetricSignRequest.
|
197
193
|
# digest_crc32c but this field is still false, discard the response and perform
|
198
|
-
# a limited number of retries.
|
194
|
+
# a limited number of retries.
|
199
195
|
# Corresponds to the JSON property `verifiedDigestCrc32c`
|
200
196
|
# @return [Boolean]
|
201
197
|
attr_accessor :verified_digest_crc32c
|
@@ -401,6 +397,19 @@ module Google
|
|
401
397
|
# @return [String]
|
402
398
|
attr_accessor :create_time
|
403
399
|
|
400
|
+
# Immutable. The period of time that versions of this key spend in the
|
401
|
+
# DESTROY_SCHEDULED state before transitioning to DESTROYED. If not specified at
|
402
|
+
# creation time, the default duration is 24 hours.
|
403
|
+
# Corresponds to the JSON property `destroyScheduledDuration`
|
404
|
+
# @return [String]
|
405
|
+
attr_accessor :destroy_scheduled_duration
|
406
|
+
|
407
|
+
# Immutable. Whether this key may contain imported versions only.
|
408
|
+
# Corresponds to the JSON property `importOnly`
|
409
|
+
# @return [Boolean]
|
410
|
+
attr_accessor :import_only
|
411
|
+
alias_method :import_only?, :import_only
|
412
|
+
|
404
413
|
# Labels with user-defined metadata. For more information, see [Labeling Keys](
|
405
414
|
# https://cloud.google.com/kms/docs/labeling-keys).
|
406
415
|
# Corresponds to the JSON property `labels`
|
@@ -461,6 +470,8 @@ module Google
|
|
461
470
|
# Update properties of this object
|
462
471
|
def update!(**args)
|
463
472
|
@create_time = args[:create_time] if args.key?(:create_time)
|
473
|
+
@destroy_scheduled_duration = args[:destroy_scheduled_duration] if args.key?(:destroy_scheduled_duration)
|
474
|
+
@import_only = args[:import_only] if args.key?(:import_only)
|
464
475
|
@labels = args[:labels] if args.key?(:labels)
|
465
476
|
@name = args[:name] if args.key?(:name)
|
466
477
|
@next_rotation_time = args[:next_rotation_time] if args.key?(:next_rotation_time)
|
@@ -521,20 +532,20 @@ module Google
|
|
521
532
|
# @return [String]
|
522
533
|
attr_accessor :generate_time
|
523
534
|
|
524
|
-
# Output only. The root cause of
|
525
|
-
# IMPORT_FAILED.
|
535
|
+
# Output only. The root cause of the most recent import failure. Only present if
|
536
|
+
# state is IMPORT_FAILED.
|
526
537
|
# Corresponds to the JSON property `importFailureReason`
|
527
538
|
# @return [String]
|
528
539
|
attr_accessor :import_failure_reason
|
529
540
|
|
530
|
-
# Output only. The name of the ImportJob used
|
531
|
-
# Only present if the underlying key material was imported.
|
541
|
+
# Output only. The name of the ImportJob used in the most recent import of this
|
542
|
+
# CryptoKeyVersion. Only present if the underlying key material was imported.
|
532
543
|
# Corresponds to the JSON property `importJob`
|
533
544
|
# @return [String]
|
534
545
|
attr_accessor :import_job
|
535
546
|
|
536
|
-
# Output only. The time at which this CryptoKeyVersion's key material was
|
537
|
-
# imported.
|
547
|
+
# Output only. The time at which this CryptoKeyVersion's key material was most
|
548
|
+
# recently imported.
|
538
549
|
# Corresponds to the JSON property `importTime`
|
539
550
|
# @return [String]
|
540
551
|
attr_accessor :import_time
|
@@ -551,6 +562,14 @@ module Google
|
|
551
562
|
# @return [String]
|
552
563
|
attr_accessor :protection_level
|
553
564
|
|
565
|
+
# Output only. Whether or not this key version is eligible for reimport, by
|
566
|
+
# being specified as a target in ImportCryptoKeyVersionRequest.
|
567
|
+
# crypto_key_version.
|
568
|
+
# Corresponds to the JSON property `reimportEligible`
|
569
|
+
# @return [Boolean]
|
570
|
+
attr_accessor :reimport_eligible
|
571
|
+
alias_method :reimport_eligible?, :reimport_eligible
|
572
|
+
|
554
573
|
# The current state of the CryptoKeyVersion.
|
555
574
|
# Corresponds to the JSON property `state`
|
556
575
|
# @return [String]
|
@@ -574,6 +593,7 @@ module Google
|
|
574
593
|
@import_time = args[:import_time] if args.key?(:import_time)
|
575
594
|
@name = args[:name] if args.key?(:name)
|
576
595
|
@protection_level = args[:protection_level] if args.key?(:protection_level)
|
596
|
+
@reimport_eligible = args[:reimport_eligible] if args.key?(:reimport_eligible)
|
577
597
|
@state = args[:state] if args.key?(:state)
|
578
598
|
end
|
579
599
|
end
|
@@ -630,8 +650,7 @@ module Google
|
|
630
650
|
# computation of the CRC32C checksum. Note: This field is defined as int64 for
|
631
651
|
# reasons of compatibility across different languages. However, it is a non-
|
632
652
|
# negative integer, which will never exceed 2^32-1, and can be safely
|
633
|
-
# downconverted to uint32 in languages that support this type.
|
634
|
-
# is in Beta.
|
653
|
+
# downconverted to uint32 in languages that support this type.
|
635
654
|
# Corresponds to the JSON property `additionalAuthenticatedDataCrc32c`
|
636
655
|
# @return [Fixnum]
|
637
656
|
attr_accessor :additional_authenticated_data_crc32c
|
@@ -652,7 +671,7 @@ module Google
|
|
652
671
|
# the CRC32C checksum. Note: This field is defined as int64 for reasons of
|
653
672
|
# compatibility across different languages. However, it is a non-negative
|
654
673
|
# integer, which will never exceed 2^32-1, and can be safely downconverted to
|
655
|
-
# uint32 in languages that support this type.
|
674
|
+
# uint32 in languages that support this type.
|
656
675
|
# Corresponds to the JSON property `ciphertextCrc32c`
|
657
676
|
# @return [Fixnum]
|
658
677
|
attr_accessor :ciphertext_crc32c
|
@@ -691,7 +710,7 @@ module Google
|
|
691
710
|
# This field is defined as int64 for reasons of compatibility across different
|
692
711
|
# languages. However, it is a non-negative integer, which will never exceed 2^32-
|
693
712
|
# 1, and can be safely downconverted to uint32 in languages that support this
|
694
|
-
# type.
|
713
|
+
# type.
|
695
714
|
# Corresponds to the JSON property `plaintextCrc32c`
|
696
715
|
# @return [Fixnum]
|
697
716
|
attr_accessor :plaintext_crc32c
|
@@ -792,8 +811,7 @@ module Google
|
|
792
811
|
# computation of the CRC32C checksum. Note: This field is defined as int64 for
|
793
812
|
# reasons of compatibility across different languages. However, it is a non-
|
794
813
|
# negative integer, which will never exceed 2^32-1, and can be safely
|
795
|
-
# downconverted to uint32 in languages that support this type.
|
796
|
-
# is in Beta.
|
814
|
+
# downconverted to uint32 in languages that support this type.
|
797
815
|
# Corresponds to the JSON property `additionalAuthenticatedDataCrc32c`
|
798
816
|
# @return [Fixnum]
|
799
817
|
attr_accessor :additional_authenticated_data_crc32c
|
@@ -818,7 +836,7 @@ module Google
|
|
818
836
|
# the CRC32C checksum. Note: This field is defined as int64 for reasons of
|
819
837
|
# compatibility across different languages. However, it is a non-negative
|
820
838
|
# integer, which will never exceed 2^32-1, and can be safely downconverted to
|
821
|
-
# uint32 in languages that support this type.
|
839
|
+
# uint32 in languages that support this type.
|
822
840
|
# Corresponds to the JSON property `plaintextCrc32c`
|
823
841
|
# @return [Fixnum]
|
824
842
|
attr_accessor :plaintext_crc32c
|
@@ -855,7 +873,7 @@ module Google
|
|
855
873
|
# checksum. Note: This field is defined as int64 for reasons of compatibility
|
856
874
|
# across different languages. However, it is a non-negative integer, which will
|
857
875
|
# never exceed 2^32-1, and can be safely downconverted to uint32 in languages
|
858
|
-
# that support this type.
|
876
|
+
# that support this type.
|
859
877
|
# Corresponds to the JSON property `ciphertextCrc32c`
|
860
878
|
# @return [Fixnum]
|
861
879
|
attr_accessor :ciphertext_crc32c
|
@@ -877,8 +895,7 @@ module Google
|
|
877
895
|
# indicates either that EncryptRequest.additional_authenticated_data_crc32c was
|
878
896
|
# left unset or that it was not delivered to KeyManagementService. If you've set
|
879
897
|
# EncryptRequest.additional_authenticated_data_crc32c but this field is still
|
880
|
-
# false, discard the response and perform a limited number of retries.
|
881
|
-
# This field is in Beta.
|
898
|
+
# false, discard the response and perform a limited number of retries.
|
882
899
|
# Corresponds to the JSON property `verifiedAdditionalAuthenticatedDataCrc32c`
|
883
900
|
# @return [Boolean]
|
884
901
|
attr_accessor :verified_additional_authenticated_data_crc32c
|
@@ -890,7 +907,7 @@ module Google
|
|
890
907
|
# either that EncryptRequest.plaintext_crc32c was left unset or that it was not
|
891
908
|
# delivered to KeyManagementService. If you've set EncryptRequest.
|
892
909
|
# plaintext_crc32c but this field is still false, discard the response and
|
893
|
-
# perform a limited number of retries.
|
910
|
+
# perform a limited number of retries.
|
894
911
|
# Corresponds to the JSON property `verifiedPlaintextCrc32c`
|
895
912
|
# @return [Boolean]
|
896
913
|
attr_accessor :verified_plaintext_crc32c
|
@@ -986,6 +1003,68 @@ module Google
|
|
986
1003
|
end
|
987
1004
|
end
|
988
1005
|
|
1006
|
+
# Request message for KeyManagementService.GenerateRandomBytes.
|
1007
|
+
class GenerateRandomBytesRequest
|
1008
|
+
include Google::Apis::Core::Hashable
|
1009
|
+
|
1010
|
+
# The length in bytes of the amount of randomness to retrieve. Minimum 8 bytes,
|
1011
|
+
# maximum 1024 bytes.
|
1012
|
+
# Corresponds to the JSON property `lengthBytes`
|
1013
|
+
# @return [Fixnum]
|
1014
|
+
attr_accessor :length_bytes
|
1015
|
+
|
1016
|
+
# The ProtectionLevel to use when generating the random data. Defaults to
|
1017
|
+
# SOFTWARE.
|
1018
|
+
# Corresponds to the JSON property `protectionLevel`
|
1019
|
+
# @return [String]
|
1020
|
+
attr_accessor :protection_level
|
1021
|
+
|
1022
|
+
def initialize(**args)
|
1023
|
+
update!(**args)
|
1024
|
+
end
|
1025
|
+
|
1026
|
+
# Update properties of this object
|
1027
|
+
def update!(**args)
|
1028
|
+
@length_bytes = args[:length_bytes] if args.key?(:length_bytes)
|
1029
|
+
@protection_level = args[:protection_level] if args.key?(:protection_level)
|
1030
|
+
end
|
1031
|
+
end
|
1032
|
+
|
1033
|
+
# Response message for KeyManagementService.GenerateRandomBytes.
|
1034
|
+
class GenerateRandomBytesResponse
|
1035
|
+
include Google::Apis::Core::Hashable
|
1036
|
+
|
1037
|
+
# The generated data.
|
1038
|
+
# Corresponds to the JSON property `data`
|
1039
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1040
|
+
# @return [String]
|
1041
|
+
attr_accessor :data
|
1042
|
+
|
1043
|
+
# Integrity verification field. A CRC32C checksum of the returned
|
1044
|
+
# GenerateRandomBytesResponse.data. An integrity check of
|
1045
|
+
# GenerateRandomBytesResponse.data can be performed by computing the CRC32C
|
1046
|
+
# checksum of GenerateRandomBytesResponse.data and comparing your results to
|
1047
|
+
# this field. Discard the response in case of non-matching checksum values, and
|
1048
|
+
# perform a limited number of retries. A persistent mismatch may indicate an
|
1049
|
+
# issue in your computation of the CRC32C checksum. Note: This field is defined
|
1050
|
+
# as int64 for reasons of compatibility across different languages. However, it
|
1051
|
+
# is a non-negative integer, which will never exceed 2^32-1, and can be safely
|
1052
|
+
# downconverted to uint32 in languages that support this type.
|
1053
|
+
# Corresponds to the JSON property `dataCrc32c`
|
1054
|
+
# @return [Fixnum]
|
1055
|
+
attr_accessor :data_crc32c
|
1056
|
+
|
1057
|
+
def initialize(**args)
|
1058
|
+
update!(**args)
|
1059
|
+
end
|
1060
|
+
|
1061
|
+
# Update properties of this object
|
1062
|
+
def update!(**args)
|
1063
|
+
@data = args[:data] if args.key?(:data)
|
1064
|
+
@data_crc32c = args[:data_crc32c] if args.key?(:data_crc32c)
|
1065
|
+
end
|
1066
|
+
end
|
1067
|
+
|
989
1068
|
# Request message for KeyManagementService.ImportCryptoKeyVersion.
|
990
1069
|
class ImportCryptoKeyVersionRequest
|
991
1070
|
include Google::Apis::Core::Hashable
|
@@ -996,6 +1075,19 @@ module Google
|
|
996
1075
|
# @return [String]
|
997
1076
|
attr_accessor :algorithm
|
998
1077
|
|
1078
|
+
# Optional. The optional name of an existing CryptoKeyVersion to target for an
|
1079
|
+
# import operation. If this field is not present, a new CryptoKeyVersion
|
1080
|
+
# containing the supplied key material is created. If this field is present, the
|
1081
|
+
# supplied key material is imported into the existing CryptoKeyVersion. To
|
1082
|
+
# import into an existing CryptoKeyVersion, the CryptoKeyVersion must be a child
|
1083
|
+
# of ImportCryptoKeyVersionRequest.parent, have been previously created via
|
1084
|
+
# ImportCryptoKeyVersion, and be in DESTROYED or IMPORT_FAILED state. The key
|
1085
|
+
# material and algorithm must match the previous CryptoKeyVersion exactly if the
|
1086
|
+
# CryptoKeyVersion has ever contained key material.
|
1087
|
+
# Corresponds to the JSON property `cryptoKeyVersion`
|
1088
|
+
# @return [String]
|
1089
|
+
attr_accessor :crypto_key_version
|
1090
|
+
|
999
1091
|
# Required. The name of the ImportJob that was used to wrap this key material.
|
1000
1092
|
# Corresponds to the JSON property `importJob`
|
1001
1093
|
# @return [String]
|
@@ -1023,6 +1115,7 @@ module Google
|
|
1023
1115
|
# Update properties of this object
|
1024
1116
|
def update!(**args)
|
1025
1117
|
@algorithm = args[:algorithm] if args.key?(:algorithm)
|
1118
|
+
@crypto_key_version = args[:crypto_key_version] if args.key?(:crypto_key_version)
|
1026
1119
|
@import_job = args[:import_job] if args.key?(:import_job)
|
1027
1120
|
@rsa_aes_wrapped_key = args[:rsa_aes_wrapped_key] if args.key?(:rsa_aes_wrapped_key)
|
1028
1121
|
end
|
@@ -1416,6 +1509,232 @@ module Google
|
|
1416
1509
|
end
|
1417
1510
|
end
|
1418
1511
|
|
1512
|
+
# Request message for KeyManagementService.MacSign.
|
1513
|
+
class MacSignRequest
|
1514
|
+
include Google::Apis::Core::Hashable
|
1515
|
+
|
1516
|
+
# Required. The data to sign. The MAC tag is computed over this data field based
|
1517
|
+
# on the specific algorithm.
|
1518
|
+
# Corresponds to the JSON property `data`
|
1519
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1520
|
+
# @return [String]
|
1521
|
+
attr_accessor :data
|
1522
|
+
|
1523
|
+
# Optional. An optional CRC32C checksum of the MacSignRequest.data. If specified,
|
1524
|
+
# KeyManagementService will verify the integrity of the received MacSignRequest.
|
1525
|
+
# data using this checksum. KeyManagementService will report an error if the
|
1526
|
+
# checksum verification fails. If you receive a checksum error, your client
|
1527
|
+
# should verify that CRC32C(MacSignRequest.data) is equal to MacSignRequest.
|
1528
|
+
# data_crc32c, and if so, perform a limited number of retries. A persistent
|
1529
|
+
# mismatch may indicate an issue in your computation of the CRC32C checksum.
|
1530
|
+
# Note: This field is defined as int64 for reasons of compatibility across
|
1531
|
+
# different languages. However, it is a non-negative integer, which will never
|
1532
|
+
# exceed 2^32-1, and can be safely downconverted to uint32 in languages that
|
1533
|
+
# support this type.
|
1534
|
+
# Corresponds to the JSON property `dataCrc32c`
|
1535
|
+
# @return [Fixnum]
|
1536
|
+
attr_accessor :data_crc32c
|
1537
|
+
|
1538
|
+
def initialize(**args)
|
1539
|
+
update!(**args)
|
1540
|
+
end
|
1541
|
+
|
1542
|
+
# Update properties of this object
|
1543
|
+
def update!(**args)
|
1544
|
+
@data = args[:data] if args.key?(:data)
|
1545
|
+
@data_crc32c = args[:data_crc32c] if args.key?(:data_crc32c)
|
1546
|
+
end
|
1547
|
+
end
|
1548
|
+
|
1549
|
+
# Response message for KeyManagementService.MacSign.
|
1550
|
+
class MacSignResponse
|
1551
|
+
include Google::Apis::Core::Hashable
|
1552
|
+
|
1553
|
+
# The created signature.
|
1554
|
+
# Corresponds to the JSON property `mac`
|
1555
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1556
|
+
# @return [String]
|
1557
|
+
attr_accessor :mac
|
1558
|
+
|
1559
|
+
# Integrity verification field. A CRC32C checksum of the returned
|
1560
|
+
# MacSignResponse.mac. An integrity check of MacSignResponse.mac can be
|
1561
|
+
# performed by computing the CRC32C checksum of MacSignResponse.mac and
|
1562
|
+
# comparing your results to this field. Discard the response in case of non-
|
1563
|
+
# matching checksum values, and perform a limited number of retries. A
|
1564
|
+
# persistent mismatch may indicate an issue in your computation of the CRC32C
|
1565
|
+
# checksum. Note: This field is defined as int64 for reasons of compatibility
|
1566
|
+
# across different languages. However, it is a non-negative integer, which will
|
1567
|
+
# never exceed 2^32-1, and can be safely downconverted to uint32 in languages
|
1568
|
+
# that support this type.
|
1569
|
+
# Corresponds to the JSON property `macCrc32c`
|
1570
|
+
# @return [Fixnum]
|
1571
|
+
attr_accessor :mac_crc32c
|
1572
|
+
|
1573
|
+
# The resource name of the CryptoKeyVersion used for signing. Check this field
|
1574
|
+
# to verify that the intended resource was used for signing.
|
1575
|
+
# Corresponds to the JSON property `name`
|
1576
|
+
# @return [String]
|
1577
|
+
attr_accessor :name
|
1578
|
+
|
1579
|
+
# The ProtectionLevel of the CryptoKeyVersion used for signing.
|
1580
|
+
# Corresponds to the JSON property `protectionLevel`
|
1581
|
+
# @return [String]
|
1582
|
+
attr_accessor :protection_level
|
1583
|
+
|
1584
|
+
# Integrity verification field. A flag indicating whether MacSignRequest.
|
1585
|
+
# data_crc32c was received by KeyManagementService and used for the integrity
|
1586
|
+
# verification of the data. A false value of this field indicates either that
|
1587
|
+
# MacSignRequest.data_crc32c was left unset or that it was not delivered to
|
1588
|
+
# KeyManagementService. If you've set MacSignRequest.data_crc32c but this field
|
1589
|
+
# is still false, discard the response and perform a limited number of retries.
|
1590
|
+
# Corresponds to the JSON property `verifiedDataCrc32c`
|
1591
|
+
# @return [Boolean]
|
1592
|
+
attr_accessor :verified_data_crc32c
|
1593
|
+
alias_method :verified_data_crc32c?, :verified_data_crc32c
|
1594
|
+
|
1595
|
+
def initialize(**args)
|
1596
|
+
update!(**args)
|
1597
|
+
end
|
1598
|
+
|
1599
|
+
# Update properties of this object
|
1600
|
+
def update!(**args)
|
1601
|
+
@mac = args[:mac] if args.key?(:mac)
|
1602
|
+
@mac_crc32c = args[:mac_crc32c] if args.key?(:mac_crc32c)
|
1603
|
+
@name = args[:name] if args.key?(:name)
|
1604
|
+
@protection_level = args[:protection_level] if args.key?(:protection_level)
|
1605
|
+
@verified_data_crc32c = args[:verified_data_crc32c] if args.key?(:verified_data_crc32c)
|
1606
|
+
end
|
1607
|
+
end
|
1608
|
+
|
1609
|
+
# Request message for KeyManagementService.MacVerify.
|
1610
|
+
class MacVerifyRequest
|
1611
|
+
include Google::Apis::Core::Hashable
|
1612
|
+
|
1613
|
+
# Required. The data used previously as a MacSignRequest.data to generate the
|
1614
|
+
# MAC tag.
|
1615
|
+
# Corresponds to the JSON property `data`
|
1616
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1617
|
+
# @return [String]
|
1618
|
+
attr_accessor :data
|
1619
|
+
|
1620
|
+
# Optional. An optional CRC32C checksum of the MacVerifyRequest.data. If
|
1621
|
+
# specified, KeyManagementService will verify the integrity of the received
|
1622
|
+
# MacVerifyRequest.data using this checksum. KeyManagementService will report an
|
1623
|
+
# error if the checksum verification fails. If you receive a checksum error,
|
1624
|
+
# your client should verify that CRC32C(MacVerifyRequest.data) is equal to
|
1625
|
+
# MacVerifyRequest.data_crc32c, and if so, perform a limited number of retries.
|
1626
|
+
# A persistent mismatch may indicate an issue in your computation of the CRC32C
|
1627
|
+
# checksum. Note: This field is defined as int64 for reasons of compatibility
|
1628
|
+
# across different languages. However, it is a non-negative integer, which will
|
1629
|
+
# never exceed 2^32-1, and can be safely downconverted to uint32 in languages
|
1630
|
+
# that support this type.
|
1631
|
+
# Corresponds to the JSON property `dataCrc32c`
|
1632
|
+
# @return [Fixnum]
|
1633
|
+
attr_accessor :data_crc32c
|
1634
|
+
|
1635
|
+
# Required. The signature to verify.
|
1636
|
+
# Corresponds to the JSON property `mac`
|
1637
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1638
|
+
# @return [String]
|
1639
|
+
attr_accessor :mac
|
1640
|
+
|
1641
|
+
# Optional. An optional CRC32C checksum of the MacVerifyRequest.mac. If
|
1642
|
+
# specified, KeyManagementService will verify the integrity of the received
|
1643
|
+
# MacVerifyRequest.mac using this checksum. KeyManagementService will report an
|
1644
|
+
# error if the checksum verification fails. If you receive a checksum error,
|
1645
|
+
# your client should verify that CRC32C(MacVerifyRequest.tag) is equal to
|
1646
|
+
# MacVerifyRequest.mac_crc32c, and if so, perform a limited number of retries. A
|
1647
|
+
# persistent mismatch may indicate an issue in your computation of the CRC32C
|
1648
|
+
# checksum. Note: This field is defined as int64 for reasons of compatibility
|
1649
|
+
# across different languages. However, it is a non-negative integer, which will
|
1650
|
+
# never exceed 2^32-1, and can be safely downconverted to uint32 in languages
|
1651
|
+
# that support this type.
|
1652
|
+
# Corresponds to the JSON property `macCrc32c`
|
1653
|
+
# @return [Fixnum]
|
1654
|
+
attr_accessor :mac_crc32c
|
1655
|
+
|
1656
|
+
def initialize(**args)
|
1657
|
+
update!(**args)
|
1658
|
+
end
|
1659
|
+
|
1660
|
+
# Update properties of this object
|
1661
|
+
def update!(**args)
|
1662
|
+
@data = args[:data] if args.key?(:data)
|
1663
|
+
@data_crc32c = args[:data_crc32c] if args.key?(:data_crc32c)
|
1664
|
+
@mac = args[:mac] if args.key?(:mac)
|
1665
|
+
@mac_crc32c = args[:mac_crc32c] if args.key?(:mac_crc32c)
|
1666
|
+
end
|
1667
|
+
end
|
1668
|
+
|
1669
|
+
# Response message for KeyManagementService.MacVerify.
|
1670
|
+
class MacVerifyResponse
|
1671
|
+
include Google::Apis::Core::Hashable
|
1672
|
+
|
1673
|
+
# The resource name of the CryptoKeyVersion used for verification. Check this
|
1674
|
+
# field to verify that the intended resource was used for verification.
|
1675
|
+
# Corresponds to the JSON property `name`
|
1676
|
+
# @return [String]
|
1677
|
+
attr_accessor :name
|
1678
|
+
|
1679
|
+
# The ProtectionLevel of the CryptoKeyVersion used for verification.
|
1680
|
+
# Corresponds to the JSON property `protectionLevel`
|
1681
|
+
# @return [String]
|
1682
|
+
attr_accessor :protection_level
|
1683
|
+
|
1684
|
+
# This field indicates whether or not the verification operation for
|
1685
|
+
# MacVerifyRequest.mac over MacVerifyRequest.data was successful.
|
1686
|
+
# Corresponds to the JSON property `success`
|
1687
|
+
# @return [Boolean]
|
1688
|
+
attr_accessor :success
|
1689
|
+
alias_method :success?, :success
|
1690
|
+
|
1691
|
+
# Integrity verification field. A flag indicating whether MacVerifyRequest.
|
1692
|
+
# data_crc32c was received by KeyManagementService and used for the integrity
|
1693
|
+
# verification of the data. A false value of this field indicates either that
|
1694
|
+
# MacVerifyRequest.data_crc32c was left unset or that it was not delivered to
|
1695
|
+
# KeyManagementService. If you've set MacVerifyRequest.data_crc32c but this
|
1696
|
+
# field is still false, discard the response and perform a limited number of
|
1697
|
+
# retries.
|
1698
|
+
# Corresponds to the JSON property `verifiedDataCrc32c`
|
1699
|
+
# @return [Boolean]
|
1700
|
+
attr_accessor :verified_data_crc32c
|
1701
|
+
alias_method :verified_data_crc32c?, :verified_data_crc32c
|
1702
|
+
|
1703
|
+
# Integrity verification field. A flag indicating whether MacVerifyRequest.
|
1704
|
+
# mac_crc32c was received by KeyManagementService and used for the integrity
|
1705
|
+
# verification of the data. A false value of this field indicates either that
|
1706
|
+
# MacVerifyRequest.mac_crc32c was left unset or that it was not delivered to
|
1707
|
+
# KeyManagementService. If you've set MacVerifyRequest.mac_crc32c but this field
|
1708
|
+
# is still false, discard the response and perform a limited number of retries.
|
1709
|
+
# Corresponds to the JSON property `verifiedMacCrc32c`
|
1710
|
+
# @return [Boolean]
|
1711
|
+
attr_accessor :verified_mac_crc32c
|
1712
|
+
alias_method :verified_mac_crc32c?, :verified_mac_crc32c
|
1713
|
+
|
1714
|
+
# Integrity verification field. This value is used for the integrity
|
1715
|
+
# verification of [MacVerifyResponse.success]. If the value of this field
|
1716
|
+
# contradicts the value of [MacVerifyResponse.success], discard the response and
|
1717
|
+
# perform a limited number of retries.
|
1718
|
+
# Corresponds to the JSON property `verifiedSuccessIntegrity`
|
1719
|
+
# @return [Boolean]
|
1720
|
+
attr_accessor :verified_success_integrity
|
1721
|
+
alias_method :verified_success_integrity?, :verified_success_integrity
|
1722
|
+
|
1723
|
+
def initialize(**args)
|
1724
|
+
update!(**args)
|
1725
|
+
end
|
1726
|
+
|
1727
|
+
# Update properties of this object
|
1728
|
+
def update!(**args)
|
1729
|
+
@name = args[:name] if args.key?(:name)
|
1730
|
+
@protection_level = args[:protection_level] if args.key?(:protection_level)
|
1731
|
+
@success = args[:success] if args.key?(:success)
|
1732
|
+
@verified_data_crc32c = args[:verified_data_crc32c] if args.key?(:verified_data_crc32c)
|
1733
|
+
@verified_mac_crc32c = args[:verified_mac_crc32c] if args.key?(:verified_mac_crc32c)
|
1734
|
+
@verified_success_integrity = args[:verified_success_integrity] if args.key?(:verified_success_integrity)
|
1735
|
+
end
|
1736
|
+
end
|
1737
|
+
|
1419
1738
|
# An Identity and Access Management (IAM) policy, which specifies access
|
1420
1739
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
1421
1740
|
# A `binding` binds one or more `members` to a single `role`. Members can be
|
@@ -1440,7 +1759,7 @@ module Google
|
|
1440
1759
|
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
1441
1760
|
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
1442
1761
|
# description: Does not grant access after Sep 2020 expression: request.time <
|
1443
|
-
# timestamp('2020-10-01T00:00:00.000Z')
|
1762
|
+
# timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
|
1444
1763
|
# description of IAM and its features, see the [IAM documentation](https://cloud.
|
1445
1764
|
# google.com/iam/docs/).
|
1446
1765
|
class Policy
|
@@ -1603,7 +1922,7 @@ module Google
|
|
1603
1922
|
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
1604
1923
|
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
1605
1924
|
# description: Does not grant access after Sep 2020 expression: request.time <
|
1606
|
-
# timestamp('2020-10-01T00:00:00.000Z')
|
1925
|
+
# timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
|
1607
1926
|
# description of IAM and its features, see the [IAM documentation](https://cloud.
|
1608
1927
|
# google.com/iam/docs/).
|
1609
1928
|
# Corresponds to the JSON property `policy`
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module CloudkmsV1
|
18
18
|
# Version of the google-apis-cloudkms_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.12.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210820"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -136,6 +136,18 @@ module Google
|
|
136
136
|
include Google::Apis::Core::JsonObjectSupport
|
137
137
|
end
|
138
138
|
|
139
|
+
class GenerateRandomBytesRequest
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
145
|
+
class GenerateRandomBytesResponse
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
139
151
|
class ImportCryptoKeyVersionRequest
|
140
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
153
|
|
@@ -202,6 +214,30 @@ module Google
|
|
202
214
|
include Google::Apis::Core::JsonObjectSupport
|
203
215
|
end
|
204
216
|
|
217
|
+
class MacSignRequest
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
|
+
|
220
|
+
include Google::Apis::Core::JsonObjectSupport
|
221
|
+
end
|
222
|
+
|
223
|
+
class MacSignResponse
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
+
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
227
|
+
end
|
228
|
+
|
229
|
+
class MacVerifyRequest
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
|
+
|
232
|
+
include Google::Apis::Core::JsonObjectSupport
|
233
|
+
end
|
234
|
+
|
235
|
+
class MacVerifyResponse
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
237
|
+
|
238
|
+
include Google::Apis::Core::JsonObjectSupport
|
239
|
+
end
|
240
|
+
|
205
241
|
class Policy
|
206
242
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
243
|
|
@@ -328,6 +364,8 @@ module Google
|
|
328
364
|
# @private
|
329
365
|
class Representation < Google::Apis::Core::JsonRepresentation
|
330
366
|
property :create_time, as: 'createTime'
|
367
|
+
property :destroy_scheduled_duration, as: 'destroyScheduledDuration'
|
368
|
+
property :import_only, as: 'importOnly'
|
331
369
|
hash :labels, as: 'labels'
|
332
370
|
property :name, as: 'name'
|
333
371
|
property :next_rotation_time, as: 'nextRotationTime'
|
@@ -357,6 +395,7 @@ module Google
|
|
357
395
|
property :import_time, as: 'importTime'
|
358
396
|
property :name, as: 'name'
|
359
397
|
property :protection_level, as: 'protectionLevel'
|
398
|
+
property :reimport_eligible, as: 'reimportEligible'
|
360
399
|
property :state, as: 'state'
|
361
400
|
end
|
362
401
|
end
|
@@ -443,10 +482,27 @@ module Google
|
|
443
482
|
end
|
444
483
|
end
|
445
484
|
|
485
|
+
class GenerateRandomBytesRequest
|
486
|
+
# @private
|
487
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
488
|
+
property :length_bytes, as: 'lengthBytes'
|
489
|
+
property :protection_level, as: 'protectionLevel'
|
490
|
+
end
|
491
|
+
end
|
492
|
+
|
493
|
+
class GenerateRandomBytesResponse
|
494
|
+
# @private
|
495
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
496
|
+
property :data, :base64 => true, as: 'data'
|
497
|
+
property :data_crc32c, :numeric_string => true, as: 'dataCrc32c'
|
498
|
+
end
|
499
|
+
end
|
500
|
+
|
446
501
|
class ImportCryptoKeyVersionRequest
|
447
502
|
# @private
|
448
503
|
class Representation < Google::Apis::Core::JsonRepresentation
|
449
504
|
property :algorithm, as: 'algorithm'
|
505
|
+
property :crypto_key_version, as: 'cryptoKeyVersion'
|
450
506
|
property :import_job, as: 'importJob'
|
451
507
|
property :rsa_aes_wrapped_key, :base64 => true, as: 'rsaAesWrappedKey'
|
452
508
|
end
|
@@ -556,6 +612,47 @@ module Google
|
|
556
612
|
end
|
557
613
|
end
|
558
614
|
|
615
|
+
class MacSignRequest
|
616
|
+
# @private
|
617
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
618
|
+
property :data, :base64 => true, as: 'data'
|
619
|
+
property :data_crc32c, :numeric_string => true, as: 'dataCrc32c'
|
620
|
+
end
|
621
|
+
end
|
622
|
+
|
623
|
+
class MacSignResponse
|
624
|
+
# @private
|
625
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
626
|
+
property :mac, :base64 => true, as: 'mac'
|
627
|
+
property :mac_crc32c, :numeric_string => true, as: 'macCrc32c'
|
628
|
+
property :name, as: 'name'
|
629
|
+
property :protection_level, as: 'protectionLevel'
|
630
|
+
property :verified_data_crc32c, as: 'verifiedDataCrc32c'
|
631
|
+
end
|
632
|
+
end
|
633
|
+
|
634
|
+
class MacVerifyRequest
|
635
|
+
# @private
|
636
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
637
|
+
property :data, :base64 => true, as: 'data'
|
638
|
+
property :data_crc32c, :numeric_string => true, as: 'dataCrc32c'
|
639
|
+
property :mac, :base64 => true, as: 'mac'
|
640
|
+
property :mac_crc32c, :numeric_string => true, as: 'macCrc32c'
|
641
|
+
end
|
642
|
+
end
|
643
|
+
|
644
|
+
class MacVerifyResponse
|
645
|
+
# @private
|
646
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
647
|
+
property :name, as: 'name'
|
648
|
+
property :protection_level, as: 'protectionLevel'
|
649
|
+
property :success, as: 'success'
|
650
|
+
property :verified_data_crc32c, as: 'verifiedDataCrc32c'
|
651
|
+
property :verified_mac_crc32c, as: 'verifiedMacCrc32c'
|
652
|
+
property :verified_success_integrity, as: 'verifiedSuccessIntegrity'
|
653
|
+
end
|
654
|
+
end
|
655
|
+
|
559
656
|
class Policy
|
560
657
|
# @private
|
561
658
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -50,6 +50,41 @@ module Google
|
|
50
50
|
@batch_path = 'batch'
|
51
51
|
end
|
52
52
|
|
53
|
+
# Generate random bytes using the Cloud KMS randomness source in the provided
|
54
|
+
# location.
|
55
|
+
# @param [String] location
|
56
|
+
# The project-specific location in which to generate random bytes. For example, "
|
57
|
+
# projects/my-project/locations/us-central1".
|
58
|
+
# @param [Google::Apis::CloudkmsV1::GenerateRandomBytesRequest] generate_random_bytes_request_object
|
59
|
+
# @param [String] fields
|
60
|
+
# Selector specifying which fields to include in a partial response.
|
61
|
+
# @param [String] quota_user
|
62
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
63
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
64
|
+
# @param [Google::Apis::RequestOptions] options
|
65
|
+
# Request-specific options
|
66
|
+
#
|
67
|
+
# @yield [result, err] Result & error if block supplied
|
68
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::GenerateRandomBytesResponse] parsed result object
|
69
|
+
# @yieldparam err [StandardError] error object if request failed
|
70
|
+
#
|
71
|
+
# @return [Google::Apis::CloudkmsV1::GenerateRandomBytesResponse]
|
72
|
+
#
|
73
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
74
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
75
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
76
|
+
def generate_location_random_bytes(location, generate_random_bytes_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
77
|
+
command = make_simple_command(:post, 'v1/{+location}:generateRandomBytes', options)
|
78
|
+
command.request_representation = Google::Apis::CloudkmsV1::GenerateRandomBytesRequest::Representation
|
79
|
+
command.request_object = generate_random_bytes_request_object
|
80
|
+
command.response_representation = Google::Apis::CloudkmsV1::GenerateRandomBytesResponse::Representation
|
81
|
+
command.response_class = Google::Apis::CloudkmsV1::GenerateRandomBytesResponse
|
82
|
+
command.params['location'] = location unless location.nil?
|
83
|
+
command.query['fields'] = fields unless fields.nil?
|
84
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
85
|
+
execute_or_queue_command(command, &block)
|
86
|
+
end
|
87
|
+
|
53
88
|
# Gets information about a location.
|
54
89
|
# @param [String] name
|
55
90
|
# Resource name for the location.
|
@@ -848,11 +883,11 @@ module Google
|
|
848
883
|
end
|
849
884
|
|
850
885
|
# Schedule a CryptoKeyVersion for destruction. Upon calling this method,
|
851
|
-
# CryptoKeyVersion.state will be set to DESTROY_SCHEDULED and destroy_time will
|
852
|
-
# be set to
|
853
|
-
#
|
854
|
-
# Before the destroy_time is reached,
|
855
|
-
# reverse the process.
|
886
|
+
# CryptoKeyVersion.state will be set to DESTROY_SCHEDULED, and destroy_time will
|
887
|
+
# be set to the time destroy_scheduled_duration in the future. At that time, the
|
888
|
+
# state will automatically change to DESTROYED, and the key material will be
|
889
|
+
# irrevocably destroyed. Before the destroy_time is reached,
|
890
|
+
# RestoreCryptoKeyVersion may be called to reverse the process.
|
856
891
|
# @param [String] name
|
857
892
|
# Required. The resource name of the CryptoKeyVersion to destroy.
|
858
893
|
# @param [Google::Apis::CloudkmsV1::DestroyCryptoKeyVersionRequest] destroy_crypto_key_version_request_object
|
@@ -946,11 +981,14 @@ module Google
|
|
946
981
|
execute_or_queue_command(command, &block)
|
947
982
|
end
|
948
983
|
|
949
|
-
#
|
950
|
-
#
|
951
|
-
#
|
984
|
+
# Import wrapped key material into a CryptoKeyVersion. All requests must specify
|
985
|
+
# a CryptoKey. If a CryptoKeyVersion is additionally specified in the request,
|
986
|
+
# key material will be reimported into that version. Otherwise, a new version
|
987
|
+
# will be created, and will be assigned the next sequential id within the
|
988
|
+
# CryptoKey.
|
952
989
|
# @param [String] parent
|
953
|
-
# Required. The name of the CryptoKey to be imported into.
|
990
|
+
# Required. The name of the CryptoKey to be imported into. The create permission
|
991
|
+
# is only required on this key when creating a new CryptoKeyVersion.
|
954
992
|
# @param [Google::Apis::CloudkmsV1::ImportCryptoKeyVersionRequest] import_crypto_key_version_request_object
|
955
993
|
# @param [String] fields
|
956
994
|
# Selector specifying which fields to include in a partial response.
|
@@ -1036,6 +1074,75 @@ module Google
|
|
1036
1074
|
execute_or_queue_command(command, &block)
|
1037
1075
|
end
|
1038
1076
|
|
1077
|
+
# Signs data using a CryptoKeyVersion with CryptoKey.purpose MAC, producing a
|
1078
|
+
# tag that can be verified by another source with the same key.
|
1079
|
+
# @param [String] name
|
1080
|
+
# Required. The resource name of the CryptoKeyVersion to use for signing.
|
1081
|
+
# @param [Google::Apis::CloudkmsV1::MacSignRequest] mac_sign_request_object
|
1082
|
+
# @param [String] fields
|
1083
|
+
# Selector specifying which fields to include in a partial response.
|
1084
|
+
# @param [String] quota_user
|
1085
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1086
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1087
|
+
# @param [Google::Apis::RequestOptions] options
|
1088
|
+
# Request-specific options
|
1089
|
+
#
|
1090
|
+
# @yield [result, err] Result & error if block supplied
|
1091
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::MacSignResponse] parsed result object
|
1092
|
+
# @yieldparam err [StandardError] error object if request failed
|
1093
|
+
#
|
1094
|
+
# @return [Google::Apis::CloudkmsV1::MacSignResponse]
|
1095
|
+
#
|
1096
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1097
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1098
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1099
|
+
def mac_crypto_key_version_sign(name, mac_sign_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1100
|
+
command = make_simple_command(:post, 'v1/{+name}:macSign', options)
|
1101
|
+
command.request_representation = Google::Apis::CloudkmsV1::MacSignRequest::Representation
|
1102
|
+
command.request_object = mac_sign_request_object
|
1103
|
+
command.response_representation = Google::Apis::CloudkmsV1::MacSignResponse::Representation
|
1104
|
+
command.response_class = Google::Apis::CloudkmsV1::MacSignResponse
|
1105
|
+
command.params['name'] = name unless name.nil?
|
1106
|
+
command.query['fields'] = fields unless fields.nil?
|
1107
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1108
|
+
execute_or_queue_command(command, &block)
|
1109
|
+
end
|
1110
|
+
|
1111
|
+
# Verifies MAC tag using a CryptoKeyVersion with CryptoKey.purpose MAC, and
|
1112
|
+
# returns a response that indicates whether or not the verification was
|
1113
|
+
# successful.
|
1114
|
+
# @param [String] name
|
1115
|
+
# Required. The resource name of the CryptoKeyVersion to use for verification.
|
1116
|
+
# @param [Google::Apis::CloudkmsV1::MacVerifyRequest] mac_verify_request_object
|
1117
|
+
# @param [String] fields
|
1118
|
+
# Selector specifying which fields to include in a partial response.
|
1119
|
+
# @param [String] quota_user
|
1120
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1121
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1122
|
+
# @param [Google::Apis::RequestOptions] options
|
1123
|
+
# Request-specific options
|
1124
|
+
#
|
1125
|
+
# @yield [result, err] Result & error if block supplied
|
1126
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::MacVerifyResponse] parsed result object
|
1127
|
+
# @yieldparam err [StandardError] error object if request failed
|
1128
|
+
#
|
1129
|
+
# @return [Google::Apis::CloudkmsV1::MacVerifyResponse]
|
1130
|
+
#
|
1131
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1132
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1133
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1134
|
+
def mac_crypto_key_version_verify(name, mac_verify_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1135
|
+
command = make_simple_command(:post, 'v1/{+name}:macVerify', options)
|
1136
|
+
command.request_representation = Google::Apis::CloudkmsV1::MacVerifyRequest::Representation
|
1137
|
+
command.request_object = mac_verify_request_object
|
1138
|
+
command.response_representation = Google::Apis::CloudkmsV1::MacVerifyResponse::Representation
|
1139
|
+
command.response_class = Google::Apis::CloudkmsV1::MacVerifyResponse
|
1140
|
+
command.params['name'] = name unless name.nil?
|
1141
|
+
command.query['fields'] = fields unless fields.nil?
|
1142
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1143
|
+
execute_or_queue_command(command, &block)
|
1144
|
+
end
|
1145
|
+
|
1039
1146
|
# Update a CryptoKeyVersion's metadata. state may be changed between ENABLED and
|
1040
1147
|
# DISABLED using this method. See DestroyCryptoKeyVersion and
|
1041
1148
|
# RestoreCryptoKeyVersion to move between other states.
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# This is NOT the gem version.
|
31
31
|
VERSION = 'V1'
|
32
32
|
|
33
|
-
# See, edit, configure, and delete your Google Cloud
|
33
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
34
34
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
35
35
|
|
36
36
|
# View and manage your keys and secrets stored in Cloud Key Management Service
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-cloudkms_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.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: 2021-06
|
11
|
+
date: 2021-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
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.4'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudkms_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudkms_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudkms_v1/v0.12.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudkms_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|