compute  v1
Public Member Functions | Static Public Member Functions | List of all members
google_compute_api::SchedulingNodeAffinity Class Reference

#include <scheduling_node_affinity.h>

Inheritance diagram for google_compute_api::SchedulingNodeAffinity:

Public Member Functions

 SchedulingNodeAffinity (const Json::Value &storage)
 
 SchedulingNodeAffinity (Json::Value *storage)
 
virtual ~SchedulingNodeAffinity ()
 
const StringPiece GetTypeName () const
 
bool has_key () const
 
void clear_key ()
 
const StringPiece get_key () const
 
void set_key (const StringPiece &value)
 
bool has_operator () const
 
void clear_operator ()
 
const StringPiece get_operator () const
 
void set_operator (const StringPiece &value)
 
bool has_values () const
 
void clear_values ()
 
const client::JsonCppArray< string > get_values () const
 
client::JsonCppArray< string > mutable_values ()
 

Static Public Member Functions

static SchedulingNodeAffinityNew ()
 

Detailed Description

Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.

Constructor & Destructor Documentation

◆ SchedulingNodeAffinity() [1/2]

google_compute_api::SchedulingNodeAffinity::SchedulingNodeAffinity ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ SchedulingNodeAffinity() [2/2]

google_compute_api::SchedulingNodeAffinity::SchedulingNodeAffinity ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~SchedulingNodeAffinity()

google_compute_api::SchedulingNodeAffinity::~SchedulingNodeAffinity ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_key()

void google_compute_api::SchedulingNodeAffinity::clear_key ( )
inline

Clears the 'key' attribute.

◆ clear_operator()

void google_compute_api::SchedulingNodeAffinity::clear_operator ( )
inline

Clears the 'operator' attribute.

◆ clear_values()

void google_compute_api::SchedulingNodeAffinity::clear_values ( )
inline

Clears the 'values' attribute.

◆ get_key()

const StringPiece google_compute_api::SchedulingNodeAffinity::get_key ( ) const
inline

Get the value of the 'key' attribute.

◆ get_operator()

const StringPiece google_compute_api::SchedulingNodeAffinity::get_operator ( ) const
inline

Get the value of the 'operator' attribute.

◆ get_values()

const client::JsonCppArray<string > google_compute_api::SchedulingNodeAffinity::get_values ( ) const
inline

Get a reference to the value of the 'values' attribute.

◆ GetTypeName()

const StringPiece google_compute_api::SchedulingNodeAffinity::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_compute_api::SchedulingNodeAffinity

◆ has_key()

bool google_compute_api::SchedulingNodeAffinity::has_key ( ) const
inline

Determine if the 'key' attribute was set.

Returns
true if the 'key' attribute was set.

◆ has_operator()

bool google_compute_api::SchedulingNodeAffinity::has_operator ( ) const
inline

Determine if the 'operator' attribute was set.

Returns
true if the 'operator' attribute was set.

◆ has_values()

bool google_compute_api::SchedulingNodeAffinity::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_compute_api::SchedulingNodeAffinity::mutable_values ( )
inline

Gets a reference to a mutable value of the 'values' property.

Corresponds to the label values of Node resource.

Returns
The result can be modified to change the attribute value.

◆ New()

SchedulingNodeAffinity * google_compute_api::SchedulingNodeAffinity::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_key()

void google_compute_api::SchedulingNodeAffinity::set_key ( const StringPiece &  value)
inline

Change the 'key' attribute.

Corresponds to the label key of Node resource.

Parameters
[in]valueThe new value.

◆ set_operator()

void google_compute_api::SchedulingNodeAffinity::set_operator ( const StringPiece &  value)
inline

Change the 'operator' attribute.

Defines the operation of node selection.

Parameters
[in]valueThe new value.

The documentation for this class was generated from the following files: