google-apis-cloudkms_v1 0.7.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d24d53627d68110c7007a55be5249020e3860c727d9305a44f1c24fa286d5261
|
4
|
+
data.tar.gz: 1c5b6e275b1f6ed9ed9b2882029dccacc30d710b1e1b070590a32cea5f8a050b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 719138759639eb2e6d250c68df91e25c16e0fdcbc18035f985e887132c0ff54c4b0a3c59eb9d2ec45d74c1a5da4c1889967e37059181773cdf18ca998f9dba0c
|
7
|
+
data.tar.gz: fd86a96235dcef634dfb5b3946074c6d8819b73bf34872f8999052531fdbdb9c6554c923b2b16392328af0eb5100207f49793ed21178f294ead106e638742a65
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-cloudkms_v1
|
2
2
|
|
3
|
+
### v0.11.0 (2021-07-31)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210723
|
6
|
+
|
7
|
+
### v0.10.0 (2021-07-14)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210702
|
10
|
+
|
11
|
+
### v0.9.0 (2021-06-29)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210622
|
14
|
+
* Regenerated using generator version 0.4.0
|
15
|
+
|
16
|
+
### v0.8.0 (2021-06-24)
|
17
|
+
|
18
|
+
* Regenerated using generator version 0.3.0
|
19
|
+
|
3
20
|
### v0.7.0 (2021-06-01)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20210522
|
@@ -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
|
@@ -630,8 +626,7 @@ module Google
|
|
630
626
|
# computation of the CRC32C checksum. Note: This field is defined as int64 for
|
631
627
|
# reasons of compatibility across different languages. However, it is a non-
|
632
628
|
# 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.
|
629
|
+
# downconverted to uint32 in languages that support this type.
|
635
630
|
# Corresponds to the JSON property `additionalAuthenticatedDataCrc32c`
|
636
631
|
# @return [Fixnum]
|
637
632
|
attr_accessor :additional_authenticated_data_crc32c
|
@@ -652,7 +647,7 @@ module Google
|
|
652
647
|
# the CRC32C checksum. Note: This field is defined as int64 for reasons of
|
653
648
|
# compatibility across different languages. However, it is a non-negative
|
654
649
|
# integer, which will never exceed 2^32-1, and can be safely downconverted to
|
655
|
-
# uint32 in languages that support this type.
|
650
|
+
# uint32 in languages that support this type.
|
656
651
|
# Corresponds to the JSON property `ciphertextCrc32c`
|
657
652
|
# @return [Fixnum]
|
658
653
|
attr_accessor :ciphertext_crc32c
|
@@ -691,7 +686,7 @@ module Google
|
|
691
686
|
# This field is defined as int64 for reasons of compatibility across different
|
692
687
|
# languages. However, it is a non-negative integer, which will never exceed 2^32-
|
693
688
|
# 1, and can be safely downconverted to uint32 in languages that support this
|
694
|
-
# type.
|
689
|
+
# type.
|
695
690
|
# Corresponds to the JSON property `plaintextCrc32c`
|
696
691
|
# @return [Fixnum]
|
697
692
|
attr_accessor :plaintext_crc32c
|
@@ -792,8 +787,7 @@ module Google
|
|
792
787
|
# computation of the CRC32C checksum. Note: This field is defined as int64 for
|
793
788
|
# reasons of compatibility across different languages. However, it is a non-
|
794
789
|
# 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.
|
790
|
+
# downconverted to uint32 in languages that support this type.
|
797
791
|
# Corresponds to the JSON property `additionalAuthenticatedDataCrc32c`
|
798
792
|
# @return [Fixnum]
|
799
793
|
attr_accessor :additional_authenticated_data_crc32c
|
@@ -818,7 +812,7 @@ module Google
|
|
818
812
|
# the CRC32C checksum. Note: This field is defined as int64 for reasons of
|
819
813
|
# compatibility across different languages. However, it is a non-negative
|
820
814
|
# integer, which will never exceed 2^32-1, and can be safely downconverted to
|
821
|
-
# uint32 in languages that support this type.
|
815
|
+
# uint32 in languages that support this type.
|
822
816
|
# Corresponds to the JSON property `plaintextCrc32c`
|
823
817
|
# @return [Fixnum]
|
824
818
|
attr_accessor :plaintext_crc32c
|
@@ -855,7 +849,7 @@ module Google
|
|
855
849
|
# checksum. Note: This field is defined as int64 for reasons of compatibility
|
856
850
|
# across different languages. However, it is a non-negative integer, which will
|
857
851
|
# never exceed 2^32-1, and can be safely downconverted to uint32 in languages
|
858
|
-
# that support this type.
|
852
|
+
# that support this type.
|
859
853
|
# Corresponds to the JSON property `ciphertextCrc32c`
|
860
854
|
# @return [Fixnum]
|
861
855
|
attr_accessor :ciphertext_crc32c
|
@@ -877,8 +871,7 @@ module Google
|
|
877
871
|
# indicates either that EncryptRequest.additional_authenticated_data_crc32c was
|
878
872
|
# left unset or that it was not delivered to KeyManagementService. If you've set
|
879
873
|
# 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.
|
874
|
+
# false, discard the response and perform a limited number of retries.
|
882
875
|
# Corresponds to the JSON property `verifiedAdditionalAuthenticatedDataCrc32c`
|
883
876
|
# @return [Boolean]
|
884
877
|
attr_accessor :verified_additional_authenticated_data_crc32c
|
@@ -890,7 +883,7 @@ module Google
|
|
890
883
|
# either that EncryptRequest.plaintext_crc32c was left unset or that it was not
|
891
884
|
# delivered to KeyManagementService. If you've set EncryptRequest.
|
892
885
|
# plaintext_crc32c but this field is still false, discard the response and
|
893
|
-
# perform a limited number of retries.
|
886
|
+
# perform a limited number of retries.
|
894
887
|
# Corresponds to the JSON property `verifiedPlaintextCrc32c`
|
895
888
|
# @return [Boolean]
|
896
889
|
attr_accessor :verified_plaintext_crc32c
|
@@ -1416,6 +1409,232 @@ module Google
|
|
1416
1409
|
end
|
1417
1410
|
end
|
1418
1411
|
|
1412
|
+
# Request message for KeyManagementService.MacSign.
|
1413
|
+
class MacSignRequest
|
1414
|
+
include Google::Apis::Core::Hashable
|
1415
|
+
|
1416
|
+
# Required. The data to sign. The MAC tag is computed over this data field based
|
1417
|
+
# on the specific algorithm.
|
1418
|
+
# Corresponds to the JSON property `data`
|
1419
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1420
|
+
# @return [String]
|
1421
|
+
attr_accessor :data
|
1422
|
+
|
1423
|
+
# Optional. An optional CRC32C checksum of the MacSignRequest.data. If specified,
|
1424
|
+
# KeyManagementService will verify the integrity of the received MacSignRequest.
|
1425
|
+
# data using this checksum. KeyManagementService will report an error if the
|
1426
|
+
# checksum verification fails. If you receive a checksum error, your client
|
1427
|
+
# should verify that CRC32C(MacSignRequest.data) is equal to MacSignRequest.
|
1428
|
+
# data_crc32c, and if so, perform a limited number of retries. A persistent
|
1429
|
+
# mismatch may indicate an issue in your computation of the CRC32C checksum.
|
1430
|
+
# Note: This field is defined as int64 for reasons of compatibility across
|
1431
|
+
# different languages. However, it is a non-negative integer, which will never
|
1432
|
+
# exceed 2^32-1, and can be safely downconverted to uint32 in languages that
|
1433
|
+
# support this type.
|
1434
|
+
# Corresponds to the JSON property `dataCrc32c`
|
1435
|
+
# @return [Fixnum]
|
1436
|
+
attr_accessor :data_crc32c
|
1437
|
+
|
1438
|
+
def initialize(**args)
|
1439
|
+
update!(**args)
|
1440
|
+
end
|
1441
|
+
|
1442
|
+
# Update properties of this object
|
1443
|
+
def update!(**args)
|
1444
|
+
@data = args[:data] if args.key?(:data)
|
1445
|
+
@data_crc32c = args[:data_crc32c] if args.key?(:data_crc32c)
|
1446
|
+
end
|
1447
|
+
end
|
1448
|
+
|
1449
|
+
# Response message for KeyManagementService.MacSign.
|
1450
|
+
class MacSignResponse
|
1451
|
+
include Google::Apis::Core::Hashable
|
1452
|
+
|
1453
|
+
# The created signature.
|
1454
|
+
# Corresponds to the JSON property `mac`
|
1455
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1456
|
+
# @return [String]
|
1457
|
+
attr_accessor :mac
|
1458
|
+
|
1459
|
+
# Integrity verification field. A CRC32C checksum of the returned
|
1460
|
+
# MacSignResponse.mac. An integrity check of MacSignResponse.mac can be
|
1461
|
+
# performed by computing the CRC32C checksum of MacSignResponse.mac and
|
1462
|
+
# comparing your results to this field. Discard the response in case of non-
|
1463
|
+
# matching checksum values, and perform a limited number of retries. A
|
1464
|
+
# persistent mismatch may indicate an issue in your computation of the CRC32C
|
1465
|
+
# checksum. Note: This field is defined as int64 for reasons of compatibility
|
1466
|
+
# across different languages. However, it is a non-negative integer, which will
|
1467
|
+
# never exceed 2^32-1, and can be safely downconverted to uint32 in languages
|
1468
|
+
# that support this type.
|
1469
|
+
# Corresponds to the JSON property `macCrc32c`
|
1470
|
+
# @return [Fixnum]
|
1471
|
+
attr_accessor :mac_crc32c
|
1472
|
+
|
1473
|
+
# The resource name of the CryptoKeyVersion used for signing. Check this field
|
1474
|
+
# to verify that the intended resource was used for signing.
|
1475
|
+
# Corresponds to the JSON property `name`
|
1476
|
+
# @return [String]
|
1477
|
+
attr_accessor :name
|
1478
|
+
|
1479
|
+
# The ProtectionLevel of the CryptoKeyVersion used for signing.
|
1480
|
+
# Corresponds to the JSON property `protectionLevel`
|
1481
|
+
# @return [String]
|
1482
|
+
attr_accessor :protection_level
|
1483
|
+
|
1484
|
+
# Integrity verification field. A flag indicating whether MacSignRequest.
|
1485
|
+
# data_crc32c was received by KeyManagementService and used for the integrity
|
1486
|
+
# verification of the data. A false value of this field indicates either that
|
1487
|
+
# MacSignRequest.data_crc32c was left unset or that it was not delivered to
|
1488
|
+
# KeyManagementService. If you've set MacSignRequest.data_crc32c but this field
|
1489
|
+
# is still false, discard the response and perform a limited number of retries.
|
1490
|
+
# Corresponds to the JSON property `verifiedDataCrc32c`
|
1491
|
+
# @return [Boolean]
|
1492
|
+
attr_accessor :verified_data_crc32c
|
1493
|
+
alias_method :verified_data_crc32c?, :verified_data_crc32c
|
1494
|
+
|
1495
|
+
def initialize(**args)
|
1496
|
+
update!(**args)
|
1497
|
+
end
|
1498
|
+
|
1499
|
+
# Update properties of this object
|
1500
|
+
def update!(**args)
|
1501
|
+
@mac = args[:mac] if args.key?(:mac)
|
1502
|
+
@mac_crc32c = args[:mac_crc32c] if args.key?(:mac_crc32c)
|
1503
|
+
@name = args[:name] if args.key?(:name)
|
1504
|
+
@protection_level = args[:protection_level] if args.key?(:protection_level)
|
1505
|
+
@verified_data_crc32c = args[:verified_data_crc32c] if args.key?(:verified_data_crc32c)
|
1506
|
+
end
|
1507
|
+
end
|
1508
|
+
|
1509
|
+
# Request message for KeyManagementService.MacVerify.
|
1510
|
+
class MacVerifyRequest
|
1511
|
+
include Google::Apis::Core::Hashable
|
1512
|
+
|
1513
|
+
# Required. The data used previously as a MacSignRequest.data to generate the
|
1514
|
+
# MAC tag.
|
1515
|
+
# Corresponds to the JSON property `data`
|
1516
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1517
|
+
# @return [String]
|
1518
|
+
attr_accessor :data
|
1519
|
+
|
1520
|
+
# Optional. An optional CRC32C checksum of the MacVerifyRequest.data. If
|
1521
|
+
# specified, KeyManagementService will verify the integrity of the received
|
1522
|
+
# MacVerifyRequest.data using this checksum. KeyManagementService will report an
|
1523
|
+
# error if the checksum verification fails. If you receive a checksum error,
|
1524
|
+
# your client should verify that CRC32C(MacVerifyRequest.data) is equal to
|
1525
|
+
# MacVerifyRequest.data_crc32c, and if so, perform a limited number of retries.
|
1526
|
+
# A persistent mismatch may indicate an issue in your computation of the CRC32C
|
1527
|
+
# checksum. Note: This field is defined as int64 for reasons of compatibility
|
1528
|
+
# across different languages. However, it is a non-negative integer, which will
|
1529
|
+
# never exceed 2^32-1, and can be safely downconverted to uint32 in languages
|
1530
|
+
# that support this type.
|
1531
|
+
# Corresponds to the JSON property `dataCrc32c`
|
1532
|
+
# @return [Fixnum]
|
1533
|
+
attr_accessor :data_crc32c
|
1534
|
+
|
1535
|
+
# Required. The signature to verify.
|
1536
|
+
# Corresponds to the JSON property `mac`
|
1537
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1538
|
+
# @return [String]
|
1539
|
+
attr_accessor :mac
|
1540
|
+
|
1541
|
+
# Optional. An optional CRC32C checksum of the MacVerifyRequest.mac. If
|
1542
|
+
# specified, KeyManagementService will verify the integrity of the received
|
1543
|
+
# MacVerifyRequest.mac using this checksum. KeyManagementService will report an
|
1544
|
+
# error if the checksum verification fails. If you receive a checksum error,
|
1545
|
+
# your client should verify that CRC32C(MacVerifyRequest.tag) is equal to
|
1546
|
+
# MacVerifyRequest.mac_crc32c, and if so, perform a limited number of retries. A
|
1547
|
+
# persistent mismatch may indicate an issue in your computation of the CRC32C
|
1548
|
+
# checksum. Note: This field is defined as int64 for reasons of compatibility
|
1549
|
+
# across different languages. However, it is a non-negative integer, which will
|
1550
|
+
# never exceed 2^32-1, and can be safely downconverted to uint32 in languages
|
1551
|
+
# that support this type.
|
1552
|
+
# Corresponds to the JSON property `macCrc32c`
|
1553
|
+
# @return [Fixnum]
|
1554
|
+
attr_accessor :mac_crc32c
|
1555
|
+
|
1556
|
+
def initialize(**args)
|
1557
|
+
update!(**args)
|
1558
|
+
end
|
1559
|
+
|
1560
|
+
# Update properties of this object
|
1561
|
+
def update!(**args)
|
1562
|
+
@data = args[:data] if args.key?(:data)
|
1563
|
+
@data_crc32c = args[:data_crc32c] if args.key?(:data_crc32c)
|
1564
|
+
@mac = args[:mac] if args.key?(:mac)
|
1565
|
+
@mac_crc32c = args[:mac_crc32c] if args.key?(:mac_crc32c)
|
1566
|
+
end
|
1567
|
+
end
|
1568
|
+
|
1569
|
+
# Response message for KeyManagementService.MacVerify.
|
1570
|
+
class MacVerifyResponse
|
1571
|
+
include Google::Apis::Core::Hashable
|
1572
|
+
|
1573
|
+
# The resource name of the CryptoKeyVersion used for verification. Check this
|
1574
|
+
# field to verify that the intended resource was used for verification.
|
1575
|
+
# Corresponds to the JSON property `name`
|
1576
|
+
# @return [String]
|
1577
|
+
attr_accessor :name
|
1578
|
+
|
1579
|
+
# The ProtectionLevel of the CryptoKeyVersion used for verification.
|
1580
|
+
# Corresponds to the JSON property `protectionLevel`
|
1581
|
+
# @return [String]
|
1582
|
+
attr_accessor :protection_level
|
1583
|
+
|
1584
|
+
# This field indicates whether or not the verification operation for
|
1585
|
+
# MacVerifyRequest.mac over MacVerifyRequest.data was successful.
|
1586
|
+
# Corresponds to the JSON property `success`
|
1587
|
+
# @return [Boolean]
|
1588
|
+
attr_accessor :success
|
1589
|
+
alias_method :success?, :success
|
1590
|
+
|
1591
|
+
# Integrity verification field. A flag indicating whether MacVerifyRequest.
|
1592
|
+
# data_crc32c was received by KeyManagementService and used for the integrity
|
1593
|
+
# verification of the data. A false value of this field indicates either that
|
1594
|
+
# MacVerifyRequest.data_crc32c was left unset or that it was not delivered to
|
1595
|
+
# KeyManagementService. If you've set MacVerifyRequest.data_crc32c but this
|
1596
|
+
# field is still false, discard the response and perform a limited number of
|
1597
|
+
# retries.
|
1598
|
+
# Corresponds to the JSON property `verifiedDataCrc32c`
|
1599
|
+
# @return [Boolean]
|
1600
|
+
attr_accessor :verified_data_crc32c
|
1601
|
+
alias_method :verified_data_crc32c?, :verified_data_crc32c
|
1602
|
+
|
1603
|
+
# Integrity verification field. A flag indicating whether MacVerifyRequest.
|
1604
|
+
# mac_crc32c was received by KeyManagementService and used for the integrity
|
1605
|
+
# verification of the data. A false value of this field indicates either that
|
1606
|
+
# MacVerifyRequest.mac_crc32c was left unset or that it was not delivered to
|
1607
|
+
# KeyManagementService. If you've set MacVerifyRequest.mac_crc32c but this field
|
1608
|
+
# is still false, discard the response and perform a limited number of retries.
|
1609
|
+
# Corresponds to the JSON property `verifiedMacCrc32c`
|
1610
|
+
# @return [Boolean]
|
1611
|
+
attr_accessor :verified_mac_crc32c
|
1612
|
+
alias_method :verified_mac_crc32c?, :verified_mac_crc32c
|
1613
|
+
|
1614
|
+
# Integrity verification field. This value is used for the integrity
|
1615
|
+
# verification of [MacVerifyResponse.success]. If the value of this field
|
1616
|
+
# contradicts the value of [MacVerifyResponse.success], discard the response and
|
1617
|
+
# perform a limited number of retries.
|
1618
|
+
# Corresponds to the JSON property `verifiedSuccessIntegrity`
|
1619
|
+
# @return [Boolean]
|
1620
|
+
attr_accessor :verified_success_integrity
|
1621
|
+
alias_method :verified_success_integrity?, :verified_success_integrity
|
1622
|
+
|
1623
|
+
def initialize(**args)
|
1624
|
+
update!(**args)
|
1625
|
+
end
|
1626
|
+
|
1627
|
+
# Update properties of this object
|
1628
|
+
def update!(**args)
|
1629
|
+
@name = args[:name] if args.key?(:name)
|
1630
|
+
@protection_level = args[:protection_level] if args.key?(:protection_level)
|
1631
|
+
@success = args[:success] if args.key?(:success)
|
1632
|
+
@verified_data_crc32c = args[:verified_data_crc32c] if args.key?(:verified_data_crc32c)
|
1633
|
+
@verified_mac_crc32c = args[:verified_mac_crc32c] if args.key?(:verified_mac_crc32c)
|
1634
|
+
@verified_success_integrity = args[:verified_success_integrity] if args.key?(:verified_success_integrity)
|
1635
|
+
end
|
1636
|
+
end
|
1637
|
+
|
1419
1638
|
# An Identity and Access Management (IAM) policy, which specifies access
|
1420
1639
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
1421
1640
|
# A `binding` binds one or more `members` to a single `role`. Members can be
|
@@ -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.11.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 = "20210723"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -202,6 +202,30 @@ module Google
|
|
202
202
|
include Google::Apis::Core::JsonObjectSupport
|
203
203
|
end
|
204
204
|
|
205
|
+
class MacSignRequest
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
211
|
+
class MacSignResponse
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
217
|
+
class MacVerifyRequest
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
|
+
|
220
|
+
include Google::Apis::Core::JsonObjectSupport
|
221
|
+
end
|
222
|
+
|
223
|
+
class MacVerifyResponse
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
+
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
227
|
+
end
|
228
|
+
|
205
229
|
class Policy
|
206
230
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
231
|
|
@@ -556,6 +580,47 @@ module Google
|
|
556
580
|
end
|
557
581
|
end
|
558
582
|
|
583
|
+
class MacSignRequest
|
584
|
+
# @private
|
585
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
586
|
+
property :data, :base64 => true, as: 'data'
|
587
|
+
property :data_crc32c, :numeric_string => true, as: 'dataCrc32c'
|
588
|
+
end
|
589
|
+
end
|
590
|
+
|
591
|
+
class MacSignResponse
|
592
|
+
# @private
|
593
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
594
|
+
property :mac, :base64 => true, as: 'mac'
|
595
|
+
property :mac_crc32c, :numeric_string => true, as: 'macCrc32c'
|
596
|
+
property :name, as: 'name'
|
597
|
+
property :protection_level, as: 'protectionLevel'
|
598
|
+
property :verified_data_crc32c, as: 'verifiedDataCrc32c'
|
599
|
+
end
|
600
|
+
end
|
601
|
+
|
602
|
+
class MacVerifyRequest
|
603
|
+
# @private
|
604
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
605
|
+
property :data, :base64 => true, as: 'data'
|
606
|
+
property :data_crc32c, :numeric_string => true, as: 'dataCrc32c'
|
607
|
+
property :mac, :base64 => true, as: 'mac'
|
608
|
+
property :mac_crc32c, :numeric_string => true, as: 'macCrc32c'
|
609
|
+
end
|
610
|
+
end
|
611
|
+
|
612
|
+
class MacVerifyResponse
|
613
|
+
# @private
|
614
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
615
|
+
property :name, as: 'name'
|
616
|
+
property :protection_level, as: 'protectionLevel'
|
617
|
+
property :success, as: 'success'
|
618
|
+
property :verified_data_crc32c, as: 'verifiedDataCrc32c'
|
619
|
+
property :verified_mac_crc32c, as: 'verifiedMacCrc32c'
|
620
|
+
property :verified_success_integrity, as: 'verifiedSuccessIntegrity'
|
621
|
+
end
|
622
|
+
end
|
623
|
+
|
559
624
|
class Policy
|
560
625
|
# @private
|
561
626
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1036,6 +1036,75 @@ module Google
|
|
1036
1036
|
execute_or_queue_command(command, &block)
|
1037
1037
|
end
|
1038
1038
|
|
1039
|
+
# Signs data using a CryptoKeyVersion with CryptoKey.purpose MAC, producing a
|
1040
|
+
# tag that can be verified by another source with the same key.
|
1041
|
+
# @param [String] name
|
1042
|
+
# Required. The resource name of the CryptoKeyVersion to use for signing.
|
1043
|
+
# @param [Google::Apis::CloudkmsV1::MacSignRequest] mac_sign_request_object
|
1044
|
+
# @param [String] fields
|
1045
|
+
# Selector specifying which fields to include in a partial response.
|
1046
|
+
# @param [String] quota_user
|
1047
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1048
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1049
|
+
# @param [Google::Apis::RequestOptions] options
|
1050
|
+
# Request-specific options
|
1051
|
+
#
|
1052
|
+
# @yield [result, err] Result & error if block supplied
|
1053
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::MacSignResponse] parsed result object
|
1054
|
+
# @yieldparam err [StandardError] error object if request failed
|
1055
|
+
#
|
1056
|
+
# @return [Google::Apis::CloudkmsV1::MacSignResponse]
|
1057
|
+
#
|
1058
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1059
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1060
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1061
|
+
def mac_crypto_key_version_sign(name, mac_sign_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1062
|
+
command = make_simple_command(:post, 'v1/{+name}:macSign', options)
|
1063
|
+
command.request_representation = Google::Apis::CloudkmsV1::MacSignRequest::Representation
|
1064
|
+
command.request_object = mac_sign_request_object
|
1065
|
+
command.response_representation = Google::Apis::CloudkmsV1::MacSignResponse::Representation
|
1066
|
+
command.response_class = Google::Apis::CloudkmsV1::MacSignResponse
|
1067
|
+
command.params['name'] = name unless name.nil?
|
1068
|
+
command.query['fields'] = fields unless fields.nil?
|
1069
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1070
|
+
execute_or_queue_command(command, &block)
|
1071
|
+
end
|
1072
|
+
|
1073
|
+
# Verifies MAC tag using a CryptoKeyVersion with CryptoKey.purpose MAC, and
|
1074
|
+
# returns a response that indicates whether or not the verification was
|
1075
|
+
# successful.
|
1076
|
+
# @param [String] name
|
1077
|
+
# Required. The resource name of the CryptoKeyVersion to use for verification.
|
1078
|
+
# @param [Google::Apis::CloudkmsV1::MacVerifyRequest] mac_verify_request_object
|
1079
|
+
# @param [String] fields
|
1080
|
+
# Selector specifying which fields to include in a partial response.
|
1081
|
+
# @param [String] quota_user
|
1082
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1083
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1084
|
+
# @param [Google::Apis::RequestOptions] options
|
1085
|
+
# Request-specific options
|
1086
|
+
#
|
1087
|
+
# @yield [result, err] Result & error if block supplied
|
1088
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::MacVerifyResponse] parsed result object
|
1089
|
+
# @yieldparam err [StandardError] error object if request failed
|
1090
|
+
#
|
1091
|
+
# @return [Google::Apis::CloudkmsV1::MacVerifyResponse]
|
1092
|
+
#
|
1093
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1094
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1095
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1096
|
+
def mac_crypto_key_version_verify(name, mac_verify_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1097
|
+
command = make_simple_command(:post, 'v1/{+name}:macVerify', options)
|
1098
|
+
command.request_representation = Google::Apis::CloudkmsV1::MacVerifyRequest::Representation
|
1099
|
+
command.request_object = mac_verify_request_object
|
1100
|
+
command.response_representation = Google::Apis::CloudkmsV1::MacVerifyResponse::Representation
|
1101
|
+
command.response_class = Google::Apis::CloudkmsV1::MacVerifyResponse
|
1102
|
+
command.params['name'] = name unless name.nil?
|
1103
|
+
command.query['fields'] = fields unless fields.nil?
|
1104
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1105
|
+
execute_or_queue_command(command, &block)
|
1106
|
+
end
|
1107
|
+
|
1039
1108
|
# Update a CryptoKeyVersion's metadata. state may be changed between ENABLED and
|
1040
1109
|
# DISABLED using this method. See DestroyCryptoKeyVersion and
|
1041
1110
|
# RestoreCryptoKeyVersion to move between other states.
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
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.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: 2021-
|
11
|
+
date: 2021-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.4'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
description: This is the simple REST client for Cloud Key Management Service (KMS)
|
28
34
|
API V1. Simple REST clients are Ruby client libraries that provide access to Google
|
29
35
|
services via their HTTP REST API endpoints. These libraries are generated and updated
|
@@ -52,7 +58,7 @@ licenses:
|
|
52
58
|
metadata:
|
53
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudkms_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudkms_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudkms_v1/v0.11.0
|
56
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudkms_v1
|
57
63
|
post_install_message:
|
58
64
|
rdoc_options: []
|