google-apis-cloudkms_v1 0.59.0 → 0.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 810c7c0d5eb5a065494d8b5a2f9ca50365197187f9d098141db1f80b67cb776f
4
- data.tar.gz: 48d6aa4f97e9b62ce43d51617a761b3a8d70e6bb3cc1022503c80da71f1b141d
3
+ metadata.gz: d88d548a35598e1bf54991b3b8e45cb5d1effcce6a484206865a11a551f807e7
4
+ data.tar.gz: 6246c1512a05f2f1b3e22436feb6889081201ec56f91399761578cbe0471d0c4
5
5
  SHA512:
6
- metadata.gz: 78bdfda01c6cd2eeb43b4caa85c25fb645d5b7e2a8b4396d884b3fb47bcd181dcb50ee7b8a80481bd30a0b055838c93e7bd73aef32a612305e250754763d8b9c
7
- data.tar.gz: 8af3b21a39dd664be72cb149588d193480f250d1697728b2b1726497b9b109c98c6e731241471c86838e13e45d38547e7ca40f034f70877a68a0213d5455dcfd
6
+ metadata.gz: 454b02cadccf26341ae6656b0e7798fded48889c79b441e4c4f3b63c9c48cef4fa7ec44293c512c07f86cecdbc30088c73f27a7cc5d2a8f4551c48746cbbc7f7
7
+ data.tar.gz: 0b191bc027580a98a880255c86cfcb27113a6a5fd24f0eb5b76918ed8df044aea19793248ba6a62b9ce4b614906ef08be5b75ede127105c3d01e7f124dda1c38
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-cloudkms_v1
2
2
 
3
+ ### v0.60.0 (2025-08-10)
4
+
5
+ * Regenerated from discovery document revision 20250731
6
+
3
7
  ### v0.59.0 (2025-05-25)
4
8
 
5
9
  * Regenerated from discovery document revision 20250516
@@ -886,6 +886,107 @@ module Google
886
886
  end
887
887
  end
888
888
 
889
+ # Request message for KeyManagementService.Decapsulate.
890
+ class DecapsulateRequest
891
+ include Google::Apis::Core::Hashable
892
+
893
+ # Required. The ciphertext produced from encapsulation with the named
894
+ # CryptoKeyVersion public key(s).
895
+ # Corresponds to the JSON property `ciphertext`
896
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
897
+ # @return [String]
898
+ attr_accessor :ciphertext
899
+
900
+ # Optional. A CRC32C checksum of the DecapsulateRequest.ciphertext. If specified,
901
+ # KeyManagementService will verify the integrity of the received
902
+ # DecapsulateRequest.ciphertext using this checksum. KeyManagementService will
903
+ # report an error if the checksum verification fails. If you receive a checksum
904
+ # error, your client should verify that CRC32C(DecapsulateRequest.ciphertext) is
905
+ # equal to DecapsulateRequest.ciphertext_crc32c, and if so, perform a limited
906
+ # number of retries. A persistent mismatch may indicate an issue in your
907
+ # computation of the CRC32C checksum. Note: This field is defined as int64 for
908
+ # reasons of compatibility across different languages. However, it is a non-
909
+ # negative integer, which will never exceed 2^32-1, and can be safely
910
+ # downconverted to uint32 in languages that support this type.
911
+ # Corresponds to the JSON property `ciphertextCrc32c`
912
+ # @return [Fixnum]
913
+ attr_accessor :ciphertext_crc32c
914
+
915
+ def initialize(**args)
916
+ update!(**args)
917
+ end
918
+
919
+ # Update properties of this object
920
+ def update!(**args)
921
+ @ciphertext = args[:ciphertext] if args.key?(:ciphertext)
922
+ @ciphertext_crc32c = args[:ciphertext_crc32c] if args.key?(:ciphertext_crc32c)
923
+ end
924
+ end
925
+
926
+ # Response message for KeyManagementService.Decapsulate.
927
+ class DecapsulateResponse
928
+ include Google::Apis::Core::Hashable
929
+
930
+ # The resource name of the CryptoKeyVersion used for decapsulation. Check this
931
+ # field to verify that the intended resource was used for decapsulation.
932
+ # Corresponds to the JSON property `name`
933
+ # @return [String]
934
+ attr_accessor :name
935
+
936
+ # The ProtectionLevel of the CryptoKeyVersion used in decapsulation.
937
+ # Corresponds to the JSON property `protectionLevel`
938
+ # @return [String]
939
+ attr_accessor :protection_level
940
+
941
+ # The decapsulated shared_secret originally encapsulated with the matching
942
+ # public key.
943
+ # Corresponds to the JSON property `sharedSecret`
944
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
945
+ # @return [String]
946
+ attr_accessor :shared_secret
947
+
948
+ # Integrity verification field. A CRC32C checksum of the returned
949
+ # DecapsulateResponse.shared_secret. An integrity check of DecapsulateResponse.
950
+ # shared_secret can be performed by computing the CRC32C checksum of
951
+ # DecapsulateResponse.shared_secret and comparing your results to this field.
952
+ # Discard the response in case of non-matching checksum values, and perform a
953
+ # limited number of retries. A persistent mismatch may indicate an issue in your
954
+ # computation of the CRC32C checksum. Note: receiving this response message
955
+ # indicates that KeyManagementService is able to successfully decrypt the
956
+ # ciphertext. Note: This field is defined as int64 for reasons of compatibility
957
+ # across different languages. However, it is a non-negative integer, which will
958
+ # never exceed 2^32-1, and can be safely downconverted to uint32 in languages
959
+ # that support this type.
960
+ # Corresponds to the JSON property `sharedSecretCrc32c`
961
+ # @return [Fixnum]
962
+ attr_accessor :shared_secret_crc32c
963
+
964
+ # Integrity verification field. A flag indicating whether DecapsulateRequest.
965
+ # ciphertext_crc32c was received by KeyManagementService and used for the
966
+ # integrity verification of the ciphertext. A false value of this field
967
+ # indicates either that DecapsulateRequest.ciphertext_crc32c was left unset or
968
+ # that it was not delivered to KeyManagementService. If you've set
969
+ # DecapsulateRequest.ciphertext_crc32c but this field is still false, discard
970
+ # the response and perform a limited number of retries.
971
+ # Corresponds to the JSON property `verifiedCiphertextCrc32c`
972
+ # @return [Boolean]
973
+ attr_accessor :verified_ciphertext_crc32c
974
+ alias_method :verified_ciphertext_crc32c?, :verified_ciphertext_crc32c
975
+
976
+ def initialize(**args)
977
+ update!(**args)
978
+ end
979
+
980
+ # Update properties of this object
981
+ def update!(**args)
982
+ @name = args[:name] if args.key?(:name)
983
+ @protection_level = args[:protection_level] if args.key?(:protection_level)
984
+ @shared_secret = args[:shared_secret] if args.key?(:shared_secret)
985
+ @shared_secret_crc32c = args[:shared_secret_crc32c] if args.key?(:shared_secret_crc32c)
986
+ @verified_ciphertext_crc32c = args[:verified_ciphertext_crc32c] if args.key?(:verified_ciphertext_crc32c)
987
+ end
988
+ end
989
+
889
990
  # Request message for KeyManagementService.Decrypt.
