public sealed class ResourceMetadata : IMessage<ResourceMetadata>, IEquatable<ResourceMetadata>, IDeepCloneable<ResourceMetadata>, IBufferMessage, IMessageReference documentation and code samples for the Compute Engine v1 API class ResourceMetadata.
Standardized resource metadata common to all compute resources.
Implements
IMessageResourceMetadata, IEquatableResourceMetadata, IDeepCloneableResourceMetadata, IBufferMessage, IMessageNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
ResourceMetadata()
public ResourceMetadata()ResourceMetadata(ResourceMetadata)
public ResourceMetadata(ResourceMetadata other)| Parameter | |
|---|---|
| Name | Description |
other |
ResourceMetadata |
Properties
ApiVersion
public string ApiVersion { get; set; }The version of the API interface that this resource was retrieved through.
For example, "2025-01-01" or "2025-01-01-preview".
| Property Value | |
|---|---|
| Type | Description |
string |
|
HasApiVersion
public bool HasApiVersion { get; }Gets whether the "api_version" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasResourceType
public bool HasResourceType { get; }Gets whether the "resource_type" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
ResourceType
public string ResourceType { get; set; }The canonical resource type name in the format of a resource type
as defined by AIP-123.
For example, "compute.googleapis.com/Instance".
| Property Value | |
|---|---|
| Type | Description |
string |
|