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.v1.Data
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class Reservation : IDirectResponseSchema
Properties
AdvancedDeploymentControl
Advanced control for cluster management, applicable only to DENSE deployment type reservations.
Declaration
[JsonProperty("advancedDeploymentControl")]
public virtual ReservationAdvancedDeploymentControl AdvancedDeploymentControl { get; set; }
Property Value
| Type | Description |
|---|---|
| ReservationAdvancedDeploymentControl |
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. [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. [Output Only] Creation timestamp inRFC3339 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 inRFC3339 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 |
EnableEmergentMaintenance
Indicates whether Compute Engine allows unplanned maintenance for your VMs; for example, to fix hardware errors.
Declaration
[JsonProperty("enableEmergentMaintenance")]
public virtual bool? EnableEmergentMaintenance { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
Id
Output only. [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? |
Kind
Output only. [Output Only] Type of the resource. Alwayscompute#reservations for reservations.
Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
LinkedCommitments
Output only. [Output Only] Full or partial URL to parent commitments. This field displays for reservations that are tied to multiple commitments.
Declaration
[JsonProperty("linkedCommitments")]
public virtual IList<string> LinkedCommitments { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<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 withRFC1035. 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 |
ProtectionTier
Protection tier for the workload which specifies the workload expectations in the event of infrastructure failures at data center (e.g. power and/or cooling failures).
Declaration
[JsonProperty("protectionTier")]
public virtual string ProtectionTier { 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. [Output Only] Status information for Reservation resource.
Declaration
[JsonProperty("resourceStatus")]
public virtual AllocationResourceStatus ResourceStatus { get; set; }
Property Value
| Type | Description |
|---|---|
| AllocationResourceStatus |
SatisfiesPzs
Output only. [Output Only] Reserved for future use.
Declaration
[JsonProperty("satisfiesPzs")]
public virtual bool? SatisfiesPzs { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
SchedulingType
The type of maintenance for the reservation.
Declaration
[JsonProperty("schedulingType")]
public virtual string SchedulingType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SelfLink
Output only. [Output Only] Server-defined fully-qualified URL for this resource.
Declaration
[JsonProperty("selfLink")]
public virtual string SelfLink { 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. [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 |