compute
v1
|
#include <commitment.h>
Public Member Functions | |
Commitment (const Json::Value &storage) | |
Commitment (Json::Value *storage) | |
virtual | ~Commitment () |
const StringPiece | GetTypeName () const |
bool | has_creation_timestamp () const |
void | clear_creation_timestamp () |
const StringPiece | get_creation_timestamp () const |
void | set_creation_timestamp (const StringPiece &value) |
bool | has_description () const |
void | clear_description () |
const StringPiece | get_description () const |
void | set_description (const StringPiece &value) |
bool | has_end_timestamp () const |
void | clear_end_timestamp () |
const StringPiece | get_end_timestamp () const |
void | set_end_timestamp (const StringPiece &value) |
bool | has_id () const |
void | clear_id () |
uint64 | get_id () const |
void | set_id (uint64 value) |
bool | has_kind () const |
void | clear_kind () |
const StringPiece | get_kind () const |
void | set_kind (const StringPiece &value) |
bool | has_name () const |
void | clear_name () |
const StringPiece | get_name () const |
void | set_name (const StringPiece &value) |
bool | has_plan () const |
void | clear_plan () |
const StringPiece | get_plan () const |
void | set_plan (const StringPiece &value) |
bool | has_region () const |
void | clear_region () |
const StringPiece | get_region () const |
void | set_region (const StringPiece &value) |
bool | has_resources () const |
void | clear_resources () |
const client::JsonCppArray< ResourceCommitment > | get_resources () const |
client::JsonCppArray< ResourceCommitment > | mutable_resources () |
bool | has_self_link () const |
void | clear_self_link () |
const StringPiece | get_self_link () const |
void | set_self_link (const StringPiece &value) |
bool | has_start_timestamp () const |
void | clear_start_timestamp () |
const StringPiece | get_start_timestamp () const |
void | set_start_timestamp (const StringPiece &value) |
bool | has_status () const |
void | clear_status () |
const StringPiece | get_status () const |
void | set_status (const StringPiece &value) |
bool | has_status_message () const |
void | clear_status_message () |
const StringPiece | get_status_message () const |
void | set_status_message (const StringPiece &value) |
Static Public Member Functions | |
static Commitment * | New () |
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 ==).
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'creationTimestamp
' attribute.
|
inline |
Clears the 'description
' attribute.
|
inline |
Clears the 'endTimestamp
' attribute.
|
inline |
Clears the 'id
' attribute.
|
inline |
Clears the 'kind
' attribute.
|
inline |
Clears the 'name
' attribute.
|
inline |
Clears the 'plan
' attribute.
|
inline |
Clears the 'region
' attribute.
|
inline |
Clears the 'resources
' attribute.
|
inline |
Clears the 'selfLink
' attribute.
|
inline |
Clears the 'startTimestamp
' attribute.
|
inline |
Clears the 'status
' attribute.
|
inline |
Clears the 'statusMessage
' attribute.
|
inline |
Get the value of the 'creationTimestamp
' attribute.
|
inline |
Get the value of the 'description
' attribute.
|
inline |
Get the value of the 'endTimestamp
' attribute.
|
inline |
Get the value of the 'id
' attribute.
|
inline |
Get the value of the 'kind
' attribute.
|
inline |
Get the value of the 'name
' attribute.
|
inline |
Get the value of the 'plan
' attribute.
|
inline |
Get the value of the 'region
' attribute.
const client::JsonCppArray<ResourceCommitment > google_compute_api::Commitment::get_resources | ( | ) | const |
Get a reference to the value of the 'resources
' attribute.
|
inline |
Get the value of the 'selfLink
' attribute.
|
inline |
Get the value of the 'startTimestamp
' attribute.
|
inline |
Get the value of the 'status
' attribute.
|
inline |
Get the value of the 'statusMessage
' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'creationTimestamp
' attribute was set.
creationTimestamp
' attribute was set.
|
inline |
Determine if the 'description
' attribute was set.
description
' attribute was set.
|
inline |
Determine if the 'endTimestamp
' attribute was set.
endTimestamp
' attribute was set.
|
inline |
Determine if the 'id
' attribute was set.
id
' attribute was set.
|
inline |
Determine if the 'kind
' attribute was set.
kind
' attribute was set.
|
inline |
Determine if the 'name
' attribute was set.
name
' attribute was set.
|
inline |
Determine if the 'plan
' attribute was set.
plan
' attribute was set.
|
inline |
Determine if the 'region
' attribute was set.
region
' attribute was set.
|
inline |
Determine if the 'resources
' attribute was set.
resources
' attribute was set.
|
inline |
Determine if the 'selfLink
' attribute was set.
selfLink
' attribute was set.
|
inline |
Determine if the 'startTimestamp
' attribute was set.
startTimestamp
' attribute was set.
|
inline |
Determine if the 'status
' attribute was set.
status
' attribute was set.
|
inline |
Determine if the 'statusMessage
' attribute was set.
statusMessage
' attribute was set. client::JsonCppArray<ResourceCommitment > google_compute_api::Commitment::mutable_resources | ( | ) |
Gets a reference to a mutable value of the 'resources
' property.
A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
|
static |
Creates a new default instance.
|
inline |
Change the 'creationTimestamp
' attribute.
[Output Only] Creation timestamp in RFC3339 text format.
[in] | value | The new value. |
|
inline |
Change the 'description
' attribute.
An optional description of this resource. Provide this property when you create the resource.
[in] | value | The new value. |
|
inline |
Change the 'endTimestamp
' attribute.
[Output Only] Commitment end time in RFC3339 text format.
[in] | value | The new value. |
|
inline |
Change the 'id
' attribute.
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
[in] | value | The new value. |
|
inline |
Change the 'kind
' attribute.
[Output Only] Type of the resource. Always compute::commitment for commitments.
[in] | value | The new value. |
|
inline |
Change the 'name
' attribute.
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.
[in] | value | The new value. |
|
inline |
Change the 'plan
' attribute.
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).
[in] | value | The new value. |
|
inline |
Change the 'region
' attribute.
[Output Only] URL of the region where this commitment may be used.
[in] | value | The new value. |
|
inline |
Change the 'selfLink
' attribute.
[Output Only] Server-defined URL for the resource.
[in] | value | The new value. |
|
inline |
Change the 'startTimestamp
' attribute.
[Output Only] Commitment start time in RFC3339 text format.
[in] | value | The new value. |
|
inline |
Change the 'status
' attribute.
[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.
[in] | value | The new value. |
|
inline |
Change the 'statusMessage
' attribute.
[Output Only] An optional, human-readable explanation of the status.
[in] | value | The new value. |