#include <reservation_affinity.h>
ReservationAffinity is the configuration of desired reservation which instances could take capacity from.
◆ ReservationAffinity() [1/2]
google_container_api::ReservationAffinity::ReservationAffinity |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ ReservationAffinity() [2/2]
google_container_api::ReservationAffinity::ReservationAffinity |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ ~ReservationAffinity()
google_container_api::ReservationAffinity::~ReservationAffinity |
( |
| ) |
|
|
virtual |
◆ clear_consume_reservation_type()
void google_container_api::ReservationAffinity::clear_consume_reservation_type |
( |
| ) |
|
|
inline |
Clears the 'consumeReservationType
' attribute.
◆ clear_key()
void google_container_api::ReservationAffinity::clear_key |
( |
| ) |
|
|
inline |
Clears the 'key
' attribute.
◆ clear_values()
void google_container_api::ReservationAffinity::clear_values |
( |
| ) |
|
|
inline |
Clears the 'values
' attribute.
◆ get_consume_reservation_type()
const StringPiece google_container_api::ReservationAffinity::get_consume_reservation_type |
( |
| ) |
const |
|
inline |
Get the value of the 'consumeReservationType
' attribute.
◆ get_key()
const StringPiece google_container_api::ReservationAffinity::get_key |
( |
| ) |
const |
|
inline |
Get the value of the 'key
' attribute.
◆ get_values()
const client::JsonCppArray<string > google_container_api::ReservationAffinity::get_values |
( |
| ) |
const |
|
inline |
Get a reference to the value of the 'values
' attribute.
◆ GetTypeName()
const StringPiece google_container_api::ReservationAffinity::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_consume_reservation_type()
bool google_container_api::ReservationAffinity::has_consume_reservation_type |
( |
| ) |
const |
|
inline |
Determine if the 'consumeReservationType
' attribute was set.
- Returns
- true if the '
consumeReservationType
' attribute was set.
◆ has_key()
bool google_container_api::ReservationAffinity::has_key |
( |
| ) |
const |
|
inline |
Determine if the 'key
' attribute was set.
- Returns
- true if the '
key
' attribute was set.
◆ has_values()
bool google_container_api::ReservationAffinity::has_values |
( |
| ) |
const |
|
inline |
Determine if the 'values
' attribute was set.
- Returns
- true if the '
values
' attribute was set.
◆ mutable_values()
client::JsonCppArray<string > google_container_api::ReservationAffinity::mutable_values |
( |
| ) |
|
|
inline |
Gets a reference to a mutable value of the 'values
' property.
Corresponds to the label value(s) of reservation resource(s).
- Returns
- The result can be modified to change the attribute value.
◆ New()
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_consume_reservation_type()
void google_container_api::ReservationAffinity::set_consume_reservation_type |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'consumeReservationType
' attribute.
Corresponds to the type of reservation consumption.
- Parameters
-
◆ set_key()
void google_container_api::ReservationAffinity::set_key |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'key
' attribute.
Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as the key and specify the name of your reservation as its value.
- Parameters
-
The documentation for this class was generated from the following files: