#include <metadata.h>
◆ MetadataItems() [1/2]
google_compute_api::Metadata::MetadataItems::MetadataItems |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The 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] | storage | The underlying data storage for this instance. |
◆ ~MetadataItems()
google_compute_api::Metadata::MetadataItems::~MetadataItems |
( |
| ) |
|
|
virtual |
◆ 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()
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
-
◆ 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
-
The documentation for this class was generated from the following files:
- google/compute_api/metadata.h
- google/compute_api/metadata.cc