KMS Inventory v1 API - Class ProtectedResource (1.1.0)

public sealed class ProtectedResource : IMessage<ProtectedResource>, IEquatable<ProtectedResource>, IDeepCloneable<ProtectedResource>, IBufferMessage, IMessage

Reference documentation and code samples for the KMS Inventory v1 API class ProtectedResource.

Metadata about a resource protected by a Cloud KMS key.

Inheritance

object > ProtectedResource

Namespace

Google.Cloud.Kms.Inventory.V1

Assembly

Google.Cloud.Kms.Inventory.V1.dll

Constructors

ProtectedResource()

public ProtectedResource()

ProtectedResource(ProtectedResource)

public ProtectedResource(ProtectedResource other)
Parameter
NameDescription
otherProtectedResource

Properties

CloudProduct

public string CloudProduct { get; set; }

The Cloud product that owns the resource. Example: compute

Property Value
TypeDescription
string

CreateTime

public Timestamp CreateTime { get; set; }

Output only. The time at which this resource was created. The granularity is in seconds. Timestamp.nanos will always be 0.

Property Value
TypeDescription
Timestamp

CryptoKeyVersion

public string CryptoKeyVersion { get; set; }

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.

Property Value
TypeDescription
string

CryptoKeyVersionAsCryptoKeyVersionName

public CryptoKeyVersionName CryptoKeyVersionAsCryptoKeyVersionName { get; set; }

CryptoKeyVersionName-typed view over the CryptoKeyVersion resource name property.

Property Value
TypeDescription
CryptoKeyVersionName

CryptoKeyVersions

public RepeatedField<string> CryptoKeyVersions { get; }

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.

Property Value
TypeDescription
RepeatedFieldstring

CryptoKeyVersionsAsCryptoKeyVersionNames

public ResourceNameList<CryptoKeyVersionName> CryptoKeyVersionsAsCryptoKeyVersionNames { get; }

CryptoKeyVersionName-typed view over the CryptoKeyVersions resource name property.

Property Value
TypeDescription
ResourceNameListCryptoKeyVersionName

Labels

public MapField<string, string> Labels { get; }

A key-value pair of the resource's labels (v1) to their values.

Property Value
TypeDescription
MapFieldstringstring

Location

public string Location { get; set; }

Location can be global, regional like us-east1, or zonal like us-west1-b.

Property Value
TypeDescription
string

Name

public string Name { get; set; }

The full resource name of the resource. Example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1.

Property Value
TypeDescription
string

Project

public string Project { get; set; }

Format: projects/{PROJECT_NUMBER}.

Property Value
TypeDescription
string

ProjectId

public string ProjectId { get; set; }

The ID of the project that owns the resource.

Property Value
TypeDescription
string

ResourceName

public IResourceName ResourceName { get; set; }

IResourceName-typed view over the Name resource name property.

Property Value
TypeDescription
IResourceName

ResourceType

public string ResourceType { get; set; }

Example: compute.googleapis.com/Disk

Property Value
TypeDescription
string