Class Commitment
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.
Inheritance
Implements
Inherited Members
Namespace: Google.Apis.Compute.v1.Data
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class Commitment : IDirectResponseSchema
Properties
Category
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.
Declaration
[JsonProperty("category")]
public virtual string Category { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
CreationTimestamp
[Output Only] Creation timestamp in RFC3339 text format.
Declaration
[JsonProperty("creationTimestamp")]
public virtual string CreationTimestamp { get; set; }
Property Value
| Type | Description |
|---|---|
| System.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 |
|---|---|
| System.String |
EndTimestamp
[Output Only] Commitment end time in RFC3339 text format.
Declaration
[JsonProperty("endTimestamp")]
public virtual string EndTimestamp { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Id
[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 |
|---|---|
| System.Nullable<System.UInt64> |
Kind
[Output Only] Type of the resource. Always compute#commitment for commitments.
Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
LicenseResource
The license specification required as part of a license commitment.
Declaration
[JsonProperty("licenseResource")]
public virtual LicenseResourceCommitment LicenseResource { get; set; }
Property Value
| Type | Description |
|---|---|
| LicenseResourceCommitment |
Name
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.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Plan
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).
Declaration
[JsonProperty("plan")]
public virtual string Plan { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Region
[Output Only] URL of the region where this commitment may be used.
Declaration
[JsonProperty("region")]
public virtual string Region { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Reservations
List of reservations in this commitment.
Declaration
[JsonProperty("reservations")]
public virtual IList<Reservation> Reservations { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IList<Reservation> |
Resources
A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
Declaration
[JsonProperty("resources")]
public virtual IList<ResourceCommitment> Resources { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IList<ResourceCommitment> |
SelfLink
[Output Only] Server-defined URL for the resource.
Declaration
[JsonProperty("selfLink")]
public virtual string SelfLink { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
StartTimestamp
[Output Only] Commitment start time in RFC3339 text format.
Declaration
[JsonProperty("startTimestamp")]
public virtual string StartTimestamp { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Status
[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.
Declaration
[JsonProperty("status")]
public virtual string Status { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
StatusMessage
[Output Only] An optional, human-readable explanation of the status.
Declaration
[JsonProperty("statusMessage")]
public virtual string StatusMessage { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |