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

#include <autoscaler.h>

Inheritance diagram for google_compute_api::Autoscaler:

Public Member Functions

 Autoscaler (const Json::Value &storage)
 
 Autoscaler (Json::Value *storage)
 
virtual ~Autoscaler ()
 
const StringPiece GetTypeName () const
 
bool has_autoscaling_policy () const
 
void clear_autoscaling_policy ()
 
const AutoscalingPolicy get_autoscaling_policy () const
 
AutoscalingPolicy mutable_autoscalingPolicy ()
 
bool has_creation_timestamp () const
 
void clear_creation_timestamp ()
 
const StringPiece get_creation_timestamp () const
 
void set_creation_timestamp (const StringPiece &value)
 
bool has_description () const
 
void clear_description ()
 
const StringPiece get_description () const
 
void set_description (const StringPiece &value)
 
bool has_id () const
 
void clear_id ()
 
uint64 get_id () const
 
void set_id (uint64 value)
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 
bool has_name () const
 
void clear_name ()
 
const StringPiece get_name () const
 
void set_name (const StringPiece &value)
 
bool has_region () const
 
void clear_region ()
 
const StringPiece get_region () const
 
void set_region (const StringPiece &value)
 
bool has_self_link () const
 
void clear_self_link ()
 
const StringPiece get_self_link () const
 
void set_self_link (const StringPiece &value)
 
bool has_status () const
 
void clear_status ()
 
const StringPiece get_status () const
 
void set_status (const StringPiece &value)
 
bool has_status_details () const
 
void clear_status_details ()
 
const client::JsonCppArray< AutoscalerStatusDetailsget_status_details () const
 
client::JsonCppArray< AutoscalerStatusDetailsmutable_statusDetails ()
 
bool has_target () const
 
void clear_target ()
 
const StringPiece get_target () const
 
void set_target (const StringPiece &value)
 
bool has_zone () const
 
void clear_zone ()
 
const StringPiece get_zone () const
 
void set_zone (const StringPiece &value)
 

Static Public Member Functions

static AutoscalerNew ()
 

Detailed Description

Represents an Autoscaler resource. Autoscalers allow you to automatically scale virtual machine instances in managed instance groups according to an autoscaling policy that you define. For more information, read Autoscaling Groups of Instances. (== resource_for beta.autoscalers ==) (== resource_for v1.autoscalers ==) (== resource_for beta.regionAutoscalers ==) (== resource_for v1.regionAutoscalers ==).

Constructor & Destructor Documentation

◆ Autoscaler() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ Autoscaler() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~Autoscaler()

google_compute_api::Autoscaler::~Autoscaler ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_autoscaling_policy()

void google_compute_api::Autoscaler::clear_autoscaling_policy ( )
inline

Clears the 'autoscalingPolicy' attribute.

◆ clear_creation_timestamp()

void google_compute_api::Autoscaler::clear_creation_timestamp ( )
inline

Clears the 'creationTimestamp' attribute.

◆ clear_description()

void google_compute_api::Autoscaler::clear_description ( )
inline

Clears the 'description' attribute.

◆ clear_id()

void google_compute_api::Autoscaler::clear_id ( )
inline

Clears the 'id' attribute.

◆ clear_kind()

void google_compute_api::Autoscaler::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_name()

void google_compute_api::Autoscaler::clear_name ( )
inline

Clears the 'name' attribute.

◆ clear_region()

void google_compute_api::Autoscaler::clear_region ( )
inline

Clears the 'region' attribute.

◆ clear_self_link()

void google_compute_api::Autoscaler::clear_self_link ( )
inline

Clears the 'selfLink' attribute.

◆ clear_status()

void google_compute_api::Autoscaler::clear_status ( )
inline

Clears the 'status' attribute.

◆ clear_status_details()

void google_compute_api::Autoscaler::clear_status_details ( )
inline

Clears the 'statusDetails' attribute.

◆ clear_target()

void google_compute_api::Autoscaler::clear_target ( )
inline

Clears the 'target' attribute.

◆ clear_zone()

void google_compute_api::Autoscaler::clear_zone ( )
inline

Clears the 'zone' attribute.

◆ get_autoscaling_policy()

const AutoscalingPolicy google_compute_api::Autoscaler::get_autoscaling_policy ( ) const

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

◆ get_creation_timestamp()

const StringPiece google_compute_api::Autoscaler::get_creation_timestamp ( ) const
inline

Get the value of the 'creationTimestamp' attribute.

◆ get_description()

const StringPiece google_compute_api::Autoscaler::get_description ( ) const
inline

Get the value of the 'description' attribute.

◆ get_id()

uint64 google_compute_api::Autoscaler::get_id ( ) const
inline

Get the value of the 'id' attribute.

◆ get_kind()

const StringPiece google_compute_api::Autoscaler::get_kind ( ) const
inline

Get the value of the 'kind' attribute.

◆ get_name()

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

Get the value of the 'name' attribute.

◆ get_region()

const StringPiece google_compute_api::Autoscaler::get_region ( ) const
inline

Get the value of the 'region' attribute.

◆ get_self_link()

const StringPiece google_compute_api::Autoscaler::get_self_link ( ) const
inline

Get the value of the 'selfLink' attribute.

◆ get_status()

const StringPiece google_compute_api::Autoscaler::get_status ( ) const
inline

Get the value of the 'status' attribute.

◆ get_status_details()

const client::JsonCppArray<AutoscalerStatusDetails > google_compute_api::Autoscaler::get_status_details ( ) const

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

◆ get_target()

const StringPiece google_compute_api::Autoscaler::get_target ( ) const
inline

Get the value of the 'target' attribute.

◆ get_zone()

const StringPiece google_compute_api::Autoscaler::get_zone ( ) const
inline

Get the value of the 'zone' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_compute_api::Autoscaler

◆ has_autoscaling_policy()

bool google_compute_api::Autoscaler::has_autoscaling_policy ( ) const
inline

Determine if the 'autoscalingPolicy' attribute was set.

Returns
true if the 'autoscalingPolicy' attribute was set.

◆ has_creation_timestamp()

bool google_compute_api::Autoscaler::has_creation_timestamp ( ) const
inline

Determine if the 'creationTimestamp' attribute was set.

Returns
true if the 'creationTimestamp' attribute was set.

◆ has_description()

bool google_compute_api::Autoscaler::has_description ( ) const
inline

Determine if the 'description' attribute was set.

Returns
true if the 'description' attribute was set.

◆ has_id()

bool google_compute_api::Autoscaler::has_id ( ) const
inline

Determine if the 'id' attribute was set.

Returns
true if the 'id' attribute was set.

◆ has_kind()

bool google_compute_api::Autoscaler::has_kind ( ) const
inline

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ has_name()

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

Determine if the 'name' attribute was set.

Returns
true if the 'name' attribute was set.

◆ has_region()

bool google_compute_api::Autoscaler::has_region ( ) const
inline

Determine if the 'region' attribute was set.

Returns
true if the 'region' attribute was set.

◆ has_self_link()

bool google_compute_api::Autoscaler::has_self_link ( ) const
inline

Determine if the 'selfLink' attribute was set.

Returns
true if the 'selfLink' attribute was set.

◆ has_status()

bool google_compute_api::Autoscaler::has_status ( ) const
inline

Determine if the 'status' attribute was set.

Returns
true if the 'status' attribute was set.

◆ has_status_details()

bool google_compute_api::Autoscaler::has_status_details ( ) const
inline

Determine if the 'statusDetails' attribute was set.

Returns
true if the 'statusDetails' attribute was set.

◆ has_target()

bool google_compute_api::Autoscaler::has_target ( ) const
inline

Determine if the 'target' attribute was set.

Returns
true if the 'target' attribute was set.

◆ has_zone()

bool google_compute_api::Autoscaler::has_zone ( ) const
inline

Determine if the 'zone' attribute was set.

Returns
true if the 'zone' attribute was set.

◆ mutable_autoscalingPolicy()

AutoscalingPolicy google_compute_api::Autoscaler::mutable_autoscalingPolicy ( )

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

The configuration parameters for the autoscaling algorithm. You can define one or more of the policies for an autoscaler: cpuUtilization, customMetricUtilizations, and loadBalancingUtilization.

If none of these are specified, the default will be to autoscale based on cpuUtilization to 0.6 or 60%.

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

◆ mutable_statusDetails()

client::JsonCppArray<AutoscalerStatusDetails > google_compute_api::Autoscaler::mutable_statusDetails ( )

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

[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter.

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

◆ New()

Autoscaler * google_compute_api::Autoscaler::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_creation_timestamp()

void google_compute_api::Autoscaler::set_creation_timestamp ( const StringPiece &  value)
inline

Change the 'creationTimestamp' attribute.

[Output Only] Creation timestamp in RFC3339 text format.

Parameters
[in]valueThe new value.

◆ set_description()

void google_compute_api::Autoscaler::set_description ( const StringPiece &  value)
inline

Change the 'description' attribute.

An optional description of this resource. Provide this property when you create the resource.

Parameters
[in]valueThe new value.

◆ set_id()

void google_compute_api::Autoscaler::set_id ( uint64  value)
inline

Change the 'id' attribute.

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

Parameters
[in]valueThe new value.

◆ set_kind()

void google_compute_api::Autoscaler::set_kind ( const StringPiece &  value)
inline

Change the 'kind' attribute.

[Output Only] Type of the resource. Always compute::autoscaler for autoscalers.

Parameters
[in]valueThe new value.

◆ set_name()

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

Change the 'name' attribute.

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

Parameters
[in]valueThe new value.

◆ set_region()

void google_compute_api::Autoscaler::set_region ( const StringPiece &  value)
inline

Change the 'region' attribute.

[Output Only] URL of the region where the instance group resides (for autoscalers living in regional scope).

Parameters
[in]valueThe new value.

◆ set_self_link()

void google_compute_api::Autoscaler::set_self_link ( const StringPiece &  value)
inline

Change the 'selfLink' attribute.

[Output Only] Server-defined URL for the resource.

Parameters
[in]valueThe new value.

◆ set_status()

void google_compute_api::Autoscaler::set_status ( const StringPiece &  value)
inline

Change the 'status' attribute.

[Output Only] The status of the autoscaler configuration.

Parameters
[in]valueThe new value.

◆ set_target()

void google_compute_api::Autoscaler::set_target ( const StringPiece &  value)
inline

Change the 'target' attribute.

URL of the managed instance group that this autoscaler will scale.

Parameters
[in]valueThe new value.

◆ set_zone()

void google_compute_api::Autoscaler::set_zone ( const StringPiece &  value)
inline

Change the 'zone' attribute.

[Output Only] URL of the zone where the instance group resides (for autoscalers living in zonal scope).

Parameters
[in]valueThe new value.

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