GoogleApi.Compute.V1.Model.Reservation (google_api_compute v0.37.0) View Source

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. (== resource_for {$api_version}.reservations ==)

Attributes

  • commitment (type: String.t, default: nil) - [Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
  • creationTimestamp (type: String.t, default: nil) - [Output Only] Creation timestamp in RFC3339 text format.
  • description (type: String.t, default: nil) - An optional description of this resource. Provide this property when you create the resource.
  • id (type: String.t, default: nil) - [Output Only] The unique identifier for the resource. This identifier is defined by the server.
  • kind (type: String.t, default: compute#reservation) - [Output Only] Type of the resource. Always compute#reservations for reservations.
  • name (type: String.t, default: nil) - 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.
  • satisfiesPzs (type: boolean(), default: nil) - [Output Only] Reserved for future use.
  • selfLink (type: String.t, default: nil) - [Output Only] Server-defined fully-qualified URL for this resource.
  • specificReservation (type: GoogleApi.Compute.V1.Model.AllocationSpecificSKUReservation.t, default: nil) - Reservation for instances with specific machine shapes.
  • specificReservationRequired (type: boolean(), default: nil) - 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.
  • status (type: String.t, default: nil) - [Output Only] The status of the reservation.
  • zone (type: String.t, default: nil) - Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Compute.V1.Model.Reservation{
  commitment: String.t() | nil,
  creationTimestamp: String.t() | nil,
  description: String.t() | nil,
  id: String.t() | nil,
  kind: String.t() | nil,
  name: String.t() | nil,
  satisfiesPzs: boolean() | nil,
  selfLink: String.t() | nil,
  specificReservation:
    GoogleApi.Compute.V1.Model.AllocationSpecificSKUReservation.t() | nil,
  specificReservationRequired: boolean() | nil,
  status: String.t() | nil,
  zone: String.t() | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.