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

#include <source_instance_params.h>

Inheritance diagram for google_compute_api::SourceInstanceParams:

Public Member Functions

 SourceInstanceParams (const Json::Value &storage)
 
 SourceInstanceParams (Json::Value *storage)
 
virtual ~SourceInstanceParams ()
 
const StringPiece GetTypeName () const
 
bool has_disk_configs () const
 
void clear_disk_configs ()
 
const client::JsonCppArray< DiskInstantiationConfigget_disk_configs () const
 
client::JsonCppArray< DiskInstantiationConfigmutable_diskConfigs ()
 

Static Public Member Functions

static SourceInstanceParamsNew ()
 

Detailed Description

A specification of the parameters to use when creating the instance template from a source instance.

Constructor & Destructor Documentation

◆ SourceInstanceParams() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ SourceInstanceParams() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~SourceInstanceParams()

google_compute_api::SourceInstanceParams::~SourceInstanceParams ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_disk_configs()

void google_compute_api::SourceInstanceParams::clear_disk_configs ( )
inline

Clears the 'diskConfigs' attribute.

◆ get_disk_configs()

const client::JsonCppArray<DiskInstantiationConfig > google_compute_api::SourceInstanceParams::get_disk_configs ( ) const

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

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_compute_api::SourceInstanceParams

◆ has_disk_configs()

bool google_compute_api::SourceInstanceParams::has_disk_configs ( ) const
inline

Determine if the 'diskConfigs' attribute was set.

Returns
true if the 'diskConfigs' attribute was set.

◆ mutable_diskConfigs()

client::JsonCppArray<DiskInstantiationConfig > google_compute_api::SourceInstanceParams::mutable_diskConfigs ( )

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

Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, new custom images will be created from each disk. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.

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

◆ New()

SourceInstanceParams * google_compute_api::SourceInstanceParams::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

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