Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ class View(proto.Enum):
class Parameter(proto.Message):
r"""Message describing Parameter resource

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes:
name (str):
Identifier. [Output only] The resource name of the Parameter
Expand All @@ -108,6 +110,15 @@ class Parameter(proto.Message):
policy_member (google.iam.v1.resource_policy_member_pb2.ResourcePolicyMember):
Output only. [Output-only] policy member strings of a Google
Cloud resource.
kms_key (str):
Optional. Customer managed encryption key (CMEK) to use for
encrypting the Parameter Versions. If not set, the default
Google-managed encryption key will be used. Cloud KMS
CryptoKeys must reside in the same location as the
Parameter. The expected format is
``projects/*/locations/*/keyRings/*/cryptoKeys/*``.

This field is a member of `oneof`_ ``_kms_key``.
"""

name: str = proto.Field(
Expand Down Expand Up @@ -139,6 +150,11 @@ class Parameter(proto.Message):
number=6,
message=resource_policy_member_pb2.ResourcePolicyMember,
)
kms_key: str = proto.Field(
proto.STRING,
number=7,
optional=True,
)


class ListParametersRequest(proto.Message):
Expand Down Expand Up @@ -380,6 +396,8 @@ class DeleteParameterRequest(proto.Message):
class ParameterVersion(proto.Message):
r"""Message describing ParameterVersion resource

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes:
name (str):
Identifier. [Output only] The resource name of the
Expand All @@ -403,6 +421,14 @@ class ParameterVersion(proto.Message):
ParameterVersion resource. This is only
returned when the request provides the View
value of FULL (default for GET request).
kms_key_version (str):
Optional. Output only. [Output only] The resource name of
the KMS key version used to encrypt the ParameterVersion
payload. This field is populated only if the Parameter
resource has customer managed encryption key (CMEK)
configured.

This field is a member of `oneof`_ ``_kms_key_version``.
"""

name: str = proto.Field(
Expand All @@ -428,6 +454,11 @@ class ParameterVersion(proto.Message):
number=5,
message="ParameterVersionPayload",
)
kms_key_version: str = proto.Field(
proto.STRING,
number=6,
optional=True,
)


class ParameterVersionPayload(proto.Message):
Expand Down Expand Up @@ -577,7 +608,7 @@ class RenderParameterVersionResponse(proto.Message):
(ParameterVersionPayload) which has
substitutions of all (if any) references to a
SecretManager SecretVersion resources. This
substituion only works for a Parameter which is
substitution only works for a Parameter which is
in JSON or YAML format.
"""

Expand Down
Loading