Commitment class

Represents a regional 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. (== resource_for {$api_version}.regionCommitments ==)


Commitment.fromJson(Map _json)


category ↔ String
The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified. Possible string values are: [...]
read / write
creationTimestamp ↔ String
Output Only Creation timestamp in RFC3339 text format.
read / write
description ↔ String
An optional description of this resource. Provide this property when you create the resource.
read / write
endTimestamp ↔ String
Output Only Commitment end time in RFC3339 text format.
read / write
hashCode → int
The hash code for this object. [...]
read-only, inherited
id ↔ String
Output Only The unique identifier for the resource. This identifier is defined by the server.
read / write
kind ↔ String
Output Only Type of the resource. Always compute#commitment for commitments.
read / write
licenseResource LicenseResourceCommitment
The license specification required as part of a license commitment.
read / write
name ↔ String
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]([-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.
read / write
plan ↔ String
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). Possible string values are: [...]
read / write
region ↔ String
Output Only URL of the region where this commitment may be used.
read / write
reservations ↔ List<Reservation>
List of reservations in this commitment.
read / write
resources ↔ List<ResourceCommitment>
A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
Output Only Server-defined URL for the resource.
read / write
startTimestamp ↔ String
Output Only Commitment start time in RFC3339 text format.
read / write
status ↔ String
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. Possible string values are: [...]
read / write
statusMessage ↔ String
Output Only An optional, human-readable explanation of the status.
read / write


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toJson() → Map<String, Object>
toString() → String
Returns a string representation of this object.


operator ==(Object other) → bool
The equality operator. [...]