Skip to content

Commit

Permalink
docs: [google-cloud-kms] code documentation improvements (#13366)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 706891520

Source-Link:
googleapis/googleapis@edbf799

Source-Link:
googleapis/googleapis-gen@dfaa238
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWttcy8uT3dsQm90LnlhbWwiLCJoIjoiZGZhYTIzODA0OTA2YTNjZGI2MzIwOGU2NTRhMzc4YzNkOWExZDU4NiJ9

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Victor Chudnovsky <vchudnov@google.com>
  • Loading branch information
3 people authored Dec 18, 2024
1 parent aa99816 commit 0c0f37d
Show file tree
Hide file tree
Showing 13 changed files with 47 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "3.2.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "3.2.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -321,10 +321,11 @@ async def create_key_handle(
triggering the provisioning of a new
[CryptoKey][google.cloud.kms.v1.CryptoKey] for CMEK use with the
given resource type in the configured key project and the same
location. [GetOperation][Operations.GetOperation] should be used
to resolve the resulting long-running operation and get the
resulting [KeyHandle][google.cloud.kms.v1.KeyHandle] and
[CryptoKey][google.cloud.kms.v1.CryptoKey].
location.
[GetOperation][google.longrunning.Operations.GetOperation]
should be used to resolve the resulting long-running operation
and get the resulting [KeyHandle][google.cloud.kms.v1.KeyHandle]
and [CryptoKey][google.cloud.kms.v1.CryptoKey].
.. code-block:: python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -740,10 +740,11 @@ def create_key_handle(
triggering the provisioning of a new
[CryptoKey][google.cloud.kms.v1.CryptoKey] for CMEK use with the
given resource type in the configured key project and the same
location. [GetOperation][Operations.GetOperation] should be used
to resolve the resulting long-running operation and get the
resulting [KeyHandle][google.cloud.kms.v1.KeyHandle] and
[CryptoKey][google.cloud.kms.v1.CryptoKey].
location.
[GetOperation][google.longrunning.Operations.GetOperation]
should be used to resolve the resulting long-running operation
and get the resulting [KeyHandle][google.cloud.kms.v1.KeyHandle]
and [CryptoKey][google.cloud.kms.v1.CryptoKey].
.. code-block:: python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,10 +369,11 @@ def create_key_handle(
triggering the provisioning of a new
[CryptoKey][google.cloud.kms.v1.CryptoKey] for CMEK use with the
given resource type in the configured key project and the same
location. [GetOperation][Operations.GetOperation] should be used
to resolve the resulting long-running operation and get the
resulting [KeyHandle][google.cloud.kms.v1.KeyHandle] and
[CryptoKey][google.cloud.kms.v1.CryptoKey].
location.
[GetOperation][google.longrunning.Operations.GetOperation]
should be used to resolve the resulting long-running operation
and get the resulting [KeyHandle][google.cloud.kms.v1.KeyHandle]
and [CryptoKey][google.cloud.kms.v1.CryptoKey].
Returns:
Callable[[~.CreateKeyHandleRequest],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,10 +378,11 @@ def create_key_handle(
triggering the provisioning of a new
[CryptoKey][google.cloud.kms.v1.CryptoKey] for CMEK use with the
given resource type in the configured key project and the same
location. [GetOperation][Operations.GetOperation] should be used
to resolve the resulting long-running operation and get the
resulting [KeyHandle][google.cloud.kms.v1.KeyHandle] and
[CryptoKey][google.cloud.kms.v1.CryptoKey].
location.
[GetOperation][google.longrunning.Operations.GetOperation]
should be used to resolve the resulting long-running operation
and get the resulting [KeyHandle][google.cloud.kms.v1.KeyHandle]
and [CryptoKey][google.cloud.kms.v1.CryptoKey].
Returns:
Callable[[~.CreateKeyHandleRequest],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ async def sample_get_ekm_connection():
with a
[ProtectionLevel][google.cloud.kms.v1.ProtectionLevel]
of
[EXTERNAL_VPC][CryptoKeyVersion.ProtectionLevel.EXTERNAL_VPC],
[EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC],
as well as performing cryptographic operations using
keys created within the
[EkmConnection][google.cloud.kms.v1.EkmConnection].
Expand Down Expand Up @@ -630,7 +630,7 @@ async def sample_create_ekm_connection():
with a
[ProtectionLevel][google.cloud.kms.v1.ProtectionLevel]
of
[EXTERNAL_VPC][CryptoKeyVersion.ProtectionLevel.EXTERNAL_VPC],
[EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC],
as well as performing cryptographic operations using
keys created within the
[EkmConnection][google.cloud.kms.v1.EkmConnection].
Expand Down Expand Up @@ -761,7 +761,7 @@ async def sample_update_ekm_connection():
with a
[ProtectionLevel][google.cloud.kms.v1.ProtectionLevel]
of
[EXTERNAL_VPC][CryptoKeyVersion.ProtectionLevel.EXTERNAL_VPC],
[EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC],
as well as performing cryptographic operations using
keys created within the
[EkmConnection][google.cloud.kms.v1.EkmConnection].
Expand Down Expand Up @@ -884,7 +884,7 @@ async def sample_get_ekm_config():
with a
[ProtectionLevel][google.cloud.kms.v1.ProtectionLevel]
of
[EXTERNAL_VPC][CryptoKeyVersion.ProtectionLevel.EXTERNAL_VPC]
[EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC]
in a given project and location.
"""
Expand Down Expand Up @@ -1007,7 +1007,7 @@ async def sample_update_ekm_config():
with a
[ProtectionLevel][google.cloud.kms.v1.ProtectionLevel]
of
[EXTERNAL_VPC][CryptoKeyVersion.ProtectionLevel.EXTERNAL_VPC]
[EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC]
in a given project and location.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ def sample_get_ekm_connection():
with a
[ProtectionLevel][google.cloud.kms.v1.ProtectionLevel]
of
[EXTERNAL_VPC][CryptoKeyVersion.ProtectionLevel.EXTERNAL_VPC],
[EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC],
as well as performing cryptographic operations using
keys created within the
[EkmConnection][google.cloud.kms.v1.EkmConnection].
Expand Down Expand Up @@ -1058,7 +1058,7 @@ def sample_create_ekm_connection():
with a
[ProtectionLevel][google.cloud.kms.v1.ProtectionLevel]
of
[EXTERNAL_VPC][CryptoKeyVersion.ProtectionLevel.EXTERNAL_VPC],
[EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC],
as well as performing cryptographic operations using
keys created within the
[EkmConnection][google.cloud.kms.v1.EkmConnection].
Expand Down Expand Up @@ -1186,7 +1186,7 @@ def sample_update_ekm_connection():
with a
[ProtectionLevel][google.cloud.kms.v1.ProtectionLevel]
of
[EXTERNAL_VPC][CryptoKeyVersion.ProtectionLevel.EXTERNAL_VPC],
[EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC],
as well as performing cryptographic operations using
keys created within the
[EkmConnection][google.cloud.kms.v1.EkmConnection].
Expand Down Expand Up @@ -1306,7 +1306,7 @@ def sample_get_ekm_config():
with a
[ProtectionLevel][google.cloud.kms.v1.ProtectionLevel]
of
[EXTERNAL_VPC][CryptoKeyVersion.ProtectionLevel.EXTERNAL_VPC]
[EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC]
in a given project and location.
"""
Expand Down Expand Up @@ -1426,7 +1426,7 @@ def sample_update_ekm_config():
with a
[ProtectionLevel][google.cloud.kms.v1.ProtectionLevel]
of
[EXTERNAL_VPC][CryptoKeyVersion.ProtectionLevel.EXTERNAL_VPC]
[EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC]
in a given project and location.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ def __call__(
with a
[ProtectionLevel][google.cloud.kms.v1.ProtectionLevel]
of
[EXTERNAL_VPC][CryptoKeyVersion.ProtectionLevel.EXTERNAL_VPC],
[EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC],
as well as performing cryptographic operations using
keys created within the
[EkmConnection][google.cloud.kms.v1.EkmConnection].
Expand Down Expand Up @@ -769,7 +769,7 @@ def __call__(
with a
[ProtectionLevel][google.cloud.kms.v1.ProtectionLevel]
of
[EXTERNAL_VPC][CryptoKeyVersion.ProtectionLevel.EXTERNAL_VPC]
[EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC]
in a given project and location.
"""
Expand Down Expand Up @@ -924,7 +924,7 @@ def __call__(
with a
[ProtectionLevel][google.cloud.kms.v1.ProtectionLevel]
of
[EXTERNAL_VPC][CryptoKeyVersion.ProtectionLevel.EXTERNAL_VPC],
[EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC],
as well as performing cryptographic operations using
keys created within the
[EkmConnection][google.cloud.kms.v1.EkmConnection].
Expand Down Expand Up @@ -1227,7 +1227,7 @@ def __call__(
with a
[ProtectionLevel][google.cloud.kms.v1.ProtectionLevel]
of
[EXTERNAL_VPC][CryptoKeyVersion.ProtectionLevel.EXTERNAL_VPC]
[EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC]
in a given project and location.
"""
Expand Down Expand Up @@ -1386,7 +1386,7 @@ def __call__(
with a
[ProtectionLevel][google.cloud.kms.v1.ProtectionLevel]
of
[EXTERNAL_VPC][CryptoKeyVersion.ProtectionLevel.EXTERNAL_VPC],
[EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC],
as well as performing cryptographic operations using
keys created within the
[EkmConnection][google.cloud.kms.v1.EkmConnection].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ class EkmConnection(proto.Message):
[CryptoKeys][google.cloud.kms.v1.CryptoKey] and
[CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] with a
[ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of
[EXTERNAL_VPC][CryptoKeyVersion.ProtectionLevel.EXTERNAL_VPC], as
[EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC], as
well as performing cryptographic operations using keys created
within the [EkmConnection][google.cloud.kms.v1.EkmConnection].
Expand Down Expand Up @@ -412,7 +412,7 @@ class KeyManagementMode(proto.Enum):
- Destruction of external key material associated with this
[EkmConnection][google.cloud.kms.v1.EkmConnection] can be
requested by calling
[DestroyCryptoKeyVersion][EkmService.DestroyCryptoKeyVersion].
[DestroyCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DestroyCryptoKeyVersion].
- Automatic rotation of key material is supported.
"""
KEY_MANAGEMENT_MODE_UNSPECIFIED = 0
Expand Down Expand Up @@ -502,8 +502,8 @@ class EkmConfig(proto.Message):
[CryptoKeys][google.cloud.kms.v1.CryptoKey] and
[CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] with a
[ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of
[EXTERNAL_VPC][CryptoKeyVersion.ProtectionLevel.EXTERNAL_VPC] in a
given project and location.
[EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC] in
a given project and location.
Attributes:
name (str):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class CryptoKey(proto.Message):
[CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion]
have a
[ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of
[EXTERNAL_VPC][CryptoKeyVersion.ProtectionLevel.EXTERNAL_VPC],
[EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC],
with the resource name in the format
``projects/*/locations/*/ekmConnections/*``. Note, this list
is non-exhaustive and may apply to additional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,8 @@ class ImportCryptoKeyVersionRequest(proto.Message):
the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
must be a child of
[ImportCryptoKeyVersionRequest.parent][google.cloud.kms.v1.ImportCryptoKeyVersionRequest.parent],
have been previously created via [ImportCryptoKeyVersion][],
have been previously created via
[ImportCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.ImportCryptoKeyVersion],
and be in
[DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED]
or
Expand Down Expand Up @@ -1614,7 +1615,8 @@ class MacVerifyRequest(proto.Message):
[KeyManagementService][google.cloud.kms.v1.KeyManagementService]
will report an error if the checksum verification fails. If
you receive a checksum error, your client should verify that
CRC32C([MacVerifyRequest.tag][]) is equal to
CRC32C([MacVerifyRequest.mac][google.cloud.kms.v1.MacVerifyRequest.mac])
is equal to
[MacVerifyRequest.mac_crc32c][google.cloud.kms.v1.MacVerifyRequest.mac_crc32c],
and if so, perform a limited number of retries. A persistent
mismatch may indicate an issue in your computation of the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-kms",
"version": "3.2.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down

0 comments on commit 0c0f37d

Please sign in to comment.