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

#include <instance.h>

Inheritance diagram for google_compute_api::Instance:

Public Member Functions

 Instance (const Json::Value &storage)
 
 Instance (Json::Value *storage)
 
virtual ~Instance ()
 
const StringPiece GetTypeName () const
 
bool has_can_ip_forward () const
 
void clear_can_ip_forward ()
 
bool get_can_ip_forward () const
 
void set_can_ip_forward (bool value)
 
bool has_cpu_platform () const
 
void clear_cpu_platform ()
 
const StringPiece get_cpu_platform () const
 
void set_cpu_platform (const StringPiece &value)
 
bool has_creation_timestamp () const
 
void clear_creation_timestamp ()
 
const StringPiece get_creation_timestamp () const
 
void set_creation_timestamp (const StringPiece &value)
 
bool has_deletion_protection () const
 
void clear_deletion_protection ()
 
bool get_deletion_protection () const
 
void set_deletion_protection (bool value)
 
bool has_description () const
 
void clear_description ()
 
const StringPiece get_description () const
 
void set_description (const StringPiece &value)
 
bool has_disks () const
 
void clear_disks ()
 
const client::JsonCppArray< AttachedDiskget_disks () const
 
client::JsonCppArray< AttachedDiskmutable_disks ()
 
bool has_guest_accelerators () const
 
void clear_guest_accelerators ()
 
const client::JsonCppArray< AcceleratorConfigget_guest_accelerators () const
 
client::JsonCppArray< AcceleratorConfigmutable_guestAccelerators ()
 
bool has_hostname () const
 
void clear_hostname ()
 
const StringPiece get_hostname () const
 
