public sealed class Reservation : IMessage<Reservation>, IEquatable<Reservation>, IDeepCloneable<Reservation>, IBufferMessage, IMessage
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.
Implements
IMessage<Reservation>, IEquatable<Reservation>, IDeepCloneable<Reservation>, IBufferMessage, IMessageNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
Reservation()
public Reservation()
Reservation(Reservation)
public Reservation(Reservation other)
Parameter | |
---|---|
Name | Description |
other | Reservation |
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 | |
---|---|
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 |
Boolean |
HasCreationTimestamp
public bool HasCreationTimestamp { get; }
Gets whether the "creation_timestamp" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasDescription
public bool HasDescription { get; }
Gets whether the "description" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasId
public bool HasId { get; }
Gets whether the "id" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasKind
public bool HasKind { get; }
Gets whether the "kind" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasName
public bool HasName { get; }
Gets whether the "name" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasSatisfiesPzs
public bool HasSatisfiesPzs { get; }
Gets whether the "satisfies_pzs" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasSelfLink
public bool HasSelfLink { get; }
Gets whether the "self_link" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasSpecificReservationRequired
public bool HasSpecificReservationRequired { get; }
Gets whether the "specific_reservation_required" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasStatus
public bool HasStatus { get; }
Gets whether the "status" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasZone
public bool HasZone { get; }
Gets whether the "zone" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
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 |
UInt64 |
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 |
SatisfiesPzs
public bool SatisfiesPzs { get; set; }
[Output Only] Reserved for future use.
Property Value | |
---|---|
Type | Description |
Boolean |
SelfLink
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; }
Share-settings for 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 |
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 | |
---|---|
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 |