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.
Implements
Inherited Members
Namespace: Google.Apis.Compute.alpha.Data
Assembly: Google.Apis.Compute.alpha.dll
Syntax
public class Reservation : IDirectResponseSchema
Properties
AggregateReservation
Reservation for aggregated resources, providing shape flexibility.
Declaration
[JsonProperty("aggregateReservation")]
public virtual AllocationAggregateReservation AggregateReservation { get; set; }
Property Value
Type | Description |
---|---|
AllocationAggregateReservation |
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 |
---|---|
string |
CreationTimestamp
[Output Only] Creation timestamp in RFC3339 text format.
Declaration
[JsonProperty("creationTimestamp")]
public virtual string CreationTimestamp { get; set; }
Property Value
Type | Description |
---|---|
string |
DeleteAfterDuration
Duration time relative to reservation creation when Compute Engine will automatically delete this resource.
Declaration
[JsonProperty("deleteAfterDuration")]
public virtual Duration DeleteAfterDuration { get; set; }
Property Value
Type | Description |
---|---|
Duration |
DeleteAtTime
Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented in RFC3339 text format.
Declaration
[JsonProperty("deleteAtTime")]
public virtual string DeleteAtTime { get; set; }
Property Value
Type | Description |
---|---|
string |
DeploymentType
Specifies the deployment strategy for this reservation.
Declaration
[JsonProperty("deploymentType")]
public virtual string DeploymentType { get; set; }
Property Value
Type | Description |
---|---|
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 |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
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 |
---|---|
ulong? |
InstanceTerminationAction
Instance termination action is invoked when the reservation is deleted. This only applies to reservations with a Deployment type.
Declaration
[JsonProperty("instanceTerminationAction")]
public virtual string InstanceTerminationAction { get; set; }
Property Value
Type | Description |
---|---|
string |
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 |
---|---|
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 |
---|---|
string |
ReservationSharingPolicy
Specify the reservation sharing policy. If unspecified, the reservation will not be shared with Google Cloud managed services.
Declaration
[JsonProperty("reservationSharingPolicy")]
public virtual AllocationReservationSharingPolicy ReservationSharingPolicy { get; set; }
Property Value
Type | Description |
---|---|
AllocationReservationSharingPolicy |
ResourcePolicies
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.
Declaration
[JsonProperty("resourcePolicies")]
public virtual IDictionary<string, string> ResourcePolicies { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> |
ResourceStatus
[Output Only] Status information for Reservation resource.
Declaration
[JsonProperty("resourceStatus")]
public virtual AllocationResourceStatus ResourceStatus { get; set; }
Property Value
Type | Description |
---|---|
AllocationResourceStatus |
SatisfiesPzs
[Output Only] Reserved for future use.
Declaration
[JsonProperty("satisfiesPzs")]
public virtual bool? SatisfiesPzs { get; set; }
Property Value
Type | Description |
---|---|
bool? |
SelfLink
[Output Only] Server-defined fully-qualified URL for this resource.
Declaration
[JsonProperty("selfLink")]
public virtual string SelfLink { get; set; }
Property Value
Type | Description |
---|---|
string |
SelfLinkWithId
[Output Only] Server-defined URL for this resource with the resource id.
Declaration
[JsonProperty("selfLinkWithId")]
public virtual string SelfLinkWithId { get; set; }
Property Value
Type | Description |
---|---|
string |
ShareSettings
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.
Declaration
[JsonProperty("shareSettings")]
public virtual ShareSettings ShareSettings { get; set; }
Property Value
Type | Description |
---|---|
ShareSettings |
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 |
---|---|
bool? |
Status
[Output Only] The status of the reservation. - CREATING: Reservation resources are being allocated. - READY: Reservation resources have been allocated, and the reservation is ready for use. - DELETING: Reservation deletion is in progress. - UPDATING: Reservation update is in progress.
Declaration
[JsonProperty("status")]
public virtual string Status { get; set; }
Property Value
Type | Description |
---|---|
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 |
---|---|
string |