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

#include <global_set_labels_request.h>

Inheritance diagram for google_compute_api::GlobalSetLabelsRequest:

Public Member Functions

 GlobalSetLabelsRequest (const Json::Value &storage)
 
 GlobalSetLabelsRequest (Json::Value *storage)
 
virtual ~GlobalSetLabelsRequest ()
 
const StringPiece GetTypeName () const
 
bool has_label_fingerprint () const
 
void clear_label_fingerprint ()
 
const StringPiece get_label_fingerprint () const
 
void set_label_fingerprint (const StringPiece &value)
 
bool has_labels () const
 
void clear_labels ()
 
const client::JsonCppAssociativeArray< string > get_labels () const
 
client::JsonCppAssociativeArray< string > mutable_labels ()
 

Static Public Member Functions

static GlobalSetLabelsRequestNew ()
 

Detailed Description

No description provided.

Constructor & Destructor Documentation

◆ GlobalSetLabelsRequest() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ GlobalSetLabelsRequest() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~GlobalSetLabelsRequest()

google_compute_api::GlobalSetLabelsRequest::~GlobalSetLabelsRequest ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_label_fingerprint()

void google_compute_api::GlobalSetLabelsRequest::clear_label_fingerprint ( )
inline

Clears the 'labelFingerprint' attribute.

◆ clear_labels()

void google_compute_api::GlobalSetLabelsRequest::clear_labels ( )
inline

Clears the 'labels' attribute.

◆ get_label_fingerprint()

const StringPiece google_compute_api::GlobalSetLabelsRequest::get_label_fingerprint ( ) const
inline

Get the value of the 'labelFingerprint' attribute.

◆ get_labels()

const client::JsonCppAssociativeArray<string > google_compute_api::GlobalSetLabelsRequest::get_labels ( ) const
inline

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

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_compute_api::GlobalSetLabelsRequest

◆ has_label_fingerprint()

bool google_compute_api::GlobalSetLabelsRequest::has_label_fingerprint ( ) const
inline

Determine if the 'labelFingerprint' attribute was set.

Returns
true if the 'labelFingerprint' attribute was set.

◆ has_labels()

bool google_compute_api::GlobalSetLabelsRequest::has_labels ( ) const
inline

Determine if the 'labels' attribute was set.

Returns
true if the 'labels' attribute was set.

◆ mutable_labels()

client::JsonCppAssociativeArray<string > google_compute_api::GlobalSetLabelsRequest::mutable_labels ( )
inline

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

A list of labels to apply for this resource. Each label key & value must 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. For example, "webserver-frontend": "images". A label value can also be empty (e.g. "my-label": "").

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

◆ New()

GlobalSetLabelsRequest * google_compute_api::GlobalSetLabelsRequest::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_label_fingerprint()

void google_compute_api::GlobalSetLabelsRequest::set_label_fingerprint ( const StringPiece &  value)
inline

Change the 'labelFingerprint' attribute.

The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash when updating or changing labels, otherwise the request will fail with error 412 conditionNotMet. Make a get() request to the resource to get the latest fingerprint.

Parameters
[in]valueThe new value.

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