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

#include <metadata.h>

Inheritance diagram for google_compute_api::Metadata::MetadataItems:

Public Member Functions

 MetadataItems (const Json::Value &storage)
 
 MetadataItems (Json::Value *storage)
 
virtual ~MetadataItems ()
 
const StringPiece GetTypeName () const
 
bool has_key () const
 
void clear_key ()
 
const StringPiece get_key () const
 
void set_key (const StringPiece &value)
 
bool has_value () const
 
void clear_value ()
 
const StringPiece get_value () const
 
void set_value (const StringPiece &value)
 

Static Public Member Functions

static MetadataItemsNew ()
 

Detailed Description

No description provided.

Constructor & Destructor Documentation

◆ MetadataItems() [1/2]

google_compute_api::Metadata::MetadataItems::MetadataItems ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

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

◆ MetadataItems() [2/2]

google_compute_api::Metadata::MetadataItems::MetadataItems ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

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

◆ ~MetadataItems()

google_compute_api::Metadata::MetadataItems::~MetadataItems ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_key()

void google_compute_api::Metadata::MetadataItems::clear_key ( )
inline

Clears the 'key' attribute.

◆ clear_value()

void google_compute_api::Metadata::MetadataItems::clear_value ( )
inline

Clears the 'value' attribute.

◆ get_key()

const StringPiece google_compute_api::Metadata::MetadataItems::get_key ( ) const
inline

Get the value of the 'key' attribute.

◆ get_value()

const StringPiece google_compute_api::Metadata::MetadataItems::get_value ( ) const
inline

Get the value of the 'value' attribute.

◆ GetTypeName()

const StringPiece google_compute_api::Metadata::MetadataItems::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_compute_api::MetadataItems

◆ has_key()

bool google_compute_api::Metadata::MetadataItems::has_key ( ) const
inline

Determine if the 'key' attribute was set.

Returns
true if the 'key' attribute was set.

◆ has_value()

bool google_compute_api::Metadata::MetadataItems::has_value ( ) const
inline

Determine if the 'value' attribute was set.

Returns
true if the 'value' attribute was set.

◆ New()

Metadata::MetadataItems * google_compute_api::Metadata::MetadataItems::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_key()

void google_compute_api::Metadata::MetadataItems::set_key ( const StringPiece &  value)
inline

Change the 'key' attribute.

Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.

Parameters
[in]valueThe new value.

◆ set_value()

void google_compute_api::Metadata::MetadataItems::set_value ( const StringPiece &  value)
inline

Change the 'value' attribute.

Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 262144 bytes (256 KiB).

Parameters
[in]valueThe new value.

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