Compute Engine v1 API - Class Reservation (2.17.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
Name Description
other Reservation

Properties

AggregateReservation

public AllocationAggregateReservation AggregateReservation { get; set; }

Reservation for aggregated resources, providing shape flexibility.

Property Value
Type Description
AllocationAggregateReservation

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
Type Description
string

CreationTimestamp

public string CreationTimestamp { get; set; }

[Output Only] Creation timestamp in RFC3339 text format.

Property Value
Type Description
string

Description

public string Description { get; set; }

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

Property Value
Type Description
string

HasCommitment

public bool HasCommitment { get; }

Gets whether the "commitment" field is set

Property Value
Type Description
bool

HasCreationTimestamp

public bool HasCreationTimestamp { get; }

Gets whether the "creation_timestamp" field is set

Property Value
Type Description
bool

HasDescription

public bool HasDescription { get; }

Gets whether the "description" field is set

Property Value
Type Description
bool

HasId

public bool HasId { get; }

Gets whether the "id" 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

HasName

public bool HasName { get; }

Gets whether the "name" field is set

Property Value
Type Description
bool

HasSatisfiesPzs

public bool HasSatisfiesPzs { get; }

Gets whether the "satisfies_pzs" field is set

Property Value
Type Description
bool
public bool HasSelfLink { get; }

Gets whether the "self_link" field is set

Property Value
Type Description
bool

HasSpecificReservationRequired

public bool HasSpecificReservationRequired { get; }

Gets whether the "specific_reservation_required" field is set

Property Value
Type Description
bool

HasStatus

public bool HasStatus { get; }

Gets whether the "status" field is set

Property Value
Type Description
bool

HasZone

public bool HasZone { get; }

Gets whether the "zone" field is set

Property Value
Type Description
bool

Id

public ulong Id { get; set; }

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

Property Value
Type Description
ulong

Kind

public string Kind { get; set; }

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

Property Value
Type Description
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
Type Description
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
Type Description
MapFieldstringstring

ResourceStatus

public AllocationResourceStatus ResourceStatus { get; set; }

[Output Only] Status information for Reservation resource.

Property Value
Type Description
AllocationResourceStatus

SatisfiesPzs

public bool SatisfiesPzs { get; set; }

[Output Only] Reserved for future use.

Property Value
Type Description
bool
public string SelfLink { get; set; }

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

Property Value
Type Description
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
Type Description
ShareSettings

SpecificReservation

public AllocationSpecificSKUReservation SpecificReservation { get; set; }

Reservation for instances with specific machine shapes.

Property Value
Type Description
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
Type Description
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
Type Description
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
Type Description
string