#include <resource_commitment.h>
Commitment for a particular resource (a Commitment is composed of one or more of these).
◆ ResourceCommitment() [1/2]
google_compute_api::ResourceCommitment::ResourceCommitment |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ ResourceCommitment() [2/2]
google_compute_api::ResourceCommitment::ResourceCommitment |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ ~ResourceCommitment()
google_compute_api::ResourceCommitment::~ResourceCommitment |
( |
| ) |
|
|
virtual |
◆ clear_amount()
void google_compute_api::ResourceCommitment::clear_amount |
( |
| ) |
|
|
inline |
Clears the 'amount
' attribute.
◆ clear_type()
void google_compute_api::ResourceCommitment::clear_type |
( |
| ) |
|
|
inline |
Clears the 'type
' attribute.
◆ get_amount()
int64 google_compute_api::ResourceCommitment::get_amount |
( |
| ) |
const |
|
inline |
Get the value of the 'amount
' attribute.
◆ get_type()
const StringPiece google_compute_api::ResourceCommitment::get_type |
( |
| ) |
const |
|
inline |
Get the value of the 'type
' attribute.
◆ GetTypeName()
const StringPiece google_compute_api::ResourceCommitment::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_amount()
bool google_compute_api::ResourceCommitment::has_amount |
( |
| ) |
const |
|
inline |
Determine if the 'amount
' attribute was set.
- Returns
- true if the '
amount
' attribute was set.
◆ has_type()
bool google_compute_api::ResourceCommitment::has_type |
( |
| ) |
const |
|
inline |
Determine if the 'type
' attribute was set.
- Returns
- true if the '
type
' attribute was set.
◆ New()
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_amount()
void google_compute_api::ResourceCommitment::set_amount |
( |
int64 |
value | ) |
|
|
inline |
Change the 'amount
' attribute.
The amount of the resource purchased (in a type-dependent unit, such as bytes). For vCPUs, this can just be an integer. For memory, this must be provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every vCPU.
- Parameters
-
◆ set_type()
void google_compute_api::ResourceCommitment::set_type |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'type
' attribute.
Type of resource for which this commitment applies. Possible values are VCPU and MEMORY.
- Parameters
-
The documentation for this class was generated from the following files: