compute
v1
|
#include <instance.h>
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< AttachedDisk > | get_disks () const |
client::JsonCppArray< AttachedDisk > | mutable_disks () |
bool | has_guest_accelerators () const |
void | clear_guest_accelerators () |
const client::JsonCppArray< AcceleratorConfig > | get_guest_accelerators () const |
client::JsonCppArray< AcceleratorConfig > | mutable_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< NetworkInterface > | get_network_interfaces () const |
client::JsonCppArray< NetworkInterface > | mutable_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< ServiceAccount > | get_service_accounts () const |
client::JsonCppArray< ServiceAccount > | mutable_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 Instance * | New () |
An Instance resource. (== resource_for beta.instances ==) (== resource_for v1.instances ==).
|
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 'canIpForward
' attribute.
|
inline |
Clears the 'cpuPlatform
' attribute.
|
inline |
Clears the 'creationTimestamp
' attribute.
|
inline |
Clears the 'deletionProtection
' attribute.
|
inline |
Clears the 'description
' attribute.
|
inline |
Clears the 'disks
' attribute.
|
inline |
Clears the 'guestAccelerators
' attribute.
|
inline |
Clears the 'hostname
' attribute.
|
inline |
Clears the 'id
' attribute.
|
inline |
Clears the 'kind
' attribute.
|
inline |
Clears the 'labelFingerprint
' attribute.
|
inline |
Clears the 'labels
' attribute.
|
inline |
Clears the 'machineType
' attribute.
|
inline |
Clears the 'metadata
' attribute.
|
inline |
Clears the 'minCpuPlatform
' attribute.
|
inline |
Clears the 'name
' attribute.
|
inline |
Clears the 'networkInterfaces
' attribute.
|
inline |
Clears the 'scheduling
' attribute.
|
inline |
Clears the 'selfLink
' attribute.
|
inline |
Clears the 'serviceAccounts
' attribute.
|
inline |
Clears the 'shieldedInstanceConfig
' attribute.
|
inline |
Clears the 'shieldedInstanceIntegrityPolicy
' attribute.
|
inline |
Clears the 'startRestricted
' attribute.
|
inline |
Clears the 'status
' attribute.
|
inline |
Clears the 'statusMessage
' attribute.
|
inline |
Clears the 'tags
' attribute.
|
inline |
Clears the 'zone
' attribute.
|
inline |
Get the value of the 'canIpForward
' attribute.
|
inline |
Get the value of the 'cpuPlatform
' attribute.
|
inline |
Get the value of the 'creationTimestamp
' attribute.
|
inline |
Get the value of the 'deletionProtection
' attribute.
|
inline |
Get the value of the 'description
' attribute.
const client::JsonCppArray<AttachedDisk > google_compute_api::Instance::get_disks | ( | ) | const |
Get a reference to the value of the 'disks
' attribute.
const client::JsonCppArray<AcceleratorConfig > google_compute_api::Instance::get_guest_accelerators | ( | ) | const |
Get a reference to the value of the 'guestAccelerators
' attribute.
|
inline |
Get the value of the 'hostname
' attribute.
|
inline |
Get the value of the 'id
' attribute.
|
inline |
Get the value of the 'kind
' attribute.
|
inline |
Get the value of the 'labelFingerprint
' attribute.
|
inline |
Get a reference to the value of the 'labels
' attribute.
|
inline |
Get the value of the 'machineType
' attribute.
const Metadata google_compute_api::Instance::get_metadata | ( | ) | const |
Get a reference to the value of the 'metadata
' attribute.
|
inline |
Get the value of the 'minCpuPlatform
' attribute.
|
inline |
Get the value of the 'name
' attribute.
const client::JsonCppArray<NetworkInterface > google_compute_api::Instance::get_network_interfaces | ( | ) | const |
Get a reference to the value of the 'networkInterfaces
' attribute.
const Scheduling google_compute_api::Instance::get_scheduling | ( | ) | const |
Get a reference to the value of the 'scheduling
' attribute.
|
inline |
Get the value of the 'selfLink
' attribute.
const client::JsonCppArray<ServiceAccount > google_compute_api::Instance::get_service_accounts | ( | ) | const |
Get a reference to the value of the 'serviceAccounts
' attribute.
const ShieldedInstanceConfig google_compute_api::Instance::get_shielded_instance_config | ( | ) | const |
Get a reference to the value of the 'shieldedInstanceConfig
' attribute.
const ShieldedInstanceIntegrityPolicy google_compute_api::Instance::get_shielded_instance_integrity_policy | ( | ) | const |
Get a reference to the value of the 'shieldedInstanceIntegrityPolicy
' attribute.
|
inline |
Get the value of the 'startRestricted
' attribute.
|
inline |
Get the value of the 'status
' attribute.
|
inline |
Get the value of the 'statusMessage
' attribute.
const Tags google_compute_api::Instance::get_tags | ( | ) | const |
Get a reference to the value of the 'tags
' attribute.
|
inline |
Get the value of the 'zone
' attribute.
|
inline |
Returns a string denoting the type of this data object.
google_compute_api::Instance
|
inline |
Determine if the 'canIpForward
' attribute was set.
canIpForward
' attribute was set.
|
inline |
Determine if the 'cpuPlatform
' attribute was set.
cpuPlatform
' attribute was set.
|
inline |
Determine if the 'creationTimestamp
' attribute was set.
creationTimestamp
' attribute was set.
|
inline |
Determine if the 'deletionProtection
' attribute was set.
deletionProtection
' attribute was set.
|
inline |
Determine if the 'description
' attribute was set.
description
' attribute was set.
|
inline |
Determine if the 'disks
' attribute was set.
disks
' attribute was set.
|
inline |
Determine if the 'guestAccelerators
' attribute was set.
guestAccelerators
' attribute was set.
|
inline |
Determine if the 'hostname
' attribute was set.
hostname
' 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 'labelFingerprint
' attribute was set.
labelFingerprint
' attribute was set.
|
inline |
Determine if the 'labels
' attribute was set.
labels
' attribute was set.
|
inline |
Determine if the 'machineType
' attribute was set.
machineType
' attribute was set.
|
inline |
Determine if the 'metadata
' attribute was set.
metadata
' attribute was set.
|
inline |
Determine if the 'minCpuPlatform
' attribute was set.
minCpuPlatform
' attribute was set.
|
inline |
Determine if the 'name
' attribute was set.
name
' attribute was set.
|
inline |
Determine if the 'networkInterfaces
' attribute was set.
networkInterfaces
' attribute was set.
|
inline |
Determine if the 'scheduling
' attribute was set.
scheduling
' attribute was set.
|
inline |
Determine if the 'selfLink
' attribute was set.
selfLink
' attribute was set.
|
inline |
Determine if the 'serviceAccounts
' attribute was set.
serviceAccounts
' attribute was set.
|
inline |
Determine if the 'shieldedInstanceConfig
' attribute was set.
shieldedInstanceConfig
' attribute was set.
|
inline |
Determine if the 'shieldedInstanceIntegrityPolicy
' attribute was set.
shieldedInstanceIntegrityPolicy
' attribute was set.
|
inline |
Determine if the 'startRestricted
' attribute was set.
startRestricted
' attribute was set.
|
inline |
Determine if the 'status
' attribute was set.
status
' attribute was set.
|
inline |
Determine if the 'statusMessage
' attribute was set.
statusMessage
' attribute was set.
|
inline |
Determine if the 'tags
' attribute was set.
tags
' attribute was set.
|
inline |
Determine if the 'zone
' attribute was set.
zone
' attribute was set. 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.
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.
|
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.
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.
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.
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.
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.
ShieldedInstanceConfig google_compute_api::Instance::mutable_shieldedInstanceConfig | ( | ) |
Gets a reference to a mutable value of the 'shieldedInstanceConfig
' property.
ShieldedInstanceIntegrityPolicy google_compute_api::Instance::mutable_shieldedInstanceIntegrityPolicy | ( | ) |
Gets a reference to a mutable value of the 'shieldedInstanceIntegrityPolicy
' property.
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.
|
static |
Creates a new default instance.
|
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.
[in] | value | The new value. |
|
inline |
Change the 'cpuPlatform
' attribute.
[Output Only] The CPU platform used by this instance.
[in] | value | The new value. |
|
inline |
Change the 'creationTimestamp
' attribute.
[Output Only] Creation timestamp in RFC3339 text format.
[in] | value | The new value. |
|
inline |
Change the 'deletionProtection
' attribute.
Whether the resource should be protected against deletion.
[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 'hostname
' attribute.
[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::instance for instances.
[in] | value | The new 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.
[in] | value | The new 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
[in] | value | The new 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".
[in] | value | The new 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.
[in] | value | The new value. |
|
inline |
Change the 'selfLink
' attribute.
[Output Only] Server-defined URL for this resource.
[in] | value | The new value. |
|
inline |
Change the 'startRestricted
' attribute.
[Output Only] Whether a VM has been restricted for start because Compute Engine has detected suspicious activity.
[in] | value | The new 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.
[in] | value | The new value. |
|
inline |
Change the 'statusMessage
' attribute.
[Output Only] An optional, human-readable explanation of the status.
[in] | value | The new 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.
[in] | value | The new value. |