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

#include <instance_group_manager_version.h>

Inheritance diagram for google_compute_api::InstanceGroupManagerVersion:

Public Member Functions

 InstanceGroupManagerVersion (const Json::Value &storage)
 
 InstanceGroupManagerVersion (Json::Value *storage)
 
virtual ~InstanceGroupManagerVersion ()
 
const StringPiece GetTypeName () const
 
bool has_instance_template () const
 
void clear_instance_template ()
 
const StringPiece get_instance_template () const
 
void set_instance_template (const StringPiece &value)
 
bool has_name () const
 
void clear_name ()
 
const StringPiece get_name () const
 
void set_name (const StringPiece &value)
 
bool has_target_size () const
 
void clear_target_size ()
 
const FixedOrPercent get_target_size () const
 
FixedOrPercent mutable_targetSize ()
 

Static Public Member Functions

static InstanceGroupManagerVersionNew ()
 

Detailed Description

No description provided.

Constructor & Destructor Documentation

◆ InstanceGroupManagerVersion() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ InstanceGroupManagerVersion() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~InstanceGroupManagerVersion()

google_compute_api::InstanceGroupManagerVersion::~InstanceGroupManagerVersion ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_instance_template()

void google_compute_api::InstanceGroupManagerVersion::clear_instance_template ( )
inline

Clears the 'instanceTemplate' attribute.

◆ clear_name()

void google_compute_api::InstanceGroupManagerVersion::clear_name ( )
inline

Clears the 'name' attribute.

◆ clear_target_size()

void google_compute_api::InstanceGroupManagerVersion::clear_target_size ( )
inline

Clears the 'targetSize' attribute.

◆ get_instance_template()

const StringPiece google_compute_api::InstanceGroupManagerVersion::get_instance_template ( ) const
inline

Get the value of the 'instanceTemplate' attribute.

◆ get_name()

const StringPiece google_compute_api::InstanceGroupManagerVersion::get_name ( ) const
inline

Get the value of the 'name' attribute.

◆ get_target_size()

const FixedOrPercent google_compute_api::InstanceGroupManagerVersion::get_target_size ( ) const

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

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_compute_api::InstanceGroupManagerVersion

◆ has_instance_template()

bool google_compute_api::InstanceGroupManagerVersion::has_instance_template ( ) const
inline

Determine if the 'instanceTemplate' attribute was set.

Returns
true if the 'instanceTemplate' attribute was set.

◆ has_name()

bool google_compute_api::InstanceGroupManagerVersion::has_name ( ) const
inline

Determine if the 'name' attribute was set.

Returns
true if the 'name' attribute was set.

◆ has_target_size()

bool google_compute_api::InstanceGroupManagerVersion::has_target_size ( ) const
inline

Determine if the 'targetSize' attribute was set.

Returns
true if the 'targetSize' attribute was set.

◆ mutable_targetSize()

FixedOrPercent google_compute_api::InstanceGroupManagerVersion::mutable_targetSize ( )

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

Specifies the intended number of instances to be created from the instanceTemplate. The final number of instances created from the template will be equal to:

  • If expressed as a fixed number, the minimum of either targetSize.fixed or instanceGroupManager.targetSize is used.
  • if expressed as a percent, the targetSize would be (targetSize.percent/100 * InstanceGroupManager.targetSize) If there is a remainder, the number is rounded up. If unset, this version will update any remaining instances not updated by another version. Read Starting a canary update for more information.
Returns
The result can be modified to change the attribute value.

◆ New()

InstanceGroupManagerVersion * google_compute_api::InstanceGroupManagerVersion::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_instance_template()

void google_compute_api::InstanceGroupManagerVersion::set_instance_template ( const StringPiece &  value)
inline

Change the 'instanceTemplate' attribute.

The URL of the instance template that is specified for this managed instance group. The group uses this template to create new instances in the managed instance group until the targetSize for this version is reached.

Parameters
[in]valueThe new value.

◆ set_name()

void google_compute_api::InstanceGroupManagerVersion::set_name ( const StringPiece &  value)
inline

Change the 'name' attribute.

Name of the version. Unique among all versions in the scope of this managed instance group.

Parameters
[in]valueThe new value.

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