google-apis-cloudkms_v1 0.75.0 → 0.77.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/cloudkms_v1/classes.rb +202 -7
- data/lib/google/apis/cloudkms_v1/gem_version.rb +3 -3
- data/lib/google/apis/cloudkms_v1/representations.rb +66 -0
- data/lib/google/apis/cloudkms_v1/service.rb +131 -9
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a20cdbd02ab5103e435ba523ecf516e75785e6d43c3b522c75f9c3aa9144a211
|
|
4
|
+
data.tar.gz: ad070b4df2ad24a2ba362332b71f8218ca1267865f9c9cfe261ed853f5c19f11
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: edb2500c6beb545cfb6388f352e49c542e7ade602122f6e7d4881ef142697af759159be5e4e4a8ffc927e7526ab2a9fd637c90c70e9dbb7c5dff000fb91f9e21
|
|
7
|
+
data.tar.gz: 7df052adaba45fbbac5061f6086c2fa47e2dc42a8b5f8993a3223c622ee1549f9e0abddb100c5986dc417dd243207fbbb985a462e4f65a9935debfd7822e49d0
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Release history for google-apis-cloudkms_v1
|
|
2
2
|
|
|
3
|
+
### v0.77.0 (2026-07-19)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20260709
|
|
6
|
+
|
|
7
|
+
### v0.76.0 (2026-06-14)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20260608
|
|
10
|
+
* Regenerated using generator version 0.19.0
|
|
11
|
+
|
|
3
12
|
### v0.75.0 (2026-05-24)
|
|
4
13
|
|
|
5
14
|
* Regenerated from discovery document revision 20260514
|
data/OVERVIEW.md
CHANGED
|
@@ -83,7 +83,7 @@ The [product documentation](https://cloud.google.com/kms/) may provide guidance
|
|
|
83
83
|
|
|
84
84
|
## Supported Ruby versions
|
|
85
85
|
|
|
86
|
-
This library is supported on Ruby 3.
|
|
86
|
+
This library is supported on Ruby 3.2+.
|
|
87
87
|
|
|
88
88
|
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
|
89
89
|
|
|
@@ -410,7 +410,8 @@ module Google
|
|
|
410
410
|
attr_accessor :key_project_resolution_mode
|
|
411
411
|
|
|
412
412
|
# Identifier. Name of the AutokeyConfig resource, e.g. `folders/`FOLDER_NUMBER`/
|
|
413
|
-
# autokeyConfig` or `projects/`
|
|
413
|
+
# autokeyConfig`, `projects/`PROJECT_NUMBER`/autokeyConfig`, or `projects/`
|
|
414
|
+
# PROJECT_ID`/autokeyConfig`.
|
|
414
415
|
# Corresponds to the JSON property `name`
|
|
415
416
|
# @return [String]
|
|
416
417
|
attr_accessor :name
|
|
@@ -915,6 +916,14 @@ module Google
|
|
|
915
916
|
# @return [String]
|
|
916
917
|
attr_accessor :generation_failure_reason
|
|
917
918
|
|
|
919
|
+
# Output only. Field indicating that the key wrapping key is trusted. This field
|
|
920
|
+
# is only valid for key purpose AES_256_WRAPPING, and protection level
|
|
921
|
+
# HSM_SINGLE_TENANT.
|
|
922
|
+
# Corresponds to the JSON property `hsmTrusted`
|
|
923
|
+
# @return [Boolean]
|
|
924
|
+
attr_accessor :hsm_trusted
|
|
925
|
+
alias_method :hsm_trusted?, :hsm_trusted
|
|
926
|
+
|
|
918
927
|
# Output only. The root cause of the most recent import failure. Only present if
|
|
919
928
|
# state is IMPORT_FAILED.
|
|
920
929
|
# Corresponds to the JSON property `importFailureReason`
|
|
@@ -958,6 +967,16 @@ module Google
|
|
|
958
967
|
# @return [String]
|
|
959
968
|
attr_accessor :state
|
|
960
969
|
|
|
970
|
+
# Immutable. Field indicating that the key may be wrapped by a trusted key. This
|
|
971
|
+
# field can be set for all key purposes except ENCRYPT_DECRYPT, and is only
|
|
972
|
+
# valid for keys with protection level HSM_SINGLE_TENANT. This field can only be
|
|
973
|
+
# set at creation or import time via CreateCryptoKeyVersion, or
|
|
974
|
+
# ImportCryptoKeyVersion.
|
|
975
|
+
# Corresponds to the JSON property `trustedWrappingEnabled`
|
|
976
|
+
# @return [Boolean]
|
|
977
|
+
attr_accessor :trusted_wrapping_enabled
|
|
978
|
+
alias_method :trusted_wrapping_enabled?, :trusted_wrapping_enabled
|
|
979
|
+
|
|
961
980
|
def initialize(**args)
|
|
962
981
|
update!(**args)
|
|
963
982
|
end
|
|
@@ -973,6 +992,7 @@ module Google
|
|
|
973
992
|
@external_protection_level_options = args[:external_protection_level_options] if args.key?(:external_protection_level_options)
|
|
974
993
|
@generate_time = args[:generate_time] if args.key?(:generate_time)
|
|
975
994
|
@generation_failure_reason = args[:generation_failure_reason] if args.key?(:generation_failure_reason)
|
|
995
|
+
@hsm_trusted = args[:hsm_trusted] if args.key?(:hsm_trusted)
|
|
976
996
|
@import_failure_reason = args[:import_failure_reason] if args.key?(:import_failure_reason)
|
|
977
997
|
@import_job = args[:import_job] if args.key?(:import_job)
|
|
978
998
|
@import_time = args[:import_time] if args.key?(:import_time)
|
|
@@ -980,6 +1000,7 @@ module Google
|
|
|
980
1000
|
@protection_level = args[:protection_level] if args.key?(:protection_level)
|
|
981
1001
|
@reimport_eligible = args[:reimport_eligible] if args.key?(:reimport_eligible)
|
|
982
1002
|
@state = args[:state] if args.key?(:state)
|
|
1003
|
+
@trusted_wrapping_enabled = args[:trusted_wrapping_enabled] if args.key?(:trusted_wrapping_enabled)
|
|
983
1004
|
end
|
|
984
1005
|
end
|
|
985
1006
|
|
|
@@ -1583,6 +1604,43 @@ module Google
|
|
|
1583
1604
|
end
|
|
1584
1605
|
end
|
|
1585
1606
|
|
|
1607
|
+
# Response message for KeyManagementService.
|
|
1608
|
+
# ExportTrustedKeyWrappedCryptoKeyVersion.
|
|
1609
|
+
class ExportTrustedKeyWrappedCryptoKeyVersionResponse
|
|
1610
|
+
include Google::Apis::Core::Hashable
|
|
1611
|
+
|
|
1612
|
+
# The wrapped key material.
|
|
1613
|
+
# Corresponds to the JSON property `wrappedKey`
|
|
1614
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
1615
|
+
# @return [String]
|
|
1616
|
+
attr_accessor :wrapped_key
|
|
1617
|
+
|
|
1618
|
+
# Integrity verification field. A CRC32C checksum of the returned
|
|
1619
|
+
# ExportTrustedKeyWrappedCryptoKeyVersionResponse.wrapped_key. An integrity
|
|
1620
|
+
# check of ExportTrustedKeyWrappedCryptoKeyVersionResponse.wrapped_key can be
|
|
1621
|
+
# performed by computing the CRC32C checksum of
|
|
1622
|
+
# ExportTrustedKeyWrappedCryptoKeyVersionResponse.wrapped_key and comparing your
|
|
1623
|
+
# results to this field. Discard the response in case of non-matching checksum
|
|
1624
|
+
# values, and perform a limited number of retries. A persistent mismatch may
|
|
1625
|
+
# indicate an issue in your computation of the CRC32C checksum. Note: This field
|
|
1626
|
+
# is defined as int64 for reasons of compatibility across different languages.
|
|
1627
|
+
# However, it is a non-negative integer, which will never exceed 2^32-1, and can
|
|
1628
|
+
# be safely downconverted to uint32 in languages that support this type.
|
|
1629
|
+
# Corresponds to the JSON property `wrappedKeyCrc32c`
|
|
1630
|
+
# @return [Fixnum]
|
|
1631
|
+
attr_accessor :wrapped_key_crc32c
|
|
1632
|
+
|
|
1633
|
+
def initialize(**args)
|
|
1634
|
+
update!(**args)
|
|
1635
|
+
end
|
|
1636
|
+
|
|
1637
|
+
# Update properties of this object
|
|
1638
|
+
def update!(**args)
|
|
1639
|
+
@wrapped_key = args[:wrapped_key] if args.key?(:wrapped_key)
|
|
1640
|
+
@wrapped_key_crc32c = args[:wrapped_key_crc32c] if args.key?(:wrapped_key_crc32c)
|
|
1641
|
+
end
|
|
1642
|
+
end
|
|
1643
|
+
|
|
1586
1644
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
|
1587
1645
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
|
1588
1646
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
|
@@ -1643,14 +1701,23 @@ module Google
|
|
|
1643
1701
|
class ExternalProtectionLevelOptions
|
|
1644
1702
|
include Google::Apis::Core::Hashable
|
|
1645
1703
|
|
|
1646
|
-
# The
|
|
1647
|
-
#
|
|
1648
|
-
#
|
|
1704
|
+
# Optional. The resource name of the backend environment where the key material
|
|
1705
|
+
# of CryptoKeyVersions is associated with. Setting this field overrides the
|
|
1706
|
+
# CryptoKeyBackend. This field may be set when CryptoKeyVersions is set to
|
|
1707
|
+
# EXTERNAL_VPC. Format: `projects/*/locations/*/ekmConnections/*`.
|
|
1708
|
+
# Corresponds to the JSON property `ekmConnectionBackendOverride`
|
|
1709
|
+
# @return [String]
|
|
1710
|
+
attr_accessor :ekm_connection_backend_override
|
|
1711
|
+
|
|
1712
|
+
# Optional. The path to the external key material on the EKM when using
|
|
1713
|
+
# EkmConnection e.g., "v0/my/key". Set this field instead of external_key_uri
|
|
1714
|
+
# when using an EkmConnection.
|
|
1649
1715
|
# Corresponds to the JSON property `ekmConnectionKeyPath`
|
|
1650
1716
|
# @return [String]
|
|
1651
1717
|
attr_accessor :ekm_connection_key_path
|
|
1652
1718
|
|
|
1653
|
-
# The URI for an external resource that this CryptoKeyVersion
|
|
1719
|
+
# Optional. The URI for an external resource that this CryptoKeyVersion
|
|
1720
|
+
# represents.
|
|
1654
1721
|
# Corresponds to the JSON property `externalKeyUri`
|
|
1655
1722
|
# @return [String]
|
|
1656
1723
|
attr_accessor :external_key_uri
|
|
@@ -1661,6 +1728,7 @@ module Google
|
|
|
1661
1728
|
|
|
1662
1729
|
# Update properties of this object
|
|
1663
1730
|
def update!(**args)
|
|
1731
|
+
@ekm_connection_backend_override = args[:ekm_connection_backend_override] if args.key?(:ekm_connection_backend_override)
|
|
1664
1732
|
@ekm_connection_key_path = args[:ekm_connection_key_path] if args.key?(:ekm_connection_key_path)
|
|
1665
1733
|
@external_key_uri = args[:external_key_uri] if args.key?(:external_key_uri)
|
|
1666
1734
|
end
|
|
@@ -1764,6 +1832,15 @@ module Google
|
|
|
1764
1832
|
# @return [String]
|
|
1765
1833
|
attr_accessor :rsa_aes_wrapped_key
|
|
1766
1834
|
|
|
1835
|
+
# Optional. Whether trusted wrapping will be enabled on the imported [
|
|
1836
|
+
# CryptoKeyVersion]. This field is only supported for keys with
|
|
1837
|
+
# CryptoKeyVersionTemplate.protection_level HSM_SINGLE_TENANT. This field is
|
|
1838
|
+
# supported for all CryptoKeyPurposes besides ENCRYPT_DECRYPT.
|
|
1839
|
+
# Corresponds to the JSON property `trustedWrappingEnabled`
|
|
1840
|
+
# @return [Boolean]
|
|
1841
|
+
attr_accessor :trusted_wrapping_enabled
|
|
1842
|
+
alias_method :trusted_wrapping_enabled?, :trusted_wrapping_enabled
|
|
1843
|
+
|
|
1767
1844
|
# Optional. The wrapped key material to import. Before wrapping, key material
|
|
1768
1845
|
# must be formatted. If importing symmetric key material, the expected key
|
|
1769
1846
|
# material format is plain bytes. If importing asymmetric key material, the
|
|
@@ -1794,6 +1871,7 @@ module Google
|
|
|
1794
1871
|
@crypto_key_version = args[:crypto_key_version] if args.key?(:crypto_key_version)
|
|
1795
1872
|
@import_job = args[:import_job] if args.key?(:import_job)
|
|
1796
1873
|
@rsa_aes_wrapped_key = args[:rsa_aes_wrapped_key] if args.key?(:rsa_aes_wrapped_key)
|
|
1874
|
+
@trusted_wrapping_enabled = args[:trusted_wrapping_enabled] if args.key?(:trusted_wrapping_enabled)
|
|
1797
1875
|
@wrapped_key = args[:wrapped_key] if args.key?(:wrapped_key)
|
|
1798
1876
|
end
|
|
1799
1877
|
end
|
|
@@ -1912,6 +1990,56 @@ module Google
|
|
|
1912
1990
|
end
|
|
1913
1991
|
end
|
|
1914
1992
|
|
|
1993
|
+
# Request message for KeyManagementService.
|
|
1994
|
+
# ImportTrustedKeyWrappedCryptoKeyVersion.
|
|
1995
|
+
class ImportTrustedKeyWrappedCryptoKeyVersionRequest
|
|
1996
|
+
include Google::Apis::Core::Hashable
|
|
1997
|
+
|
|
1998
|
+
# Required. Required - The algorithm of the key being imported. This does not
|
|
1999
|
+
# need to match the version_template of the CryptoKey this version imports into.
|
|
2000
|
+
# Corresponds to the JSON property `algorithm`
|
|
2001
|
+
# @return [String]
|
|
2002
|
+
attr_accessor :algorithm
|
|
2003
|
+
|
|
2004
|
+
# Optional. The optional name of an existing CryptoKeyVersion to target for an
|
|
2005
|
+
# import operation. If this field is not present, a new CryptoKeyVersion
|
|
2006
|
+
# containing the supplied key material is created. If this field is present, the
|
|
2007
|
+
# supplied key material is imported into the existing CryptoKeyVersion. To
|
|
2008
|
+
# import into an existing CryptoKeyVersion, the CryptoKeyVersion must be a child
|
|
2009
|
+
# of ImportTrustedKeyWrappedCryptoKeyVersionRequest.parent, have been previously
|
|
2010
|
+
# created via ImportTrustedKeyWrappedCryptoKeyVersion, and be in DESTROYED or
|
|
2011
|
+
# IMPORT_FAILED state. The key material and algorithm must match the previous
|
|
2012
|
+
# CryptoKeyVersion exactly if the CryptoKeyVersion has ever contained key
|
|
2013
|
+
# material
|
|
2014
|
+
# Corresponds to the JSON property `cryptoKeyVersion`
|
|
2015
|
+
# @return [String]
|
|
2016
|
+
attr_accessor :crypto_key_version
|
|
2017
|
+
|
|
2018
|
+
# Required. Required - the CKV of the trusted key used to import. This can be
|
|
2019
|
+
# the name of a CryptoKeyVersion or a CryptoKey.
|
|
2020
|
+
# Corresponds to the JSON property `importingKey`
|
|
2021
|
+
# @return [String]
|
|
2022
|
+
attr_accessor :importing_key
|
|
2023
|
+
|
|
2024
|
+
# Required. The target key pre-wrapped on premises.
|
|
2025
|
+
# Corresponds to the JSON property `wrappedKey`
|
|
2026
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
2027
|
+
# @return [String]
|
|
2028
|
+
attr_accessor :wrapped_key
|
|
2029
|
+
|
|
2030
|
+
def initialize(**args)
|
|
2031
|
+
update!(**args)
|
|
2032
|
+
end
|
|
2033
|
+
|
|
2034
|
+
# Update properties of this object
|
|
2035
|
+
def update!(**args)
|
|
2036
|
+
@algorithm = args[:algorithm] if args.key?(:algorithm)
|
|
2037
|
+
@crypto_key_version = args[:crypto_key_version] if args.key?(:crypto_key_version)
|
|
2038
|
+
@importing_key = args[:importing_key] if args.key?(:importing_key)
|
|
2039
|
+
@wrapped_key = args[:wrapped_key] if args.key?(:wrapped_key)
|
|
2040
|
+
end
|
|
2041
|
+
end
|
|
2042
|
+
|
|
1915
2043
|
# Represents the configuration of a protection level for a project's Key Access
|
|
1916
2044
|
# Justifications enrollment.
|
|
1917
2045
|
class KeyAccessJustificationsEnrollmentConfig
|
|
@@ -3736,11 +3864,21 @@ module Google
|
|
|
3736
3864
|
class ShowEffectiveAutokeyConfigResponse
|
|
3737
3865
|
include Google::Apis::Core::Hashable
|
|
3738
3866
|
|
|
3739
|
-
# Name of the key project configured in the
|
|
3867
|
+
# Name of the key project configured in the ancestry of the project or folder.
|
|
3740
3868
|
# Corresponds to the JSON property `keyProject`
|
|
3741
3869
|
# @return [String]
|
|
3742
3870
|
attr_accessor :key_project
|
|
3743
3871
|
|
|
3872
|
+
# The KeyProjectResolutionMode for the AutokeyConfig.
|
|
3873
|
+
# Corresponds to the JSON property `keyProjectResolutionMode`
|
|
3874
|
+
# @return [String]
|
|
3875
|
+
attr_accessor :key_project_resolution_mode
|
|
3876
|
+
|
|
3877
|
+
# Source of the effective AutokeyConfig.
|
|
3878
|
+
# Corresponds to the JSON property `source`
|
|
3879
|
+
# @return [Google::Apis::CloudkmsV1::Source]
|
|
3880
|
+
attr_accessor :source
|
|
3881
|
+
|
|
3744
3882
|
def initialize(**args)
|
|
3745
3883
|
update!(**args)
|
|
3746
3884
|
end
|
|
@@ -3748,6 +3886,8 @@ module Google
|
|
|
3748
3886
|
# Update properties of this object
|
|
3749
3887
|
def update!(**args)
|
|
3750
3888
|
@key_project = args[:key_project] if args.key?(:key_project)
|
|
3889
|
+
@key_project_resolution_mode = args[:key_project_resolution_mode] if args.key?(:key_project_resolution_mode)
|
|
3890
|
+
@source = args[:source] if args.key?(:source)
|
|
3751
3891
|
end
|
|
3752
3892
|
end
|
|
3753
3893
|
|
|
@@ -3834,7 +3974,7 @@ module Google
|
|
|
3834
3974
|
|
|
3835
3975
|
# Optional. Immutable. Indicates whether key portability is enabled for the
|
|
3836
3976
|
# SingleTenantHsmInstance. This can only be set at creation time. Key
|
|
3837
|
-
# portability features are disabled by default
|
|
3977
|
+
# portability features are disabled by default.
|
|
3838
3978
|
# Corresponds to the JSON property `keyPortabilityEnabled`
|
|
3839
3979
|
# @return [Boolean]
|
|
3840
3980
|
attr_accessor :key_portability_enabled
|
|
@@ -3991,6 +4131,12 @@ module Google
|
|
|
3991
4131
|
# @return [String]
|
|
3992
4132
|
attr_accessor :ttl
|
|
3993
4133
|
|
|
4134
|
+
# Promotes a key with the AES_WRAPPING purpose to a trusted wrapping key. The
|
|
4135
|
+
# key must be in the ACTIVE state to perform this operation.
|
|
4136
|
+
# Corresponds to the JSON property `upgradeKeyTrust`
|
|
4137
|
+
# @return [Google::Apis::CloudkmsV1::UpgradeKeyTrust]
|
|
4138
|
+
attr_accessor :upgrade_key_trust
|
|
4139
|
+
|
|
3994
4140
|
def initialize(**args)
|
|
3995
4141
|
update!(**args)
|
|
3996
4142
|
end
|
|
@@ -4014,6 +4160,28 @@ module Google
|
|
|
4014
4160
|
@required_action_quorum_parameters = args[:required_action_quorum_parameters] if args.key?(:required_action_quorum_parameters)
|
|
4015
4161
|
@state = args[:state] if args.key?(:state)
|
|
4016
4162
|
@ttl = args[:ttl] if args.key?(:ttl)
|
|
4163
|
+
@upgrade_key_trust = args[:upgrade_key_trust] if args.key?(:upgrade_key_trust)
|
|
4164
|
+
end
|
|
4165
|
+
end
|
|
4166
|
+
|
|
4167
|
+
# Source of the effective AutokeyConfig.
|
|
4168
|
+
class Source
|
|
4169
|
+
include Google::Apis::Core::Hashable
|
|
4170
|
+
|
|
4171
|
+
# Contains the resource name of the AutokeyConfig that is effective, for example,
|
|
4172
|
+
# `folders/`FOLDER_NUMBER`` or `projects/`PROJECT_NUMBER`` or `organizations/`
|
|
4173
|
+
# ORGANIZATION_NUMBER``.
|
|
4174
|
+
# Corresponds to the JSON property `name`
|
|
4175
|
+
# @return [String]
|
|
4176
|
+
attr_accessor :name
|
|
4177
|
+
|
|
4178
|
+
def initialize(**args)
|
|
4179
|
+
update!(**args)
|
|
4180
|
+
end
|
|
4181
|
+
|
|
4182
|
+
# Update properties of this object
|
|
4183
|
+
def update!(**args)
|
|
4184
|
+
@name = args[:name] if args.key?(:name)
|
|
4017
4185
|
end
|
|
4018
4186
|
end
|
|
4019
4187
|
|
|
@@ -4115,6 +4283,33 @@ module Google
|
|
|
4115
4283
|
end
|
|
4116
4284
|
end
|
|
4117
4285
|
|
|
4286
|
+
# Promotes a key with the AES_WRAPPING purpose to a trusted wrapping key. The
|
|
4287
|
+
# key must be in the ACTIVE state to perform this operation.
|
|
4288
|
+
class UpgradeKeyTrust
|
|
4289
|
+
include Google::Apis::Core::Hashable
|
|
4290
|
+
|
|
4291
|
+
# Required. The name of the CryptoKeyVersion to promote.
|
|
4292
|
+
# Corresponds to the JSON property `name`
|
|
4293
|
+
# @return [String]
|
|
4294
|
+
attr_accessor :name
|
|
4295
|
+
|
|
4296
|
+
# Required. The public key associated with the 2FA key that will sign the login
|
|
4297
|
+
# nonce for this operation.
|
|
4298
|
+
# Corresponds to the JSON property `twoFactorPublicKeyPem`
|
|
4299
|
+
# @return [String]
|
|
4300
|
+
attr_accessor :two_factor_public_key_pem
|
|
4301
|
+
|
|
4302
|
+
def initialize(**args)
|
|
4303
|
+
update!(**args)
|
|
4304
|
+
end
|
|
4305
|
+
|
|
4306
|
+
# Update properties of this object
|
|
4307
|
+
def update!(**args)
|
|
4308
|
+
@name = args[:name] if args.key?(:name)
|
|
4309
|
+
@two_factor_public_key_pem = args[:two_factor_public_key_pem] if args.key?(:two_factor_public_key_pem)
|
|
4310
|
+
end
|
|
4311
|
+
end
|
|
4312
|
+
|
|
4118
4313
|
# Response message for EkmService.VerifyConnectivity.
|
|
4119
4314
|
class VerifyConnectivityResponse
|
|
4120
4315
|
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.
|
|
19
|
+
GEM_VERSION = "0.77.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
|
-
GENERATOR_VERSION = "0.
|
|
22
|
+
GENERATOR_VERSION = "0.19.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260709"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -226,6 +226,12 @@ module Google
|
|
|
226
226
|
include Google::Apis::Core::JsonObjectSupport
|
|
227
227
|
end
|
|
228
228
|
|
|
229
|
+
class ExportTrustedKeyWrappedCryptoKeyVersionResponse
|
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
231
|
+
|
|
232
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
233
|
+
end
|
|
234
|
+
|
|
229
235
|
class Expr
|
|
230
236
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
231
237
|
|
|
@@ -262,6 +268,12 @@ module Google
|
|
|
262
268
|
include Google::Apis::Core::JsonObjectSupport
|
|
263
269
|
end
|
|
264
270
|
|
|
271
|
+
class ImportTrustedKeyWrappedCryptoKeyVersionRequest
|
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
273
|
+
|
|
274
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
275
|
+
end
|
|
276
|
+
|
|
265
277
|
class KeyAccessJustificationsEnrollmentConfig
|
|
266
278
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
267
279
|
|
|
@@ -538,6 +550,12 @@ module Google
|
|
|
538
550
|
include Google::Apis::Core::JsonObjectSupport
|
|
539
551
|
end
|
|
540
552
|
|
|
553
|
+
class Source
|
|
554
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
555
|
+
|
|
556
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
557
|
+
end
|
|
558
|
+
|
|
541
559
|
class Status
|
|
542
560
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
543
561
|
|
|
@@ -562,6 +580,12 @@ module Google
|
|
|
562
580
|
include Google::Apis::Core::JsonObjectSupport
|
|
563
581
|
end
|
|
564
582
|
|
|
583
|
+
class UpgradeKeyTrust
|
|
584
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
585
|
+
|
|
586
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
587
|
+
end
|
|
588
|
+
|
|
565
589
|
class VerifyConnectivityResponse
|
|
566
590
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
567
591
|
|
|
@@ -759,6 +783,7 @@ module Google
|
|
|
759
783
|
|
|
760
784
|
property :generate_time, as: 'generateTime'
|
|
761
785
|
property :generation_failure_reason, as: 'generationFailureReason'
|
|
786
|
+
property :hsm_trusted, as: 'hsmTrusted'
|
|
762
787
|
property :import_failure_reason, as: 'importFailureReason'
|
|
763
788
|
property :import_job, as: 'importJob'
|
|
764
789
|
property :import_time, as: 'importTime'
|
|
@@ -766,6 +791,7 @@ module Google
|
|
|
766
791
|
property :protection_level, as: 'protectionLevel'
|
|
767
792
|
property :reimport_eligible, as: 'reimportEligible'
|
|
768
793
|
property :state, as: 'state'
|
|
794
|
+
property :trusted_wrapping_enabled, as: 'trustedWrappingEnabled'
|
|
769
795
|
end
|
|
770
796
|
end
|
|
771
797
|
|
|
@@ -905,6 +931,14 @@ module Google
|
|
|
905
931
|
end
|
|
906
932
|
end
|
|
907
933
|
|
|
934
|
+
class ExportTrustedKeyWrappedCryptoKeyVersionResponse
|
|
935
|
+
# @private
|
|
936
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
937
|
+
property :wrapped_key, :base64 => true, as: 'wrappedKey'
|
|
938
|
+
property :wrapped_key_crc32c, :numeric_string => true, as: 'wrappedKeyCrc32c'
|
|
939
|
+
end
|
|
940
|
+
end
|
|
941
|
+
|
|
908
942
|
class Expr
|
|
909
943
|
# @private
|
|
910
944
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -918,6 +952,7 @@ module Google
|
|
|
918
952
|
class ExternalProtectionLevelOptions
|
|
919
953
|
# @private
|
|
920
954
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
955
|
+
property :ekm_connection_backend_override, as: 'ekmConnectionBackendOverride'
|
|
921
956
|
property :ekm_connection_key_path, as: 'ekmConnectionKeyPath'
|
|
922
957
|
property :external_key_uri, as: 'externalKeyUri'
|
|
923
958
|
end
|
|
@@ -946,6 +981,7 @@ module Google
|
|
|
946
981
|
property :crypto_key_version, as: 'cryptoKeyVersion'
|
|
947
982
|
property :import_job, as: 'importJob'
|
|
948
983
|
property :rsa_aes_wrapped_key, :base64 => true, as: 'rsaAesWrappedKey'
|
|
984
|
+
property :trusted_wrapping_enabled, as: 'trustedWrappingEnabled'
|
|
949
985
|
property :wrapped_key, :base64 => true, as: 'wrappedKey'
|
|
950
986
|
end
|
|
951
987
|
end
|
|
@@ -970,6 +1006,16 @@ module Google
|
|
|
970
1006
|
end
|
|
971
1007
|
end
|
|
972
1008
|
|
|
1009
|
+
class ImportTrustedKeyWrappedCryptoKeyVersionRequest
|
|
1010
|
+
# @private
|
|
1011
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1012
|
+
property :algorithm, as: 'algorithm'
|
|
1013
|
+
property :crypto_key_version, as: 'cryptoKeyVersion'
|
|
1014
|
+
property :importing_key, as: 'importingKey'
|
|
1015
|
+
property :wrapped_key, :base64 => true, as: 'wrappedKey'
|
|
1016
|
+
end
|
|
1017
|
+
end
|
|
1018
|
+
|
|
973
1019
|
class KeyAccessJustificationsEnrollmentConfig
|
|
974
1020
|
# @private
|
|
975
1021
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1382,6 +1428,9 @@ module Google
|
|
|
1382
1428
|
# @private
|
|
1383
1429
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1384
1430
|
property :key_project, as: 'keyProject'
|
|
1431
|
+
property :key_project_resolution_mode, as: 'keyProjectResolutionMode'
|
|
1432
|
+
property :source, as: 'source', class: Google::Apis::CloudkmsV1::Source, decorator: Google::Apis::CloudkmsV1::Source::Representation
|
|
1433
|
+
|
|
1385
1434
|
end
|
|
1386
1435
|
end
|
|
1387
1436
|
|
|
@@ -1449,6 +1498,15 @@ module Google
|
|
|
1449
1498
|
|
|
1450
1499
|
property :state, as: 'state'
|
|
1451
1500
|
property :ttl, as: 'ttl'
|
|
1501
|
+
property :upgrade_key_trust, as: 'upgradeKeyTrust', class: Google::Apis::CloudkmsV1::UpgradeKeyTrust, decorator: Google::Apis::CloudkmsV1::UpgradeKeyTrust::Representation
|
|
1502
|
+
|
|
1503
|
+
end
|
|
1504
|
+
end
|
|
1505
|
+
|
|
1506
|
+
class Source
|
|
1507
|
+
# @private
|
|
1508
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1509
|
+
property :name, as: 'name'
|
|
1452
1510
|
end
|
|
1453
1511
|
end
|
|
1454
1512
|
|
|
@@ -1482,6 +1540,14 @@ module Google
|
|
|
1482
1540
|
end
|
|
1483
1541
|
end
|
|
1484
1542
|
|
|
1543
|
+
class UpgradeKeyTrust
|
|
1544
|
+
# @private
|
|
1545
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1546
|
+
property :name, as: 'name'
|
|
1547
|
+
property :two_factor_public_key_pem, as: 'twoFactorPublicKeyPem'
|
|
1548
|
+
end
|
|
1549
|
+
end
|
|
1550
|
+
|
|
1485
1551
|
class VerifyConnectivityResponse
|
|
1486
1552
|
# @private
|
|
1487
1553
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -55,7 +55,8 @@ module Google
|
|
|
55
55
|
# Returns the AutokeyConfig for a folder or project.
|
|
56
56
|
# @param [String] name
|
|
57
57
|
# Required. Name of the AutokeyConfig resource, e.g. `folders/`FOLDER_NUMBER`/
|
|
58
|
-
# autokeyConfig` or `projects/`
|
|
58
|
+
# autokeyConfig`, `projects/`PROJECT_NUMBER`/autokeyConfig`, or `projects/`
|
|
59
|
+
# PROJECT_ID`/autokeyConfig`.
|
|
59
60
|
# @param [String] fields
|
|
60
61
|
# Selector specifying which fields to include in a partial response.
|
|
61
62
|
# @param [String] quota_user
|
|
@@ -114,6 +115,40 @@ module Google
|
|
|
114
115
|
execute_or_queue_command(command, &block)
|
|
115
116
|
end
|
|
116
117
|
|
|
118
|
+
# Returns the effective Cloud KMS Autokey configuration for a given project or
|
|
119
|
+
# folder.
|
|
120
|
+
# @param [String] parent
|
|
121
|
+
# Required. Name of the resource project or folder to show the effective Cloud
|
|
122
|
+
# KMS Autokey configuration for. This may be helpful for interrogating the
|
|
123
|
+
# effect of nested folder configurations on a given resource project. Format: *
|
|
124
|
+
# projects/`project` * folders/`folder`
|
|
125
|
+
# @param [String] fields
|
|
126
|
+
# Selector specifying which fields to include in a partial response.
|
|
127
|
+
# @param [String] quota_user
|
|
128
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
129
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
130
|
+
# @param [Google::Apis::RequestOptions] options
|
|
131
|
+
# Request-specific options
|
|
132
|
+
#
|
|
133
|
+
# @yield [result, err] Result & error if block supplied
|
|
134
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::ShowEffectiveAutokeyConfigResponse] parsed result object
|
|
135
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
136
|
+
#
|
|
137
|
+
# @return [Google::Apis::CloudkmsV1::ShowEffectiveAutokeyConfigResponse]
|
|
138
|
+
#
|
|
139
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
140
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
141
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
142
|
+
def show_folder_effective_autokey_config(parent, fields: nil, quota_user: nil, options: nil, &block)
|
|
143
|
+
command = make_simple_command(:get, 'v1/{+parent}:showEffectiveAutokeyConfig', options)
|
|
144
|
+
command.response_representation = Google::Apis::CloudkmsV1::ShowEffectiveAutokeyConfigResponse::Representation
|
|
145
|
+
command.response_class = Google::Apis::CloudkmsV1::ShowEffectiveAutokeyConfigResponse
|
|
146
|
+
command.params['parent'] = parent unless parent.nil?
|
|
147
|
+
command.query['fields'] = fields unless fields.nil?
|
|
148
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
149
|
+
execute_or_queue_command(command, &block)
|
|
150
|
+
end
|
|
151
|
+
|
|
117
152
|
# Updates the AutokeyConfig for a folder or a project. The caller must have both
|
|
118
153
|
# `cloudkms.autokeyConfigs.update` permission on the parent folder and `cloudkms.
|
|
119
154
|
# cryptoKeys.setIamPolicy` permission on the provided key project. A KeyHandle
|
|
@@ -121,7 +156,8 @@ module Google
|
|
|
121
156
|
# determine where to create the resulting CryptoKey.
|
|
122
157
|
# @param [String] name
|
|
123
158
|
# Identifier. Name of the AutokeyConfig resource, e.g. `folders/`FOLDER_NUMBER`/
|
|
124
|
-
# autokeyConfig` or `projects/`
|
|
159
|
+
# autokeyConfig`, `projects/`PROJECT_NUMBER`/autokeyConfig`, or `projects/`
|
|
160
|
+
# PROJECT_ID`/autokeyConfig`.
|
|
125
161
|
# @param [Google::Apis::CloudkmsV1::AutokeyConfig] autokey_config_object
|
|
126
162
|
# @param [String] update_mask
|
|
127
163
|
# Required. Masks which fields of the AutokeyConfig to update, e.g. `keyProject`.
|
|
@@ -267,7 +303,8 @@ module Google
|
|
|
267
303
|
# Returns the AutokeyConfig for a folder or project.
|
|
268
304
|
# @param [String] name
|
|
269
305
|
# Required. Name of the AutokeyConfig resource, e.g. `folders/`FOLDER_NUMBER`/
|
|
270
|
-
# autokeyConfig` or `projects/`
|
|
306
|
+
# autokeyConfig`, `projects/`PROJECT_NUMBER`/autokeyConfig`, or `projects/`
|
|
307
|
+
# PROJECT_ID`/autokeyConfig`.
|
|
271
308
|
# @param [String] fields
|
|
272
309
|
# Selector specifying which fields to include in a partial response.
|
|
273
310
|
# @param [String] quota_user
|
|
@@ -326,11 +363,13 @@ module Google
|
|
|
326
363
|
execute_or_queue_command(command, &block)
|
|
327
364
|
end
|
|
328
365
|
|
|
329
|
-
# Returns the effective Cloud KMS Autokey configuration for a given project
|
|
366
|
+
# Returns the effective Cloud KMS Autokey configuration for a given project or
|
|
367
|
+
# folder.
|
|
330
368
|
# @param [String] parent
|
|
331
|
-
# Required. Name of the resource project to the
|
|
332
|
-
# configuration for. This may be helpful for interrogating the
|
|
333
|
-
# folder configurations on a given resource project.
|
|
369
|
+
# Required. Name of the resource project or folder to show the effective Cloud
|
|
370
|
+
# KMS Autokey configuration for. This may be helpful for interrogating the
|
|
371
|
+
# effect of nested folder configurations on a given resource project. Format: *
|
|
372
|
+
# projects/`project` * folders/`folder`
|
|
334
373
|
# @param [String] fields
|
|
335
374
|
# Selector specifying which fields to include in a partial response.
|
|
336
375
|
# @param [String] quota_user
|
|
@@ -429,7 +468,8 @@ module Google
|
|
|
429
468
|
# determine where to create the resulting CryptoKey.
|
|
430
469
|
# @param [String] name
|
|
431
470
|
# Identifier. Name of the AutokeyConfig resource, e.g. `folders/`FOLDER_NUMBER`/
|
|
432
|
-
# autokeyConfig` or `projects/`
|
|
471
|
+
# autokeyConfig`, `projects/`PROJECT_NUMBER`/autokeyConfig`, or `projects/`
|
|
472
|
+
# PROJECT_ID`/autokeyConfig`.
|
|
433
473
|
# @param [Google::Apis::CloudkmsV1::AutokeyConfig] autokey_config_object
|
|
434
474
|
# @param [String] update_mask
|
|
435
475
|
# Required. Masks which fields of the AutokeyConfig to update, e.g. `keyProject`.
|
|
@@ -1494,6 +1534,11 @@ module Google
|
|
|
1494
1534
|
# If set to true, the request will create a CryptoKey without any
|
|
1495
1535
|
# CryptoKeyVersions. You must manually call CreateCryptoKeyVersion or
|
|
1496
1536
|
# ImportCryptoKeyVersion before you can use this CryptoKey.
|
|
1537
|
+
# @param [Boolean] trusted_wrapping_enabled
|
|
1538
|
+
# Optional. Whether trusted wrapping will be enabled on the first
|
|
1539
|
+
# CryptoKeyVersions created for this CryptoKey. This field is only supported for
|
|
1540
|
+
# keys with CryptoKeyVersionTemplate.protection_level HSM_SINGLE_TENANT. This
|
|
1541
|
+
# field is supported for all CryptoKeyPurposes except ENCRYPT_DECRYPT.
|
|
1497
1542
|
# @param [String] fields
|
|
1498
1543
|
# Selector specifying which fields to include in a partial response.
|
|
1499
1544
|
# @param [String] quota_user
|
|
@@ -1511,7 +1556,7 @@ module Google
|
|
|
1511
1556
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1512
1557
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1513
1558
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1514
|
-
def create_project_location_key_ring_crypto_key(parent, crypto_key_object = nil, crypto_key_id: nil, skip_initial_version_creation: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1559
|
+
def create_project_location_key_ring_crypto_key(parent, crypto_key_object = nil, crypto_key_id: nil, skip_initial_version_creation: nil, trusted_wrapping_enabled: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1515
1560
|
command = make_simple_command(:post, 'v1/{+parent}/cryptoKeys', options)
|
|
1516
1561
|
command.request_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
|
|
1517
1562
|
command.request_object = crypto_key_object
|
|
@@ -1520,6 +1565,7 @@ module Google
|
|
|
1520
1565
|
command.params['parent'] = parent unless parent.nil?
|
|
1521
1566
|
command.query['cryptoKeyId'] = crypto_key_id unless crypto_key_id.nil?
|
|
1522
1567
|
command.query['skipInitialVersionCreation'] = skip_initial_version_creation unless skip_initial_version_creation.nil?
|
|
1568
|
+
command.query['trustedWrappingEnabled'] = trusted_wrapping_enabled unless trusted_wrapping_enabled.nil?
|
|
1523
1569
|
command.query['fields'] = fields unless fields.nil?
|
|
1524
1570
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1525
1571
|
execute_or_queue_command(command, &block)
|
|
@@ -2117,6 +2163,44 @@ module Google
|
|
|
2117
2163
|
execute_or_queue_command(command, &block)
|
|
2118
2164
|
end
|
|
2119
2165
|
|
|
2166
|
+
# Exports a CryptoKeyVersion with a trusted key. The CryptoKeyVersion must have
|
|
2167
|
+
# trusted_wrapping_enabled set to true. The CryptoKeyVersion of the [
|
|
2168
|
+
# wrapping_key] must have the AES_WRAPPING purpose. The [wrapping_key] must have
|
|
2169
|
+
# the AES_256_KWP algorithm.
|
|
2170
|
+
# @param [String] name
|
|
2171
|
+
# Required. The name of the CryptoKeyVersion to export. The CryptoKeyVersion
|
|
2172
|
+
# must have trusted_wrapping_enabled set to true.
|
|
2173
|
+
# @param [String] wrapping_key
|
|
2174
|
+
# Required. The name of the CryptoKeyVersion to use as a wrapping key. The
|
|
2175
|
+
# CryptoKeyVersion must have hsm_trusted set to true.
|
|
2176
|
+
# @param [String] fields
|
|
2177
|
+
# Selector specifying which fields to include in a partial response.
|
|
2178
|
+
# @param [String] quota_user
|
|
2179
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2180
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2181
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2182
|
+
# Request-specific options
|
|
2183
|
+
#
|
|
2184
|
+
# @yield [result, err] Result & error if block supplied
|
|
2185
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::ExportTrustedKeyWrappedCryptoKeyVersionResponse] parsed result object
|
|
2186
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2187
|
+
#
|
|
2188
|
+
# @return [Google::Apis::CloudkmsV1::ExportTrustedKeyWrappedCryptoKeyVersionResponse]
|
|
2189
|
+
#
|
|
2190
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2191
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2192
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2193
|
+
def export_project_location_key_ring_crypto_key_crypto_key_version_trusted_key_wrapped_crypto_key_version(name, wrapping_key: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2194
|
+
command = make_simple_command(:get, 'v1/{+name}:exportTrustedKeyWrappedCryptoKeyVersion', options)
|
|
2195
|
+
command.response_representation = Google::Apis::CloudkmsV1::ExportTrustedKeyWrappedCryptoKeyVersionResponse::Representation
|
|
2196
|
+
command.response_class = Google::Apis::CloudkmsV1::ExportTrustedKeyWrappedCryptoKeyVersionResponse
|
|
2197
|
+
command.params['name'] = name unless name.nil?
|
|
2198
|
+
command.query['wrappingKey'] = wrapping_key unless wrapping_key.nil?
|
|
2199
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2200
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2201
|
+
execute_or_queue_command(command, &block)
|
|
2202
|
+
end
|
|
2203
|
+
|
|
2120
2204
|
# Returns metadata for a given CryptoKeyVersion.
|
|
2121
2205
|
# @param [String] name
|
|
2122
2206
|
# Required. The name of the CryptoKeyVersion to get.
|
|
@@ -2223,6 +2307,44 @@ module Google
|
|
|
2223
2307
|
execute_or_queue_command(command, &block)
|
|
2224
2308
|
end
|
|
2225
2309
|
|
|
2310
|
+
# Import wrapped key material into a CryptoKeyVersion with a trusted key. All
|
|
2311
|
+
# requests must specify a CryptoKey. If a CryptoKeyVersion is additionally
|
|
2312
|
+
# specified in the request, key material will be reimported into that version.
|
|
2313
|
+
# Otherwise, a new version will be created, and will be assigned the next
|
|
2314
|
+
# sequential id within the CryptoKey. The CryptoKeyVersion will have
|
|
2315
|
+
# trusted_wrapping_enabled set to true.
|
|
2316
|
+
# @param [String] parent
|
|
2317
|
+
# Required. The name of the CryptoKey to be imported into.
|
|
2318
|
+
# @param [Google::Apis::CloudkmsV1::ImportTrustedKeyWrappedCryptoKeyVersionRequest] import_trusted_key_wrapped_crypto_key_version_request_object
|
|
2319
|
+
# @param [String] fields
|
|
2320
|
+
# Selector specifying which fields to include in a partial response.
|
|
2321
|
+
# @param [String] quota_user
|
|
2322
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2323
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2324
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2325
|
+
# Request-specific options
|
|
2326
|
+
#
|
|
2327
|
+
# @yield [result, err] Result & error if block supplied
|
|
2328
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::CryptoKeyVersion] parsed result object
|
|
2329
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2330
|
+
#
|
|
2331
|
+
# @return [Google::Apis::CloudkmsV1::CryptoKeyVersion]
|
|
2332
|
+
#
|
|
2333
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2334
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2335
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2336
|
+
def import_trusted_key_wrapped_crypto_key_version(parent, import_trusted_key_wrapped_crypto_key_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2337
|
+
command = make_simple_command(:post, 'v1/{+parent}/cryptoKeyVersions:importTrustedKeyWrappedCryptoKeyVersion', options)
|
|
2338
|
+
command.request_representation = Google::Apis::CloudkmsV1::ImportTrustedKeyWrappedCryptoKeyVersionRequest::Representation
|
|
2339
|
+
command.request_object = import_trusted_key_wrapped_crypto_key_version_request_object
|
|
2340
|
+
command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
|
|
2341
|
+
command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
|
|
2342
|
+
command.params['parent'] = parent unless parent.nil?
|
|
2343
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2344
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2345
|
+
execute_or_queue_command(command, &block)
|
|
2346
|
+
end
|
|
2347
|
+
|
|
2226
2348
|
# Lists CryptoKeyVersions.
|
|
2227
2349
|
# @param [String] parent
|
|
2228
2350
|
# Required. The resource name of the CryptoKey to list, in the format `projects/*
|
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.
|
|
4
|
+
version: 0.77.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.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudkms_v1/v0.77.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:
|
|
@@ -66,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
66
66
|
requirements:
|
|
67
67
|
- - ">="
|
|
68
68
|
- !ruby/object:Gem::Version
|
|
69
|
-
version: '3.
|
|
69
|
+
version: '3.2'
|
|
70
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
requirements:
|
|
72
72
|
- - ">="
|