Struct googapis::google::cloud::compute::v1::instances_client::InstancesClient[][src]

pub struct InstancesClient<T> { /* fields omitted */ }
Expand description

The Instances API.

Implementations

Compress requests with gzip.

This requires the server to support it otherwise it might respond with an error.

Enable decompressing responses with gzip.

Adds an access config to an instance’s network interface.

Adds existing resource policies to an instance. You can only add one policy right now which will be applied to this instance for scheduling live migrations.

Retrieves an aggregated list of all of the instances in your project across all regions and zones. The performance of this method degrades when a filter is specified on a project that has a very large number of instances.

Attaches an existing Disk resource to an instance. You must first create the disk before you can attach it. It is not possible to create and attach a disk at the same time. For more information, read Adding a persistent disk to your instance.

Creates multiple instances. Count specifies the number of instances to create.

Deletes the specified Instance resource. For more information, see Deleting an instance.

Deletes an access config from an instance’s network interface.

Detaches a disk from an instance.

Returns the specified Instance resource. Gets a list of available instances by making a list() request.

Returns effective firewalls applied to an interface of the instance.

Returns the specified guest attributes entry.

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Returns the screenshot from the specified instance.

Returns the last 1 MB of serial port output from the specified instance.

Returns the Shielded Instance Identity of an instance

Creates an instance resource in the specified project using the data included in the request.

Retrieves the list of instances contained within the specified zone.

Retrieves a list of resources that refer to the VM instance specified in the request. For example, if the VM instance is part of a managed or unmanaged instance group, the referrers list includes the instance group. For more information, read Viewing referrers to VM instances.

Removes resource policies from an instance.

Performs a reset on the instance. This is a hard reset the VM does not do a graceful shutdown. For more information, see Resetting an instance.

Sends diagnostic interrupt to the instance.

Sets deletion protection on the instance.

Sets the auto-delete flag for a disk attached to an instance.

Sets the access control policy on the specified resource. Replaces any existing policy.

Sets labels on an instance. To learn more about labels, read the Labeling Resources documentation.

Changes the number and/or type of accelerator for a stopped instance to the values specified in the request.

Changes the machine type for a stopped instance to the machine type specified in the request.

Sets metadata for the specified instance to the data included in the request.

Changes the minimum CPU platform that this instance should use. This method can only be called on a stopped instance. For more information, read Specifying a Minimum CPU Platform.

Sets an instance’s scheduling options. You can only call this method on a stopped instance, that is, a VM instance that is in a TERMINATED state. See Instance Life Cycle for more information on the possible instance states.

Sets the service account on the instance. For more information, read Changing the service account and access scopes for an instance.

Sets the Shielded Instance integrity policy for an instance. You can only use this method on a running instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.

Sets network tags for the specified instance to the data included in the request.

Simulates a maintenance event on the instance.

Starts an instance that was stopped using the instances().stop method. For more information, see Restart an instance.

Starts an instance that was stopped using the instances().stop method. For more information, see Restart an instance.

Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a later time. Stopped instances do not incur VM usage charges while they are stopped. However, resources that the VM is using, such as persistent disks and static IP addresses, will continue to be charged until they are deleted. For more information, see Stopping an instance.

Returns permissions that a caller has on the specified resource.

Updates an instance only if the necessary resources are available. This method can update only a specific set of instance properties. See Updating a running instance for a list of updatable instance properties.

Updates the specified access config from an instance’s network interface with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.

Updates the Display config for a VM instance. You can only use this method on a stopped VM instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.

Updates an instance’s network interface. This method can only update an interface’s alias IP range and attached network. See Modifying alias IP ranges for an existing instance for instructions on changing alias IP ranges. See Migrating a VM between networks for instructions on migrating an interface. This method follows PATCH semantics.

Updates the Shielded Instance config for an instance. You can only use this method on a stopped instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more