Compute Engine v1 API - Class Reservation (2.4.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

Google.Cloud.Compute.V1

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
Boolean

HasCreationTimestamp

public bool HasCreationTimestamp { get; }

Gets whether the "creation_timestamp" field is set

Property Value
TypeDescription
Boolean

HasDescription

public bool HasDescription { get; }

Gets whether the "description" field is set

Property Value
TypeDescription
Boolean

HasId

public bool HasId { get; }

Gets whether the "id" field is set

Property Value
TypeDescription
Boolean

HasKind

public bool HasKind { get; }

Gets whether the "kind" field is set

Property Value
TypeDescription
Boolean

HasName

public bool HasName { get; }

Gets whether the "name" field is set

Property Value
TypeDescription
Boolean

HasSatisfiesPzs

public bool HasSatisfiesPzs { get; }

Gets whether the "satisfies_pzs" field is set

Property Value
TypeDescription
Boolean
public bool HasSelfLink { get; }

Gets whether the "self_link" field is set

Property Value
TypeDescription
Boolean

HasSpecificReservationRequired

public bool HasSpecificReservationRequired { get; }

Gets whether the "specific_reservation_required" field is set

Property Value
TypeDescription
Boolean

HasStatus

public bool HasStatus { get; }

Gets whether the "status" field is set

Property Value
TypeDescription
Boolean

HasZone

public bool HasZone { get; }

Gets whether the "zone" field is set

Property Value
TypeDescription
Boolean

Id

public ulong Id { get; set; }

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

Property Value
TypeDescription
UInt64

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

SatisfiesPzs

public bool SatisfiesPzs { get; set; }

[Output Only] Reserved for future use.

Property Value
TypeDescription
Boolean
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
Boolean

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