890
991
  class DecryptRequest
891
992
  include Google::Apis::Core::Hashable
@@ -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.59.0"
19
+ GEM_VERSION = "0.60.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250516"
25
+ REVISION = "20250731"
26
26
  end
27
27
  end
28
28
  end
@@ -106,6 +106,18 @@ module Google
106
106
  include Google::Apis::Core::JsonObjectSupport
107
107
  end
108
108
 
109
+ class DecapsulateRequest
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class DecapsulateResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
109
121
  class DecryptRequest
110
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
123
 
@@ -581,6 +593,25 @@ module Google
581
593
  end
582
594
  end
583
595
 
596
+ class DecapsulateRequest
597
+ # @private
598
+ class Representation < Google::Apis::Core::JsonRepresentation
599
+ property :ciphertext, :base64 => true, as: 'ciphertext'
600
+ property :ciphertext_crc32c, :numeric_string => true, as: 'ciphertextCrc32c'
601
+ end
602
+ end
603
+
604
+ class DecapsulateResponse
605
+ # @private
606
+ class Representation < Google::Apis::Core::JsonRepresentation
607
+ property :name, as: 'name'
608
+ property :protection_level, as: 'protectionLevel'
609
+ property :shared_secret, :base64 => true, as: 'sharedSecret'
610
+ property :shared_secret_crc32c, :numeric_string => true, as: 'sharedSecretCrc32c'
611
+ property :verified_ciphertext_crc32c, as: 'verifiedCiphertextCrc32c'
612
+ end
613
+ end
614
+
584
615
  class DecryptRequest
585
616
  # @private
586
617
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1893,6 +1893,41 @@ module Google
1893
1893
  execute_or_queue_command(command, &block)
1894
1894
  end
1895
1895
 
1896
+ # Decapsulates data that was encapsulated with a public key retrieved from
1897
+ # GetPublicKey corresponding to a CryptoKeyVersion with CryptoKey.purpose
1898
+ # KEY_ENCAPSULATION.
1899
+ # @param [String] name
1900
+ # Required. The resource name of the CryptoKeyVersion to use for decapsulation.
1901
+ # @param [Google::Apis::CloudkmsV1::DecapsulateRequest] decapsulate_request_object
1902
+ # @param [String] fields
1903
+ # Selector specifying which fields to include in a partial response.
1904
+ # @param [String] quota_user
1905
+ # Available to use for quota purposes for server-side applications. Can be any
1906
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1907
+ # @param [Google::Apis::RequestOptions] options
1908
+ # Request-specific options
1909
+ #
1910
+ # @yield [result, err] Result & error if block supplied
1911
+ # @yieldparam result [Google::Apis::CloudkmsV1::DecapsulateResponse] parsed result object
1912
+ # @yieldparam err [StandardError] error object if request failed
1913
+ #
1914
+ # @return [Google::Apis::CloudkmsV1::DecapsulateResponse]
1915
+ #
1916
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1917
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1918
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1919
+ def decapsulate_crypto_key_version(name, decapsulate_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1920
+ command = make_simple_command(:post, 'v1/{+name}:decapsulate', options)
1921
+ command.request_representation = Google::Apis::CloudkmsV1::DecapsulateRequest::Representation
1922
+ command.request_object = decapsulate_request_object
1923
+ command.response_representation = Google::Apis::CloudkmsV1::DecapsulateResponse::Representation
1924
+ command.response_class = Google::Apis::CloudkmsV1::DecapsulateResponse
1925
+ command.params['name'] = name unless name.nil?
1926
+ command.query['fields'] = fields unless fields.nil?
1927
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1928
+ execute_or_queue_command(command, &block)
1929
+ end
1930
+
1896
1931
  # Schedule a CryptoKeyVersion for destruction. Upon calling this method,
1897
1932
  # CryptoKeyVersion.state will be set to DESTROY_SCHEDULED, and destroy_time will
1898
1933
  # be set to the time destroy_scheduled_duration in the future. At that time, the
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudkms_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.59.0
4
+ version: 0.60.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudkms_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudkms_v1/v0.59.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudkms_v1/v0.60.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudkms_v1
62
62
  rdoc_options: []
63
63
  require_paths: