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

#include <managed_instance.h>

Inheritance diagram for google_compute_api::ManagedInstance:

Public Member Functions

 ManagedInstance (const Json::Value &storage)
 
 ManagedInstance (Json::Value *storage)
 
virtual ~ManagedInstance ()
 
const StringPiece GetTypeName () const
 
bool has_current_action () const
 
void clear_current_action ()
 
const StringPiece get_current_action () const
 
void set_current_action (const StringPiece &value)
 
bool has_id () const
 
void clear_id ()
 
uint64 get_id () const
 
void set_id (uint64 value)
 
bool has_instance () const
 
void clear_instance ()
 
const StringPiece get_instance () const
 
void set_instance (const StringPiece &value)
 
bool has_instance_status () const
 
void clear_instance_status ()
 
const StringPiece get_instance_status () const
 
void set_instance_status (const StringPiece &value)
 
bool has_last_attempt () const
 
void clear_last_attempt ()
 
const ManagedInstanceLastAttempt get_last_attempt () const
 
ManagedInstanceLastAttempt mutable_lastAttempt ()
 
bool has_version () const
 
void clear_version ()
 
const ManagedInstanceVersion get_version () const
 
ManagedInstanceVersion mutable_version ()
 

Static Public Member Functions

static ManagedInstanceNew ()
 

Detailed Description

A Managed Instance resource.

Constructor & Destructor Documentation

◆ ManagedInstance() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ ManagedInstance() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~ManagedInstance()

google_compute_api::ManagedInstance::~ManagedInstance ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_current_action()

void google_compute_api::ManagedInstance::clear_current_action ( )
inline

Clears the 'currentAction' attribute.

◆ clear_id()

void google_compute_api::ManagedInstance::clear_id ( )
inline

Clears the 'id' attribute.

◆ clear_instance()

void google_compute_api::ManagedInstance::clear_instance ( )
inline

Clears the 'instance' attribute.

◆ clear_instance_status()

void google_compute_api::ManagedInstance::clear_instance_status ( )
inline

Clears the 'instanceStatus' attribute.

◆ clear_last_attempt()

void google_compute_api::ManagedInstance::clear_last_attempt ( )
inline

Clears the 'lastAttempt' attribute.

◆ clear_version()

void google_compute_api::ManagedInstance::clear_version ( )
inline

Clears the 'version' attribute.

◆ get_current_action()

const StringPiece google_compute_api::ManagedInstance::get_current_action ( ) const
inline

Get the value of the 'currentAction' attribute.

◆ get_id()

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

Get the value of the 'id' attribute.

◆ get_instance()

const StringPiece google_compute_api::ManagedInstance::get_instance ( ) const
inline

Get the value of the 'instance' attribute.

◆ get_instance_status()

const StringPiece google_compute_api::ManagedInstance::get_instance_status ( ) const
inline

Get the value of the 'instanceStatus' attribute.

◆ get_last_attempt()

const ManagedInstanceLastAttempt google_compute_api::ManagedInstance::get_last_attempt ( ) const

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

◆ get_version()

const ManagedInstanceVersion google_compute_api::ManagedInstance::get_version ( ) const

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

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_compute_api::ManagedInstance

◆ has_current_action()

bool google_compute_api::ManagedInstance::has_current_action ( ) const
inline

Determine if the 'currentAction' attribute was set.

Returns
true if the 'currentAction' attribute was set.

◆ has_id()

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

Determine if the 'id' attribute was set.

Returns
true if the 'id' attribute was set.

◆ has_instance()

bool google_compute_api::ManagedInstance::has_instance ( ) const
inline

Determine if the 'instance' attribute was set.

Returns
true if the 'instance' attribute was set.

◆ has_instance_status()

bool google_compute_api::ManagedInstance::has_instance_status ( ) const
inline

Determine if the 'instanceStatus' attribute was set.

Returns
true if the 'instanceStatus' attribute was set.

◆ has_last_attempt()

bool google_compute_api::ManagedInstance::has_last_attempt ( ) const
inline

Determine if the 'lastAttempt' attribute was set.

Returns
true if the 'lastAttempt' attribute was set.

◆ has_version()

bool google_compute_api::ManagedInstance::has_version ( ) const
inline

Determine if the 'version' attribute was set.

Returns
true if the 'version' attribute was set.

◆ mutable_lastAttempt()

ManagedInstanceLastAttempt google_compute_api::ManagedInstance::mutable_lastAttempt ( )

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

[Output Only] Information about the last attempt to create or delete the instance.

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

◆ mutable_version()

ManagedInstanceVersion google_compute_api::ManagedInstance::mutable_version ( )

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

[Output Only] Intended version of this instance.

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

◆ New()

ManagedInstance * google_compute_api::ManagedInstance::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_current_action()

void google_compute_api::ManagedInstance::set_current_action ( const StringPiece &  value)
inline

Change the 'currentAction' attribute.

[Output Only] The current action that the managed instance group has scheduled for the instance. Possible values:

  • NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance.
  • CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful.
  • CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead.
  • RECREATING The managed instance group is recreating this instance.
  • DELETING The managed instance group is permanently deleting this instance.
  • ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group.
  • RESTARTING The managed instance group is restarting the instance.
  • REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance.
  • VERIFYING The managed instance group has created the instance and it is in the process of being verified.
Parameters
[in]valueThe new value.

◆ set_id()

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

Change the 'id' attribute.

[Output only] The unique identifier for this resource. This field is empty when instance does not exist.

Parameters
[in]valueThe new value.

◆ set_instance()

void google_compute_api::ManagedInstance::set_instance ( const StringPiece &  value)
inline

Change the 'instance' attribute.

[Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created.

Parameters
[in]valueThe new value.

◆ set_instance_status()

void google_compute_api::ManagedInstance::set_instance_status ( const StringPiece &  value)
inline

Change the 'instanceStatus' attribute.

[Output Only] The status of the instance. This field is empty when the instance does not exist.

Parameters
[in]valueThe new value.

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