google_api_compute v0.2.0 GoogleApi.Compute.V1.Model.Commitment View Source

Represents a Commitment resource. Creating a Commitment resource means that you are purchasing a committed use contract with an explicit start and end time. You can create commitments based on vCPUs and memory usage and receive discounted rates. For full details, read Signing Up for Committed Use Discounts. Committed use discounts are subject to Google Cloud Platform's Service Specific Terms. By purchasing a committed use discount, you agree to these terms. Committed use discounts will not renew, so you must purchase a new commitment to continue receiving discounts. (== resource_for beta.commitments ==) (== resource_for v1.commitments ==)

Attributes

  • creationTimestamp (String.t): [Output Only] Creation timestamp in RFC3339 text format. Defaults to: null.
  • description (String.t): An optional description of this resource. Provide this property when you create the resource. Defaults to: null.
  • endTimestamp (String.t): [Output Only] Commitment end time in RFC3339 text format. Defaults to: null.
  • id (String.t): [Output Only] The unique identifier for the resource. This identifier is defined by the server. Defaults to: null.
  • kind (String.t): [Output Only] Type of the resource. Always compute#commitment for commitments. Defaults to: null.
  • name (String.t): Name of the resource. Provided by the client when the resource is created. The 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?` 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. Defaults to: null.
  • plan (String.t): The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years). Defaults to: null.

    • Enum - one of [INVALID, THIRTY_SIX_MONTH, TWELVE_MONTH]
  • region (String.t): [Output Only] URL of the region where this commitment may be used. Defaults to: null.
  • resources ([ResourceCommitment]): A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together. Defaults to: null.
  • selfLink (String.t): [Output Only] Server-defined URL for the resource. Defaults to: null.
  • startTimestamp (String.t): [Output Only] Commitment start time in RFC3339 text format. Defaults to: null.
  • status (String.t): [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED. Defaults to: null.

    • Enum - one of [ACTIVE, CREATING, EXPIRED, NOT_YET_ACTIVE]
  • statusMessage (String.t): [Output Only] An optional, human-readable explanation of the status. Defaults to: null.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields

Link to this section Types

Link to this type t() View Source
t() :: %GoogleApi.Compute.V1.Model.Commitment{
  creationTimestamp: any(),
  description: any(),
  endTimestamp: any(),
  id: any(),
  kind: any(),
  name: any(),
  plan: any(),
  region: any(),
  resources: [GoogleApi.Compute.V1.Model.ResourceCommitment.t()],
  selfLink: any(),
  startTimestamp: any(),
  status: any(),
  statusMessage: any()
}

Link to this section Functions

Link to this function decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.