public sealed class Commitment : IMessage<Commitment>, IEquatable<Commitment>, IDeepCloneable<Commitment>, IBufferMessage, IMessage
Reference documentation and code samples for the Compute Engine v1 API 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.
Implements
IMessage<Commitment>, IEquatable<Commitment>, IDeepCloneable<Commitment>, IBufferMessage, IMessageNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
Commitment()
public Commitment()
Commitment(Commitment)
public Commitment(Commitment other)
Parameter | |
---|---|
Name | Description |
other | Commitment |
Properties
AutoRenew
public bool AutoRenew { get; set; }
Specifies whether to enable automatic renewal for the commitment. The default value is false if not specified. The field can be updated until the day of the commitment expiration at 12:00am PST. If the field is set to true, the commitment will be automatically renewed for either one or three years according to the terms of the existing commitment.
Property Value | |
---|---|
Type | Description |
Boolean |
Category
public string Category { get; set; }
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. Check the Category enum for the list of possible values.
Property Value | |
---|---|
Type | Description |
String |
CreationTimestamp
public string CreationTimestamp { get; set; }
[Output Only] Creation timestamp in RFC3339 text format.
Property Value | |
---|---|
Type | Description |
String |
Description
public string Description { get; set; }
An optional description of this resource. Provide this property when you create the resource.
Property Value | |
---|---|
Type | Description |
String |
EndTimestamp
public string EndTimestamp { get; set; }
[Output Only] Commitment end time in RFC3339 text format.
Property Value | |
---|---|
Type | Description |
String |
HasAutoRenew
public bool HasAutoRenew { get; }
Gets whether the "auto_renew" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasCategory
public bool HasCategory { get; }
Gets whether the "category" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasCreationTimestamp
public bool HasCreationTimestamp { get; }
Gets whether the "creation_timestamp" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasDescription
public bool HasDescription { get; }
Gets whether the "description" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasEndTimestamp
public bool HasEndTimestamp { get; }
Gets whether the "end_timestamp" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasId
public bool HasId { get; }
Gets whether the "id" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasKind
public bool HasKind { get; }
Gets whether the "kind" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasName
public bool HasName { get; }
Gets whether the "name" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasPlan
public bool HasPlan { get; }
Gets whether the "plan" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasRegion
public bool HasRegion { get; }
Gets whether the "region" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasSelfLink
public bool HasSelfLink { get; }
Gets whether the "self_link" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasSplitSourceCommitment
public bool HasSplitSourceCommitment { get; }
Gets whether the "split_source_commitment" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasStartTimestamp
public bool HasStartTimestamp { get; }
Gets whether the "start_timestamp" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasStatus
public bool HasStatus { get; }
Gets whether the "status" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasStatusMessage
public bool HasStatusMessage { get; }
Gets whether the "status_message" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasType
public bool HasType { get; }
Gets whether the "type" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
Id
public ulong Id { get; set; }
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
Property Value | |
---|---|
Type | Description |
UInt64 |
Kind
public string Kind { get; set; }
[Output Only] Type of the resource. Always compute#commitment for commitments.
Property Value | |
---|---|
Type | Description |
String |
LicenseResource
public LicenseResourceCommitment LicenseResource { get; set; }
The license specification required as part of a license commitment.
Property Value | |
---|---|
Type | Description |
LicenseResourceCommitment |
MergeSourceCommitments
public RepeatedField<string> MergeSourceCommitments { get; }
List of source commitments to be merged into a new commitment.
Property Value | |
---|---|
Type | Description |
RepeatedField<String> |
Name
public string Name { get; set; }
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.
Property Value | |
---|---|
Type | Description |
String |
Plan
public string Plan { get; set; }
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). Check the Plan enum for the list of possible values.
Property Value | |
---|---|
Type | Description |
String |
Region
public string Region { get; set; }
[Output Only] URL of the region where this commitment may be used.
Property Value | |
---|---|
Type | Description |
String |
Reservations
public RepeatedField<Reservation> Reservations { get; }
List of reservations in this commitment.
Property Value | |
---|---|
Type | Description |
RepeatedField<Reservation> |
Resources
public RepeatedField<ResourceCommitment> Resources { get; }
A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
Property Value | |
---|---|
Type | Description |
RepeatedField<ResourceCommitment> |
SelfLink
public string SelfLink { get; set; }
[Output Only] Server-defined URL for the resource.
Property Value | |
---|---|
Type | Description |
String |
SplitSourceCommitment
public string SplitSourceCommitment { get; set; }
Source commitment to be splitted into a new commitment.
Property Value | |
---|---|
Type | Description |
String |
StartTimestamp
public string StartTimestamp { get; set; }
[Output Only] Commitment start time in RFC3339 text format.
Property Value | |
---|---|
Type | Description |
String |
Status
public string Status { get; set; }
[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. Check the Status enum for the list of possible values.
Property Value | |
---|---|
Type | Description |
String |
StatusMessage
public string StatusMessage { get; set; }
[Output Only] An optional, human-readable explanation of the status.
Property Value | |
---|---|
Type | Description |
String |
Type
public string Type { get; set; }
The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines. Check the Type enum for the list of possible values.
Property Value | |
---|---|
Type | Description |
String |