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.
Implements
IMessageProtectedResource, IEquatableProtectedResource, IDeepCloneableProtectedResource, IBufferMessage, IMessageNamespace
Google.Cloud.Kms.Inventory.V1Assembly
Google.Cloud.Kms.Inventory.V1.dll
Constructors
ProtectedResource()
public ProtectedResource()
ProtectedResource(ProtectedResource)
public ProtectedResource(ProtectedResource other)
Parameter | |
---|---|
Name | Description |
other | ProtectedResource |
Properties
CloudProduct
public string CloudProduct { get; set; }
The Cloud product that owns the resource.
Example: compute
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
string |
CryptoKeyVersionAsCryptoKeyVersionName
public CryptoKeyVersionName CryptoKeyVersionAsCryptoKeyVersionName { get; set; }
CryptoKeyVersionName-typed view over the CryptoKeyVersion resource name property.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
RepeatedFieldstring |
CryptoKeyVersionsAsCryptoKeyVersionNames
public ResourceNameList<CryptoKeyVersionName> CryptoKeyVersionsAsCryptoKeyVersionNames { get; }
CryptoKeyVersionName-typed view over the CryptoKeyVersions resource name property.
Property Value | |
---|---|
Type | Description |
ResourceNameListCryptoKeyVersionName |
Labels
public MapField<string, string> Labels { get; }
A key-value pair of the resource's labels (v1) to their values.
Property Value | |
---|---|
Type | Description |
MapFieldstringstring |
Location
public string Location { get; set; }
Location can be global
, regional like us-east1
, or zonal like
us-west1-b
.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
string |
Project
public string Project { get; set; }
Format: projects/{PROJECT_NUMBER}
.
Property Value | |
---|---|
Type | Description |
string |
ProjectId
public string ProjectId { get; set; }
The ID of the project that owns the resource.
Property Value | |
---|---|
Type | Description |
string |
ResourceName
public IResourceName ResourceName { get; set; }
IResourceName-typed view over the Name resource name property.
Property Value | |
---|---|
Type | Description |
IResourceName |
ResourceType
public string ResourceType { get; set; }
Example: compute.googleapis.com/Disk
Property Value | |
---|---|
Type | Description |
string |