Class ProtectedResource (0.2.5)

ProtectedResource(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Metadata about a resource protected by a Cloud KMS key.

Attributes

NameDescription
name str
The full resource name of the resource. Example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1.
project str
Format: projects/{PROJECT_NUMBER}.
project_id str
The ID of the project that owns the resource.
cloud_product str
The Cloud product that owns the resource. Example: compute
resource_type str
Example: compute.googleapis.com/Disk
location str
Location can be global, regional like us-east1, or zonal like us-west1-b.
labels MutableMapping[str, str]
A key-value pair of the resource's labels (v1) to their values.
crypto_key_version str
The name of the Cloud KMS CryptoKeyVersion __ used to protect this resource via CMEK. This field is empty if the Google Cloud product owning the resource does not provide key version data to Asset Inventory. If there are multiple key versions protecting the resource, then this is same value as the first element of crypto_key_versions.
crypto_key_versions MutableSequence[str]
The names of the Cloud KMS CryptoKeyVersion __ used to protect this resource via CMEK. This field is empty if the Google Cloud product owning the resource does not provide key versions data to Asset Inventory. The first element of this field is stored in crypto_key_version.
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. The time at which this resource was created. The granularity is in seconds. Timestamp.nanos will always be 0.

Classes

LabelsEntry

LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.