google-apis-cloudkms_v1 0.76.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
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
|
@@ -916,6 +916,14 @@ module Google
|
|
|
916
916
|
# @return [String]
|
|
917
917
|
attr_accessor :generation_failure_reason
|
|
918
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
|
+
|
|
919
927
|
# Output only. The root cause of the most recent import failure. Only present if
|
|
920
928
|
# state is IMPORT_FAILED.
|
|
921
929
|
# Corresponds to the JSON property `importFailureReason`
|
|
@@ -959,6 +967,16 @@ module Google
|
|
|
959
967
|
# @return [String]
|
|
960
968
|
attr_accessor :state
|
|
961
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
|
+
|
|
962
980
|
def initialize(**args)
|
|
963
981
|
update!(**args)
|
|
964
982
|
end
|
|
@@ -974,6 +992,7 @@ module Google
|
|
|
974
992
|
@external_protection_level_options = args[:external_protection_level_options] if args.key?(:external_protection_level_options)
|
|
975
993
|
@generate_time = args[:generate_time] if args.key?(:generate_time)
|
|
976
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)
|
|
977
996
|
@import_failure_reason = args[:import_failure_reason] if args.key?(:import_failure_reason)
|
|
978
997
|
@import_job = args[:import_job] if args.key?(:import_job)
|
|
979
998
|
@import_time = args[:import_time] if args.key?(:import_time)
|
|
@@ -981,6 +1000,7 @@ module Google
|
|
|
981
1000
|
@protection_level = args[:protection_level] if args.key?(:protection_level)
|
|
982
1001
|
@reimport_eligible = args[:reimport_eligible] if args.key?(:reimport_eligible)
|
|
983
1002
|
@state = args[:state] if args.key?(:state)
|
|
1003
|
+
@trusted_wrapping_enabled = args[:trusted_wrapping_enabled] if args.key?(:trusted_wrapping_enabled)
|
|
984
1004
|
end
|
|
985
1005
|
end
|
|
986
1006
|
|
|
@@ -1584,6 +1604,43 @@ module Google
|
|
|
1584
1604
|
end
|
|
1585
1605
|
end
|
|
1586
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
|
+
|
|
1587
1644
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
|
1588
1645
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
|
1589
1646
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
|
@@ -1644,14 +1701,23 @@ module Google
|
|
|
1644
1701
|
class ExternalProtectionLevelOptions
|
|
1645
1702
|
include Google::Apis::Core::Hashable
|
|
1646
1703
|
|
|
1647
|
-
# The
|
|
1648
|
-
#
|
|
1649
|
-
#
|
|
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.
|
|
1650
1715
|
# Corresponds to the JSON property `ekmConnectionKeyPath`
|
|
1651
1716
|
# @return [String]
|
|
1652
1717
|
attr_accessor :ekm_connection_key_path
|
|
1653
1718
|
|
|
1654
|
-
# The URI for an external resource that this CryptoKeyVersion
|
|
1719
|
+
# Optional. The URI for an external resource that this CryptoKeyVersion
|
|
1720
|
+
# represents.
|
|
1655
1721
|
# Corresponds to the JSON property `externalKeyUri`
|
|
1656
1722
|
# @return [String]
|
|
1657
1723
|
attr_accessor :external_key_uri
|
|
@@ -1662,6 +1728,7 @@ module Google
|
|
|
1662
1728
|
|
|
1663
1729
|
# Update properties of this object
|
|
1664
1730
|
def update!(**args)
|
|
1731
|
+
@ekm_connection_backend_override = args[:ekm_connection_backend_override] if args.key?(:ekm_connection_backend_override)
|
|
1665
1732
|
@ekm_connection_key_path = args[:ekm_connection_key_path] if args.key?(:ekm_connection_key_path)
|
|
1666
1733
|
@external_key_uri = args[:external_key_uri] if args.key?(:external_key_uri)
|
|
1667
1734
|
end
|
|
@@ -1765,6 +1832,15 @@ module Google
|
|
|
1765
1832
|
# @return [String]
|
|
1766
1833
|
attr_accessor :rsa_aes_wrapped_key
|
|
1767
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
|
+
|
|
1768
1844
|
# Optional. The wrapped key material to import. Before wrapping, key material
|
|
1769
1845
|
# must be formatted. If importing symmetric key material, the expected key
|
|
1770
1846
|
# material format is plain bytes. If importing asymmetric key material, the
|
|
@@ -1795,6 +1871,7 @@ module Google
|
|
|
1795
1871
|
@crypto_key_version = args[:crypto_key_version] if args.key?(:crypto_key_version)
|
|
1796
1872
|
@import_job = args[:import_job] if args.key?(:import_job)
|
|
1797
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)
|
|
1798
1875
|
@wrapped_key = args[:wrapped_key] if args.key?(:wrapped_key)
|
|
1799
1876
|
end
|
|
1800
1877
|
end
|
|
@@ -1913,6 +1990,56 @@ module Google
|
|
|
1913
1990
|
end
|
|
1914
1991
|
end
|
|
1915
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
|
+
|
|
1916
2043
|
# Represents the configuration of a protection level for a project's Key Access
|
|
1917
2044
|
# Justifications enrollment.
|
|
1918
2045
|
class KeyAccessJustificationsEnrollmentConfig
|
|
@@ -3737,11 +3864,21 @@ module Google
|
|
|
3737
3864
|
class ShowEffectiveAutokeyConfigResponse
|
|
3738
3865
|
include Google::Apis::Core::Hashable
|
|
3739
3866
|
|
|
3740
|
-
# Name of the key project configured in the
|
|
3867
|
+
# Name of the key project configured in the ancestry of the project or folder.
|
|
3741
3868
|
# Corresponds to the JSON property `keyProject`
|
|
3742
3869
|
# @return [String]
|
|
3743
3870
|
attr_accessor :key_project
|
|
3744
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
|
+
|
|
3745
3882
|
def initialize(**args)
|
|
3746
3883
|
update!(**args)
|
|
3747
3884
|
end
|
|
@@ -3749,6 +3886,8 @@ module Google
|
|
|
3749
3886
|
# Update properties of this object
|
|
3750
3887
|
def update!(**args)
|
|
3751
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)
|
|
3752
3891
|
end
|
|
3753
3892
|
end
|
|
3754
3893
|
|
|
@@ -3835,7 +3974,7 @@ module Google
|
|
|
3835
3974
|
|
|
3836
3975
|
# Optional. Immutable. Indicates whether key portability is enabled for the
|
|
3837
3976
|
# SingleTenantHsmInstance. This can only be set at creation time. Key
|
|
3838
|
-
# portability features are disabled by default
|
|
3977
|
+
# portability features are disabled by default.
|
|
3839
3978
|
# Corresponds to the JSON property `keyPortabilityEnabled`
|
|
3840
3979
|
# @return [Boolean]
|
|
3841
3980
|
attr_accessor :key_portability_enabled
|
|
@@ -3992,6 +4131,12 @@ module Google
|
|
|
3992
4131
|
# @return [String]
|
|
3993
4132
|
attr_accessor :ttl
|
|
3994
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
|
+
|
|
3995
4140
|
def initialize(**args)
|
|
3996
4141
|
update!(**args)
|
|
3997
4142
|
end
|
|
@@ -4015,6 +4160,28 @@ module Google
|
|
|
4015
4160
|
@required_action_quorum_parameters = args[:required_action_quorum_parameters] if args.key?(:required_action_quorum_parameters)
|
|
4016
4161
|
@state = args[:state] if args.key?(:state)
|
|
4017
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)
|
|
4018
4185
|
end
|
|
4019
4186
|
end
|
|
4020
4187
|
|
|
@@ -4116,6 +4283,33 @@ module Google
|
|
|
4116
4283
|
end
|
|
4117
4284
|
end
|
|
4118
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
|
+
|
|
4119
4313
|
# Response message for EkmService.VerifyConnectivity.
|
|
4120
4314
|
class VerifyConnectivityResponse
|
|
4121
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
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
|
|
@@ -115,6 +115,40 @@ module Google
|
|
|
115
115
|
execute_or_queue_command(command, &block)
|
|
116
116
|
end
|
|
117
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
|
+
|
|
118
152
|
# Updates the AutokeyConfig for a folder or a project. The caller must have both
|
|
119
153
|
# `cloudkms.autokeyConfigs.update` permission on the parent folder and `cloudkms.
|
|
120
154
|
# cryptoKeys.setIamPolicy` permission on the provided key project. A KeyHandle
|
|
@@ -329,11 +363,13 @@ module Google
|
|
|
329
363
|
execute_or_queue_command(command, &block)
|
|
330
364
|
end
|
|
331
365
|
|
|
332
|
-
# 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.
|
|
333
368
|
# @param [String] parent
|
|
334
|
-
# Required. Name of the resource project to the
|
|
335
|
-
# configuration for. This may be helpful for interrogating the
|
|
336
|
-
# 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`
|
|
337
373
|
# @param [String] fields
|
|
338
374
|
# Selector specifying which fields to include in a partial response.
|
|
339
375
|
# @param [String] quota_user
|
|
@@ -1498,6 +1534,11 @@ module Google
|
|
|
1498
1534
|
# If set to true, the request will create a CryptoKey without any
|
|
1499
1535
|
# CryptoKeyVersions. You must manually call CreateCryptoKeyVersion or
|
|
1500
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.
|
|
1501
1542
|
# @param [String] fields
|
|
1502
1543
|
# Selector specifying which fields to include in a partial response.
|
|
1503
1544
|
# @param [String] quota_user
|
|
@@ -1515,7 +1556,7 @@ module Google
|
|
|
1515
1556
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1516
1557
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1517
1558
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1518
|
-
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)
|
|
1519
1560
|
command = make_simple_command(:post, 'v1/{+parent}/cryptoKeys', options)
|
|
1520
1561
|
command.request_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
|
|
1521
1562
|
command.request_object = crypto_key_object
|
|
@@ -1524,6 +1565,7 @@ module Google
|
|
|
1524
1565
|
command.params['parent'] = parent unless parent.nil?
|
|
1525
1566
|
command.query['cryptoKeyId'] = crypto_key_id unless crypto_key_id.nil?
|
|
1526
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?
|
|
1527
1569
|
command.query['fields'] = fields unless fields.nil?
|
|
1528
1570
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1529
1571
|
execute_or_queue_command(command, &block)
|
|
@@ -2121,6 +2163,44 @@ module Google
|
|
|
2121
2163
|
execute_or_queue_command(command, &block)
|
|
2122
2164
|
end
|
|
2123
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
|
+
|
|
2124
2204
|
# Returns metadata for a given CryptoKeyVersion.
|
|
2125
2205
|
# @param [String] name
|
|
2126
2206
|
# Required. The name of the CryptoKeyVersion to get.
|
|
@@ -2227,6 +2307,44 @@ module Google
|
|
|
2227
2307
|
execute_or_queue_command(command, &block)
|
|
2228
2308
|
end
|
|
2229
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
|
+
|
|
2230
2348
|
# Lists CryptoKeyVersions.
|
|
2231
2349
|
# @param [String] parent
|
|
2232
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:
|