void set_hostname (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_label_fingerprint () const
 
void clear_label_fingerprint ()
 
const StringPiece get_label_fingerprint () const
 
void set_label_fingerprint (const StringPiece &value)
 
bool has_labels () const
 
void clear_labels ()
 
const client::JsonCppAssociativeArray< string > get_labels () const
 
client::JsonCppAssociativeArray< string > mutable_labels ()
 
bool has_machine_type () const
 
void clear_machine_type ()
 
const StringPiece get_machine_type () const
 
void set_machine_type (const StringPiece &value)
 
bool has_metadata () const
 
void clear_metadata ()
 
const Metadata get_metadata () const
 
Metadata mutable_metadata ()
 
bool has_min_cpu_platform () const
 
void clear_min_cpu_platform ()
 
const StringPiece get_min_cpu_platform () const
 
void set_min_cpu_platform (const StringPiece &value)
 
bool has_name () const
 
void clear_name ()
 
const StringPiece get_name () const
 
void set_name (const StringPiece &value)
 
bool has_network_interfaces () const
 
void clear_network_interfaces ()
 
const client::JsonCppArray< NetworkInterfaceget_network_interfaces () const
 
client::JsonCppArray< NetworkInterfacemutable_networkInterfaces ()
 
bool has_scheduling () const
 
void clear_scheduling ()
 
const Scheduling get_scheduling () const
 
Scheduling mutable_scheduling ()
 
bool has_self_link () const
 
void clear_self_link ()
 
const StringPiece get_self_link () const
 
void set_self_link (const StringPiece &value)
 
bool has_service_accounts () const
 
void clear_service_accounts ()
 
const client::JsonCppArray< ServiceAccountget_service_accounts () const
 
client::JsonCppArray< ServiceAccountmutable_serviceAccounts ()
 
bool has_shielded_instance_config () const
 
void clear_shielded_instance_config ()
 
const ShieldedInstanceConfig get_shielded_instance_config () const
 
ShieldedInstanceConfig mutable_shieldedInstanceConfig ()
 
bool has_shielded_instance_integrity_policy () const
 
void clear_shielded_instance_integrity_policy ()
 
const ShieldedInstanceIntegrityPolicy get_shielded_instance_integrity_policy () const
 
ShieldedInstanceIntegrityPolicy mutable_shieldedInstanceIntegrityPolicy ()
 
bool has_start_restricted () const
 
void clear_start_restricted ()
 
bool get_start_restricted () const
 
void set_start_restricted (bool value)
 
bool has_status () const
 
void clear_status ()
 
const StringPiece get_status () const
 
void set_status (const StringPiece &value)
 
bool has_status_message () const
 
void clear_status_message ()
 
const StringPiece get_status_message () const
 
void set_status_message (const StringPiece &value)
 
bool has_tags () const
 
void clear_tags ()
 
const Tags get_tags () const
 
Tags mutable_tags ()
 
bool has_zone () const
 
void clear_zone ()
 
const StringPiece get_zone () const
 
void set_zone (const StringPiece &value)
 

Static Public Member Functions

static InstanceNew ()
 

Detailed Description

An Instance resource. (== resource_for beta.instances ==) (== resource_for v1.instances ==).

Constructor & Destructor Documentation

◆ Instance() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ Instance() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~Instance()

google_compute_api::Instance::~Instance ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_can_ip_forward()

void google_compute_api::Instance::clear_can_ip_forward ( )
inline

Clears the 'canIpForward' attribute.

◆ clear_cpu_platform()

void google_compute_api::Instance::clear_cpu_platform ( )
inline

Clears the 'cpuPlatform' attribute.

◆ clear_creation_timestamp()

void google_compute_api::Instance::clear_creation_timestamp ( )
inline

Clears the 'creationTimestamp' attribute.

◆ clear_deletion_protection()

void google_compute_api::Instance::clear_deletion_protection ( )
inline

Clears the 'deletionProtection' attribute.

◆ clear_description()

void google_compute_api::Instance::clear_description ( )
inline

Clears the 'description' attribute.

◆ clear_disks()

void google_compute_api::Instance::clear_disks ( )
inline

Clears the 'disks' attribute.

◆ clear_guest_accelerators()

void google_compute_api::Instance::clear_guest_accelerators ( )
inline

Clears the 'guestAccelerators' attribute.

◆ clear_hostname()

void google_compute_api::Instance::clear_hostname ( )
inline

Clears the 'hostname' attribute.

◆ clear_id()

void google_compute_api::Instance::clear_id ( )
inline

Clears the 'id' attribute.

◆ clear_kind()

void google_compute_api::Instance::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_label_fingerprint()

void google_compute_api::Instance::clear_label_fingerprint ( )
inline

Clears the 'labelFingerprint' attribute.

◆ clear_labels()

void google_compute_api::Instance::clear_labels ( )
inline

Clears the 'labels' attribute.

◆ clear_machine_type()

void google_compute_api::Instance::clear_machine_type ( )
inline

Clears the 'machineType' attribute.

◆ clear_metadata()

void google_compute_api::Instance::clear_metadata ( )
inline

Clears the 'metadata' attribute.

◆ clear_min_cpu_platform()

void google_compute_api::Instance::clear_min_cpu_platform ( )
inline

Clears the 'minCpuPlatform' attribute.

◆ clear_name()

void google_compute_api::Instance::clear_name ( )
inline

Clears the 'name' attribute.

◆ clear_network_interfaces()

void google_compute_api::Instance::clear_network_interfaces ( )
inline

Clears the 'networkInterfaces' attribute.

◆ clear_scheduling()

void google_compute_api::Instance::clear_scheduling ( )
inline

Clears the 'scheduling' attribute.

◆ clear_self_link()

void google_compute_api::Instance::clear_self_link ( )
inline

Clears the 'selfLink' attribute.

◆ clear_service_accounts()

void google_compute_api::Instance::clear_service_accounts ( )
inline

Clears the 'serviceAccounts' attribute.

◆ clear_shielded_instance_config()

void google_compute_api::Instance::clear_shielded_instance_config ( )
inline

Clears the 'shieldedInstanceConfig' attribute.

◆ clear_shielded_instance_integrity_policy()

void google_compute_api::Instance::clear_shielded_instance_integrity_policy ( )
inline

Clears the 'shieldedInstanceIntegrityPolicy' attribute.

◆ clear_start_restricted()

void google_compute_api::Instance::clear_start_restricted ( )
inline

Clears the 'startRestricted' attribute.

◆ clear_status()

void google_compute_api::Instance::clear_status ( )
inline

Clears the 'status' attribute.

◆ clear_status_message()

void google_compute_api::Instance::clear_status_message ( )
inline

Clears the 'statusMessage' attribute.

◆ clear_tags()

void google_compute_api::Instance::clear_tags ( )
inline

Clears the 'tags' attribute.

◆ clear_zone()

void google_compute_api::Instance::clear_zone ( )
inline

Clears the 'zone' attribute.

◆ get_can_ip_forward()

bool google_compute_api::Instance::get_can_ip_forward ( ) const
inline

Get the value of the 'canIpForward' attribute.

◆ get_cpu_platform()

const StringPiece google_compute_api::Instance::get_cpu_platform ( ) const
inline

Get the value of the 'cpuPlatform' attribute.

◆ get_creation_timestamp()

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

Get the value of the 'creationTimestamp' attribute.

◆ get_deletion_protection()

bool google_compute_api::Instance::get_deletion_protection ( ) const
inline

Get the value of the 'deletionProtection' attribute.

◆ get_description()

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

Get the value of the 'description' attribute.

◆ get_disks()

const client::JsonCppArray<AttachedDisk > google_compute_api::Instance::get_disks ( ) const

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

◆ get_guest_accelerators()

const client::JsonCppArray<AcceleratorConfig > google_compute_api::Instance::get_guest_accelerators ( ) const

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

◆ get_hostname()

const StringPiece google_compute_api::Instance::get_hostname ( ) const
inline

Get the value of the 'hostname' attribute.

◆ get_id()

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

Get the value of the 'id' attribute.

◆ get_kind()

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

Get the value of the 'kind' attribute.

◆ get_label_fingerprint()

const StringPiece google_compute_api::Instance::get_label_fingerprint ( ) const
inline

Get the value of the 'labelFingerprint' attribute.

◆ get_labels()

const client::JsonCppAssociativeArray<string > google_compute_api::Instance::get_labels ( ) const
inline

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

◆ get_machine_type()

const StringPiece google_compute_api::Instance::get_machine_type ( ) const
inline

Get the value of the 'machineType' attribute.

◆ get_metadata()

const Metadata google_compute_api::Instance::get_metadata ( ) const

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

◆ get_min_cpu_platform()

const StringPiece google_compute_api::Instance::get_min_cpu_platform ( ) const
inline

Get the value of the 'minCpuPlatform' attribute.

◆ get_name()

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

Get the value of the 'name' attribute.

◆ get_network_interfaces()

const client::JsonCppArray<NetworkInterface > google_compute_api::Instance::get_network_interfaces ( ) const

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

◆ get_scheduling()

const Scheduling google_compute_api::Instance::get_scheduling ( ) const

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

◆ get_self_link()

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

Get the value of the 'selfLink' attribute.

◆ get_service_accounts()

const client::JsonCppArray<ServiceAccount > google_compute_api::Instance::get_service_accounts ( ) const

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

◆ get_shielded_instance_config()

const ShieldedInstanceConfig google_compute_api::Instance::get_shielded_instance_config ( ) const

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

◆ get_shielded_instance_integrity_policy()

const ShieldedInstanceIntegrityPolicy google_compute_api::Instance::get_shielded_instance_integrity_policy ( ) const

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

◆ get_start_restricted()

bool google_compute_api::Instance::get_start_restricted ( ) const
inline

Get the value of the 'startRestricted' attribute.

◆ get_status()

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

Get the value of the 'status' attribute.

◆ get_status_message()

const StringPiece google_compute_api::Instance::get_status_message ( ) const
inline

Get the value of the 'statusMessage' attribute.

◆ get_tags()

const Tags google_compute_api::Instance::get_tags ( ) const

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

◆ get_zone()

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

Get the value of the 'zone' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_compute_api::Instance

◆ has_can_ip_forward()

bool google_compute_api::Instance::has_can_ip_forward ( ) const
inline

Determine if the 'canIpForward' attribute was set.

Returns
true if the 'canIpForward' attribute was set.

◆ has_cpu_platform()

bool google_compute_api::Instance::has_cpu_platform ( ) const
inline

Determine if the 'cpuPlatform' attribute was set.

Returns
true if the 'cpuPlatform' attribute was set.

◆ has_creation_timestamp()

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

Determine if the 'creationTimestamp' attribute was set.

Returns
true if the 'creationTimestamp' attribute was set.

◆ has_deletion_protection()

bool google_compute_api::Instance::has_deletion_protection ( ) const
inline

Determine if the 'deletionProtection' attribute was set.

Returns
true if the 'deletionProtection' attribute was set.

◆ has_description()

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

Determine if the 'description' attribute was set.

Returns
true if the 'description' attribute was set.

◆ has_disks()

bool google_compute_api::Instance::has_disks ( ) const
inline

Determine if the 'disks' attribute was set.

Returns
true if the 'disks' attribute was set.

◆ has_guest_accelerators()

bool google_compute_api::Instance::has_guest_accelerators ( ) const
inline

Determine if the 'guestAccelerators' attribute was set.

Returns
true if the 'guestAccelerators' attribute was set.

◆ has_hostname()

bool google_compute_api::Instance::has_hostname ( ) const
inline

Determine if the 'hostname' attribute was set.

Returns
true if the 'hostname' attribute was set.

◆ has_id()

bool google_compute_api::Instance::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::Instance::has_kind ( ) const
inline

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ has_label_fingerprint()

bool google_compute_api::Instance::has_label_fingerprint ( ) const
inline

Determine if the 'labelFingerprint' attribute was set.

Returns
true if the 'labelFingerprint' attribute was set.

◆ has_labels()

bool google_compute_api::Instance::has_labels ( ) const
inline

Determine if the 'labels' attribute was set.

Returns
true if the 'labels' attribute was set.

◆ has_machine_type()

bool google_compute_api::Instance::has_machine_type ( ) const
inline

Determine if the 'machineType' attribute was set.

Returns
true if the 'machineType' attribute was set.

◆ has_metadata()

bool google_compute_api::Instance::has_metadata ( ) const
inline

Determine if the 'metadata' attribute was set.

Returns
true if the 'metadata' attribute was set.

◆ has_min_cpu_platform()

bool google_compute_api::Instance::has_min_cpu_platform ( ) const
inline

Determine if the 'minCpuPlatform' attribute was set.

Returns
true if the 'minCpuPlatform' attribute was set.

◆ has_name()

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

Determine if the 'name' attribute was set.

Returns
true if the 'name' attribute was set.

◆ has_network_interfaces()

bool google_compute_api::Instance::has_network_interfaces ( ) const
inline

Determine if the 'networkInterfaces' attribute was set.

Returns
true if the 'networkInterfaces' attribute was set.

◆ has_scheduling()

bool google_compute_api::Instance::has_scheduling ( ) const
inline

Determine if the 'scheduling' attribute was set.

Returns
true if the 'scheduling' attribute was set.

◆ has_self_link()

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

Determine if the 'selfLink' attribute was set.

Returns
true if the 'selfLink' attribute was set.

◆ has_service_accounts()

bool google_compute_api::Instance::has_service_accounts ( ) const
inline

Determine if the 'serviceAccounts' attribute was set.

Returns
true if the 'serviceAccounts' attribute was set.

◆ has_shielded_instance_config()

bool google_compute_api::Instance::has_shielded_instance_config ( ) const
inline

Determine if the 'shieldedInstanceConfig' attribute was set.

Returns
true if the 'shieldedInstanceConfig' attribute was set.

◆ has_shielded_instance_integrity_policy()

bool google_compute_api::Instance::has_shielded_instance_integrity_policy ( ) const
inline

Determine if the 'shieldedInstanceIntegrityPolicy' attribute was set.

Returns
true if the 'shieldedInstanceIntegrityPolicy' attribute was set.

◆ has_start_restricted()

bool google_compute_api::Instance::has_start_restricted ( ) const
inline

Determine if the 'startRestricted' attribute was set.

Returns
true if the 'startRestricted' attribute was set.

◆ has_status()

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

Determine if the 'status' attribute was set.

Returns
true if the 'status' attribute was set.

◆ has_status_message()

bool google_compute_api::Instance::has_status_message ( ) const
inline

Determine if the 'statusMessage' attribute was set.

Returns
true if the 'statusMessage' attribute was set.

◆ has_tags()

bool google_compute_api::Instance::has_tags ( ) const
inline

Determine if the 'tags' attribute was set.

Returns
true if the 'tags' attribute was set.

◆ has_zone()

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

Determine if the 'zone' attribute was set.

Returns
true if the 'zone' attribute was set.

◆ mutable_disks()

client::JsonCppArray<AttachedDisk > google_compute_api::Instance::mutable_disks ( )

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

Array of disks associated with this instance. Persistent disks must be created before you can assign them.

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

◆ mutable_guestAccelerators()

client::JsonCppArray<AcceleratorConfig > google_compute_api::Instance::mutable_guestAccelerators ( )

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

A list of the type and count of accelerator cards attached to the instance.

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

◆ mutable_labels()

client::JsonCppAssociativeArray<string > google_compute_api::Instance::mutable_labels ( )
inline

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

Labels to apply to this instance. These can be later modified by the setLabels method.

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

◆ mutable_metadata()

Metadata google_compute_api::Instance::mutable_metadata ( )

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

The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys.

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

◆ mutable_networkInterfaces()

client::JsonCppArray<NetworkInterface > google_compute_api::Instance::mutable_networkInterfaces ( )

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

An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance.

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

◆ mutable_scheduling()

Scheduling google_compute_api::Instance::mutable_scheduling ( )

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

Sets the scheduling options for this instance.

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

◆ mutable_serviceAccounts()

client::JsonCppArray<ServiceAccount > google_compute_api::Instance::mutable_serviceAccounts ( )

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

A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported.

Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.

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

◆ mutable_shieldedInstanceConfig()

ShieldedInstanceConfig google_compute_api::Instance::mutable_shieldedInstanceConfig ( )

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

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

◆ mutable_shieldedInstanceIntegrityPolicy()

ShieldedInstanceIntegrityPolicy google_compute_api::Instance::mutable_shieldedInstanceIntegrityPolicy ( )

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

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

◆ mutable_tags()

Tags google_compute_api::Instance::mutable_tags ( )

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

Tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035. Multiple tags can be specified via the 'tags.items' field.

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

◆ New()

Instance * google_compute_api::Instance::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_can_ip_forward()

void google_compute_api::Instance::set_can_ip_forward ( bool  value)
inline

Change the 'canIpForward' attribute.

Allows this instance to send and receive packets with non-matching destination or source IPs. This is required if you plan to use this instance to forward routes. For more information, see Enabling IP Forwarding.

Parameters
[in]valueThe new value.

◆ set_cpu_platform()

void google_compute_api::Instance::set_cpu_platform ( const StringPiece &  value)
inline

Change the 'cpuPlatform' attribute.

[Output Only] The CPU platform used by this instance.

Parameters
[in]valueThe new value.

◆ set_creation_timestamp()

void google_compute_api::Instance::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_deletion_protection()

void google_compute_api::Instance::set_deletion_protection ( bool  value)
inline

Change the 'deletionProtection' attribute.

Whether the resource should be protected against deletion.

Parameters
[in]valueThe new value.

◆ set_description()

void google_compute_api::Instance::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_hostname()

void google_compute_api::Instance::set_hostname ( const StringPiece &  value)
inline

Change the 'hostname' attribute.

Parameters
[in]valueThe new value.

◆ set_id()

void google_compute_api::Instance::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::Instance::set_kind ( const StringPiece &  value)
inline

Change the 'kind' attribute.

[Output Only] Type of the resource. Always compute::instance for instances.

Parameters
[in]valueThe new value.

◆ set_label_fingerprint()

void google_compute_api::Instance::set_label_fingerprint ( const StringPiece &  value)
inline

Change the 'labelFingerprint' attribute.

A fingerprint for this request, which is essentially a hash of the label's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels.

To see the latest fingerprint, make get() request to the instance.

Parameters
[in]valueThe new value.

◆ set_machine_type()

void google_compute_api::Instance::set_machine_type ( const StringPiece &  value)
inline

Change the 'machineType' attribute.

Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type. This is provided by the client when the instance is created. For example, the following is a valid partial url to a predefined machine type: zones/us-central1-f/machineTypes/n1-standard-1

MB)
zones/zone/machineTypes/custom-CPUS-MEMORY.
example
zones/us-central1-f/machineTypes/custom-4-5120.
Parameters
[in]valueThe new value.

