KMS Inventory V1 API - Class Google::Cloud::Kms::Inventory::V1::ProtectedResource (v0.4.0)

Reference documentation and code samples for the KMS Inventory V1 API class Google::Cloud::Kms::Inventory::V1::ProtectedResource.

Metadata about a resource protected by a Cloud KMS key.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#cloud_product

def cloud_product() -> ::String
Returns
  • (::String) — The Cloud product that owns the resource. Example: compute

#cloud_product=

def cloud_product=(value) -> ::String
Parameter
  • value (::String) — The Cloud product that owns the resource. Example: compute
Returns
  • (::String) — The Cloud product that owns the resource. Example: compute

#create_time

def create_time() -> ::Google::Protobuf::Timestamp
Returns
  • (::Google::Protobuf::Timestamp) — Output only. The time at which this resource was created. The granularity is in seconds. Timestamp.nanos will always be 0.

#crypto_key_version

def crypto_key_version() -> ::String
Returns
  • (::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_version=

def crypto_key_version=(value) -> ::String
Parameter
  • value (::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.
Returns
  • (::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

def crypto_key_versions() -> ::Array<::String>
Returns
  • (::Array<::String>) — 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.

#crypto_key_versions=

def crypto_key_versions=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — 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.
Returns
  • (::Array<::String>) — 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.

#labels

def labels() -> ::Google::Protobuf::Map{::String => ::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — A key-value pair of the resource's labels (v1) to their values.

#labels=

def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) — A key-value pair of the resource's labels (v1) to their values.
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — A key-value pair of the resource's labels (v1) to their values.

#location

def location() -> ::String
Returns
  • (::String) — Location can be global, regional like us-east1, or zonal like us-west1-b.

#location=

def location=(value) -> ::String
Parameter
  • value (::String) — Location can be global, regional like us-east1, or zonal like us-west1-b.
Returns
  • (::String) — Location can be global, regional like us-east1, or zonal like us-west1-b.

#name

def name() -> ::String
Returns
  • (::String) — The full resource name of the resource. Example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — The full resource name of the resource. Example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1.
Returns
  • (::String) — The full resource name of the resource. Example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1.

#project

def project() -> ::String
Returns
  • (::String) — Format: projects/{PROJECT_NUMBER}.

#project=

def project=(value) -> ::String
Parameter
  • value (::String) — Format: projects/{PROJECT_NUMBER}.
Returns
  • (::String) — Format: projects/{PROJECT_NUMBER}.

#project_id

def project_id() -> ::String
Returns
  • (::String) — The ID of the project that owns the resource.

#project_id=

def project_id=(value) -> ::String
Parameter
  • value (::String) — The ID of the project that owns the resource.
Returns
  • (::String) — The ID of the project that owns the resource.

#resource_type

def resource_type() -> ::String
Returns
  • (::String) — Example: compute.googleapis.com/Disk

#resource_type=

def resource_type=(value) -> ::String
Parameter
  • value (::String) — Example: compute.googleapis.com/Disk
Returns
  • (::String) — Example: compute.googleapis.com/Disk