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