◆ set_min_cpu_platform()

void google_compute_api::Instance::set_min_cpu_platform ( const StringPiece &  value)
inline

Change the 'minCpuPlatform' attribute.

Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge".

Parameters
[in]valueThe new value.

◆ set_name()

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

Change the 'name' attribute.

The name of the resource, provided by the client when initially creating the resource. The resource 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_self_link()

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

Change the 'selfLink' attribute.

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

Parameters
[in]valueThe new value.

◆ set_start_restricted()

void google_compute_api::Instance::set_start_restricted ( bool  value)
inline

Change the 'startRestricted' attribute.

[Output Only] Whether a VM has been restricted for start because Compute Engine has detected suspicious activity.

Parameters
[in]valueThe new value.

◆ set_status()

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

Change the 'status' attribute.

[Output Only] The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, STOPPED, SUSPENDING, SUSPENDED, and TERMINATED.

Parameters
[in]valueThe new value.

◆ set_status_message()

void google_compute_api::Instance::set_status_message ( const StringPiece &  value)
inline

Change the 'statusMessage' attribute.

[Output Only] An optional, human-readable explanation of the status.

Parameters
[in]valueThe new value.

◆ set_zone()

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

Change the 'zone' attribute.

[Output Only] URL of the zone where the instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

Parameters
[in]valueThe new value.

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