Compute Engine v1 API - Class Reservation (2.9.0)

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

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

Represents a reservation resource. A reservation ensures that capacity is held in a specific zone even if the reserved VMs are not running. For more information, read Reserving zonal resources.

Inheritance

object > Reservation

Namespace

GoogleCloudGoogle.Cloud.ComputeV1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

Reservation()

public Reservation()

Reservation(Reservation)

public Reservation(Reservation other)
Parameter
NameDescription
otherReservation

Properties

Commitment

public string Commitment { get; set; }

[Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.

Property Value
TypeDescription
string

CreationTimestamp

public string CreationTimestamp { get; set; }

[Output Only] Creation timestamp in RFC3339 text format.

Property Value
TypeDescription
string

Description

public string Description { get; set; }

An optional description of this resource. Provide this property when you create the resource.

Property Value
TypeDescription
string

HasCommitment

public bool HasCommitment { get; }

Gets whether the "commitment" field is set

Property Value
TypeDescription
bool

HasCreationTimestamp

public bool HasCreationTimestamp { get; }

Gets whether the "creation_timestamp" field is set

Property Value
TypeDescription
bool

HasDescription

public bool HasDescription { get; }

Gets whether the "description" field is set

Property Value
TypeDescription
bool

HasId

public bool HasId { get; }

Gets whether the "id" field is set

Property Value
TypeDescription
bool

HasKind

public bool HasKind { get; }

Gets whether the "kind" field is set

Property Value
TypeDescription
bool

HasName

public bool HasName { get; }

Gets whether the "name" field is set

Property Value
TypeDescription
bool

HasSatisfiesPzs

public bool HasSatisfiesPzs { get; }

Gets whether the "satisfies_pzs" field is set

Property Value
TypeDescription
bool
public bool HasSelfLink { get; }

Gets whether the "self_link" field is set

Property Value
TypeDescription
bool

HasSpecificReservationRequired

public bool HasSpecificReservationRequired { get; }

Gets whether the "specific_reservation_required" field is set

Property Value
TypeDescription
bool

HasStatus

public bool HasStatus { get; }

Gets whether the "status" field is set

Property Value
TypeDescription
bool

HasZone

public bool HasZone { get; }

Gets whether the "zone" field is set

Property Value
TypeDescription
bool

Id

public ulong Id { get; set; }

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

Property Value
TypeDescription
ulong

Kind

public string Kind { get; set; }

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

Property Value
TypeDescription
string

Name

public string Name { get; set; }

The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

Property Value
TypeDescription
string

ResourcePolicies

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

Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation.

Property Value
TypeDescription
MapFieldstringstring

ResourceStatus

public AllocationResourceStatus ResourceStatus { get; set; }

[Output Only] Status information for Reservation resource.

Property Value
TypeDescription
AllocationResourceStatus

SatisfiesPzs

public bool SatisfiesPzs { get; set; }

[Output Only] Reserved for future use.

Property Value
TypeDescription
bool
public string SelfLink { get; set; }

[Output Only] Server-defined fully-qualified URL for this resource.

Property Value
TypeDescription
string

ShareSettings

public ShareSettings ShareSettings { get; set; }

Specify share-settings to create a shared reservation. This property is optional. For more information about the syntax and options for this field and its subfields, see the guide for creating a shared reservation.

Property Value
TypeDescription
ShareSettings

SpecificReservation

public AllocationSpecificSKUReservation SpecificReservation { get; set; }

Reservation for instances with specific machine shapes.

Property Value
TypeDescription
AllocationSpecificSKUReservation

SpecificReservationRequired

public bool SpecificReservationRequired { get; set; }

Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. If the field is set, then only VMs that target the reservation by name can consume from this reservation.

Property Value
TypeDescription
bool

Status

public string Status { get; set; }

[Output Only] The status of the reservation. Check the Status enum for the list of possible values.

Property Value
TypeDescription
string

Zone

public string Zone { get; set; }

Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment.

Property Value
TypeDescription
string