[−][src]Struct google_compute1::Instance
Represents an Instance resource.
An instance is a virtual machine that is hosted on Google Cloud Platform. For more information, read Virtual Machine Instances. (== resource_for beta.instances ==) (== resource_for v1.instances ==)
Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- get serial port output instances (none)
- stop instances (none)
- get iam policy instances (none)
- get instances (response)
- set tags instances (none)
- set disk auto delete instances (none)
- update shielded instance config instances (none)
- set metadata instances (none)
- simulate maintenance event instances (none)
- detach disk instances (none)
- delete access config instances (none)
- set machine type instances (none)
- insert instances (request)
- update network interface instances (none)
- add access config instances (none)
- set machine resources instances (none)
- set labels instances (none)
- update access config instances (none)
- set deletion protection instances (none)
- set shielded instance integrity policy instances (none)
- set service account instances (none)
- list referrers instances (none)
- set scheduling instances (none)
- delete instances (none)
- reset instances (none)
- get guest attributes instances (none)
- get shielded instance identity instances (none)
- test iam permissions instances (none)
- attach disk instances (none)
- list instances (none)
- start instances (none)
- start with encryption key instances (none)
- set min cpu platform instances (none)
- set iam policy instances (none)
- aggregated list instances (none)
Fields
cpu_platform: Option<String>
[Output Only] The CPU platform used by this instance.
deletion_protection: Option<bool>
Whether the resource should be protected against deletion.
disks: Option<Vec<AttachedDisk>>
Array of disks associated with this instance. Persistent disks must be created before you can assign them.
can_ip_forward: Option<bool>
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.
description: Option<String>
An optional description of this resource. Provide this property when you create the resource.
reservation_affinity: Option<ReservationAffinity>
Specifies the reservations that this instance can consume from.
guest_accelerators: Option<Vec<AcceleratorConfig>>
A list of the type and count of accelerator cards attached to the instance.
labels: Option<HashMap<String, String>>
Labels to apply to this instance. These can be later modified by the setLabels method.
scheduling: Option<Scheduling>
Sets the scheduling options for this instance.
min_cpu_platform: Option<String>
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".
service_accounts: Option<Vec<ServiceAccount>>
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.
machine_type: Option<String>
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
To create a custom machine type, provide a URL to a machine type in the following format, where CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of memory is 5120 MB): zones/zone/machineTypes/custom-CPUS-MEMORY
For example: zones/us-central1-f/machineTypes/custom-4-5120
For a full list of restrictions, read the Specifications for custom machine types.
creation_timestamp: Option<String>
[Output Only] Creation timestamp in RFC3339 text format.
id: Option<String>
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
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.
network_interfaces: Option<Vec<NetworkInterface>>
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.
start_restricted: Option<bool>
[Output Only] Whether a VM has been restricted for start because Compute Engine has detected suspicious activity.
kind: Option<String>
[Output Only] Type of the resource. Always compute#instance for instances.
shielded_instance_config: Option<ShieldedInstanceConfig>
no description provided
zone: Option<String>
[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.
hostname: Option<String>
no description provided
name: Option<String>
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.
status: Option<String>
[Output Only] The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, STOPPED, SUSPENDING, SUSPENDED, and TERMINATED.
self_link: Option<String>
[Output Only] Server-defined URL for this resource.
shielded_instance_integrity_policy: Option<ShieldedInstanceIntegrityPolicy>
no description provided
label_fingerprint: Option<String>
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.
status_message: Option<String>
[Output Only] An optional, human-readable explanation of the status.
metadata: Option<Metadata>
The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys.
Trait Implementations
impl Resource for Instance
[src]
impl ResponseResult for Instance
[src]
impl RequestValue for Instance
[src]
impl Default for Instance
[src]
impl Clone for Instance
[src]
fn clone(&self) -> Instance
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Instance
[src]
impl Serialize for Instance
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Instance
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for Instance
impl Unpin for Instance
impl Sync for Instance
impl UnwindSafe for Instance
impl RefUnwindSafe for Instance
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,