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
Implements
Inherited Members
Namespace: Google.Apis.Compute.v1.Data
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class Reservation : IDirectResponseSchema
Properties
Commitment
[Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
Declaration
[JsonProperty("commitment")]
public virtual string Commitment { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
CreationTimestamp
[Output Only] Creation timestamp in RFC3339 text format.
Declaration
[JsonProperty("creationTimestamp")]
public virtual string CreationTimestamp { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Description
An optional description of this resource. Provide this property when you create the resource.
Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Id
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
Declaration
[JsonProperty("id")]
public virtual ulong? Id { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.UInt64> |
Kind
[Output Only] Type of the resource. Always compute#reservations for reservations.
Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Name
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.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
SatisfiesPzs
[Output Only] Reserved for future use.
Declaration
[JsonProperty("satisfiesPzs")]
public virtual bool? SatisfiesPzs { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
SelfLink
[Output Only] Server-defined fully-qualified URL for this resource.
Declaration
[JsonProperty("selfLink")]
public virtual string SelfLink { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
SpecificReservation
Reservation for instances with specific machine shapes.
Declaration
[JsonProperty("specificReservation")]
public virtual AllocationSpecificSKUReservation SpecificReservation { get; set; }
Property Value
| Type | Description |
|---|---|
| AllocationSpecificSKUReservation |
SpecificReservationRequired
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.
Declaration
[JsonProperty("specificReservationRequired")]
public virtual bool? SpecificReservationRequired { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
Status
[Output Only] The status of the reservation.
Declaration
[JsonProperty("status")]
public virtual string Status { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Zone
Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment.
Declaration
[JsonProperty("zone")]
public virtual string Zone { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |