compute
v1
|
#include <autoscaler.h>
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< AutoscalerStatusDetails > | get_status_details () const |
client::JsonCppArray< AutoscalerStatusDetails > | mutable_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 Autoscaler * | New () |
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 ==).
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'autoscalingPolicy
' attribute.
|
inline |
Clears the 'creationTimestamp
' attribute.
|
inline |
Clears the 'description
' attribute.
|
inline |
Clears the 'id
' attribute.
|
inline |
Clears the 'kind
' attribute.
|
inline |
Clears the 'name
' attribute.
|
inline |
Clears the 'region
' attribute.
|
inline |
Clears the 'selfLink
' attribute.
|
inline |
Clears the 'status
' attribute.
|
inline |
Clears the 'statusDetails
' attribute.
|
inline |
Clears the 'target
' attribute.
|
inline |
Clears the 'zone
' attribute.
const AutoscalingPolicy google_compute_api::Autoscaler::get_autoscaling_policy | ( | ) | const |
Get a reference to the value of the 'autoscalingPolicy
' attribute.
|
inline |
Get the value of the 'creationTimestamp
' attribute.
|
inline |
Get the value of the 'description
' attribute.
|
inline |
Get the value of the 'id
' attribute.
|
inline |
Get the value of the 'kind
' attribute.
|
inline |
Get the value of the 'name
' attribute.
|
inline |
Get the value of the 'region
' attribute.
|
inline |
Get the value of the 'selfLink
' attribute.
|
inline |
Get the value of the 'status
' attribute.
const client::JsonCppArray<AutoscalerStatusDetails > google_compute_api::Autoscaler::get_status_details | ( | ) | const |
Get a reference to the value of the 'statusDetails
' attribute.
|
inline |
Get the value of the 'target
' attribute.
|
inline |
Get the value of the 'zone
' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'autoscalingPolicy
' attribute was set.
autoscalingPolicy
' attribute was set.
|
inline |
Determine if the 'creationTimestamp
' attribute was set.
creationTimestamp
' attribute was set.
|
inline |
Determine if the 'description
' attribute was set.
description
' attribute was set.
|
inline |
Determine if the 'id
' attribute was set.
id
' attribute was set.
|
inline |
Determine if the 'kind
' attribute was set.
kind
' attribute was set.
|
inline |
Determine if the 'name
' attribute was set.
name
' attribute was set.
|
inline |
Determine if the 'region
' attribute was set.
region
' attribute was set.
|
inline |
Determine if the 'selfLink
' attribute was set.
selfLink
' attribute was set.
|
inline |
Determine if the 'status
' attribute was set.
status
' attribute was set.
|
inline |
Determine if the 'statusDetails
' attribute was set.
statusDetails
' attribute was set.
|
inline |
Determine if the 'target
' attribute was set.
target
' attribute was set.
|
inline |
Determine if the 'zone
' attribute was set.
zone
' attribute was set. 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%.
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.
|
static |
Creates a new default instance.
|
inline |
Change the 'creationTimestamp
' attribute.
[Output Only] Creation timestamp in RFC3339 text format.
[in] | value | The new value. |
|
inline |
Change the 'description
' attribute.
An optional description of this resource. Provide this property when you create the resource.
[in] | value | The new value. |
|
inline |
Change the 'id
' attribute.
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
[in] | value | The new value. |
|
inline |
Change the 'kind
' attribute.
[Output Only] Type of the resource. Always compute::autoscaler for autoscalers.
[in] | value | The new 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.
[in] | value | The new value. |
|
inline |
Change the 'region
' attribute.
[Output Only] URL of the region where the instance group resides (for autoscalers living in regional scope).
[in] | value | The new value. |
|
inline |
Change the 'selfLink
' attribute.
[Output Only] Server-defined URL for the resource.
[in] | value | The new value. |
|
inline |
Change the 'status
' attribute.
[Output Only] The status of the autoscaler configuration.
[in] | value | The new value. |
|
inline |
Change the 'target
' attribute.
URL of the managed instance group that this autoscaler will scale.
[in] | value | The new value. |
|
inline |
Change the 'zone
' attribute.
[Output Only] URL of the zone where the instance group resides (for autoscalers living in zonal scope).
[in] | value | The new value. |