Reference documentation and code samples for the Google Cloud KMS Inventory V1 Client class ProtectedResource.
Metadata about a resource protected by a Cloud KMS key.
Generated from protobuf message google.cloud.kms.inventory.v1.ProtectedResource
Namespace
Google \ Cloud \ Kms \ Inventory \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
The full resource name of the resource. Example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
.
↳ project
string
Format: projects/{PROJECT_NUMBER}
.
↳ project_id
string
The ID of the project that owns the resource.
↳ cloud_product
string
The Cloud product that owns the resource. Example: compute
↳ resource_type
string
Example: compute.googleapis.com/Disk
↳ location
string
Location can be global
, regional like us-east1
, or zonal like us-west1-b
.
↳ labels
array| Google\Protobuf\Internal\MapField
A key-value pair of the resource's labels (v1) to their values.
↳ crypto_key_version
string
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
array
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
Output only. The time at which this resource was created. The granularity is in seconds. Timestamp.nanos will always be 0.
getName
The full resource name of the resource.
Example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
.
string
setName
The full resource name of the resource.
Example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
.
var
string
$this
getProject
Format: projects/{PROJECT_NUMBER}
.
string
setProject
Format: projects/{PROJECT_NUMBER}
.
var
string
$this
getProjectId
The ID of the project that owns the resource.
string
setProjectId
The ID of the project that owns the resource.
var
string
$this
getCloudProduct
The Cloud product that owns the resource.
Example: compute
string
setCloudProduct
The Cloud product that owns the resource.
Example: compute
var
string
$this
getResourceType
Example: compute.googleapis.com/Disk
string
setResourceType
Example: compute.googleapis.com/Disk
var
string
$this
getLocation
Location can be global
, regional like us-east1
, or zonal like us-west1-b
.
string
setLocation
Location can be global
, regional like us-east1
, or zonal like us-west1-b
.
var
string
$this
getLabels
A key-value pair of the resource's labels (v1) to their values.
setLabels
A key-value pair of the resource's labels (v1) to their values.
$this
getCryptoKeyVersion
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.
string
setCryptoKeyVersion
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.
var
string
$this
getCryptoKeyVersions
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.
setCryptoKeyVersions
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.
var
string[]
$this
getCreateTime
Output only. The time at which this resource was created. The granularity is in seconds. Timestamp.nanos will always be 0.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The time at which this resource was created. The granularity is in seconds. Timestamp.nanos will always be 0.
$this