Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Reservation

import type { Reservation } from "https://googleapis.deno.dev/v1/compute:v1.ts";

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.

interface Reservation {
advancedDeploymentControl?: ReservationAdvancedDeploymentControl;
aggregateReservation?: AllocationAggregateReservation;
readonly commitment?: string;
readonly creationTimestamp?: string;
deleteAfterDuration?: Duration;
deleteAtTime?: string;
deploymentType?: "DENSE" | "DEPLOYMENT_TYPE_UNSPECIFIED";
description?: string;
enableEmergentMaintenance?: boolean;
readonly id?: bigint;
readonly kind?: string;
readonly linkedCommitments?: string[];
name?: string;
protectionTier?: "CAPACITY_OPTIMIZED" | "PROTECTION_TIER_UNSPECIFIED" | "STANDARD";
reservationSharingPolicy?: AllocationReservationSharingPolicy;
resourcePolicies?: {
[key: string]: string;
}
;
readonly resourceStatus?: AllocationResourceStatus;
readonly satisfiesPzs?: boolean;
schedulingType?: "GROUPED" | "GROUP_MAINTENANCE_TYPE_UNSPECIFIED" | "INDEPENDENT";
readonly selfLink?: string;
shareSettings?: ShareSettings;
specificReservation?: AllocationSpecificSKUReservation;
specificReservationRequired?: boolean;
readonly status?:
| "CREATING"
| "DELETING"
| "INVALID"
| "READY"
| "UPDATING";
zone?: string;
}

§Properties

§
advancedDeploymentControl?: ReservationAdvancedDeploymentControl
[src]

Advanced control for cluster management, applicable only to DENSE deployment type reservations.

§

Reservation for aggregated resources, providing shape flexibility.

§
readonly commitment?: string
[src]

Output only. [Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.

§
readonly creationTimestamp?: string
[src]

Output only. [Output Only] Creation timestamp inRFC3339 text format.

§
deleteAfterDuration?: Duration
[src]

Duration time relative to reservation creation when Compute Engine will automatically delete this resource.

§
deleteAtTime?: string
[src]

Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented inRFC3339 text format.

§
deploymentType?: "DENSE" | "DEPLOYMENT_TYPE_UNSPECIFIED"
[src]

Specifies the deployment strategy for this reservation.

§
description?: string
[src]

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

§
enableEmergentMaintenance?: boolean
[src]

Indicates whether Compute Engine allows unplanned maintenance for your VMs; for example, to fix hardware errors.

§
readonly id?: bigint
[src]

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

§
readonly kind?: string
[src]

Output only. [Output Only] Type of the resource. Alwayscompute#reservations for reservations.

§
readonly linkedCommitments?: string[]
[src]

Output only. [Output Only] Full or partial URL to parent commitments. This field displays for reservations that are tied to multiple commitments.

§
name?: string
[src]

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.

§
protectionTier?: "CAPACITY_OPTIMIZED" | "PROTECTION_TIER_UNSPECIFIED" | "STANDARD"
[src]

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).

§
reservationSharingPolicy?: AllocationReservationSharingPolicy
[src]

Specify the reservation sharing policy. If unspecified, the reservation will not be shared with Google Cloud managed services.

§
resourcePolicies?: {
[key: string]: string;
}
[src]

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.

§
readonly resourceStatus?: AllocationResourceStatus
[src]

Output only. [Output Only] Status information for Reservation resource.

§
readonly satisfiesPzs?: boolean
[src]

Output only. [Output Only] Reserved for future use.

§
schedulingType?: "GROUPED" | "GROUP_MAINTENANCE_TYPE_UNSPECIFIED" | "INDEPENDENT"
[src]

The type of maintenance for the reservation.

§
shareSettings?: ShareSettings
[src]

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.

§

Reservation for instances with specific machine shapes.

§
specificReservationRequired?: boolean
[src]

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.

§
readonly status?: "CREATING" | "DELETING" | "INVALID" | "READY" | "UPDATING"
[src]

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.

§
zone?: string
[src]

Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment.