Compute Engine v1 API - Class Metadata (2.16.0)

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

Reference documentation and code samples for the Compute Engine v1 API class Metadata.

A metadata key/value entry.

Inheritance

object > Metadata

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

Metadata()

public Metadata()

Metadata(Metadata)

public Metadata(Metadata other)
Parameter
Name Description
other Metadata

Properties

Fingerprint

public string Fingerprint { get; set; }

Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.

Property Value
Type Description
string

HasFingerprint

public bool HasFingerprint { get; }

Gets whether the "fingerprint" field is set

Property Value
Type Description
bool

HasKind

public bool HasKind { get; }

Gets whether the "kind" field is set

Property Value
Type Description
bool

Items

public RepeatedField<Items> Items { get; }

Array of key/value pairs. The total size of all keys and values must be less than 512 KB.

Property Value
Type Description
RepeatedFieldItems

Kind

public string Kind { get; set; }

[Output Only] Type of the resource. Always compute#metadata for metadata.

Property Value
Type Description
string