Compute Engine v1 API - Class InstancesClientImpl (2.17.0)

public sealed class InstancesClientImpl : InstancesClient

Reference documentation and code samples for the Compute Engine v1 API class InstancesClientImpl.

Instances client wrapper implementation, for convenient use.

Inheritance

object > InstancesClient > InstancesClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The Instances API.

Constructors

InstancesClientImpl(InstancesClient, InstancesSettings, ILogger)

public InstancesClientImpl(Instances.InstancesClient grpcClient, InstancesSettings settings, ILogger logger)

Constructs a client wrapper for the Instances service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient InstancesInstancesClient

The underlying gRPC client.

settings InstancesSettings

The base InstancesSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

AddAccessConfigOperationsClient

public override OperationsClient AddAccessConfigOperationsClient { get; }

The long-running operations client for AddAccessConfig.

Property Value
Type Description
OperationsClient
Overrides

AddResourcePoliciesOperationsClient

public override OperationsClient AddResourcePoliciesOperationsClient { get; }

The long-running operations client for AddResourcePolicies.

Property Value
Type Description
OperationsClient
Overrides

AttachDiskOperationsClient

public override OperationsClient AttachDiskOperationsClient { get; }

The long-running operations client for AttachDisk.

Property Value
Type Description
OperationsClient
Overrides

BulkInsertOperationsClient

public override OperationsClient BulkInsertOperationsClient { get; }

The long-running operations client for BulkInsert.

Property Value
Type Description
OperationsClient
Overrides

DeleteAccessConfigOperationsClient

public override OperationsClient DeleteAccessConfigOperationsClient { get; }

The long-running operations client for DeleteAccessConfig.

Property Value
Type Description
OperationsClient
Overrides

DeleteOperationsClient

public override OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
Type Description
OperationsClient
Overrides

DetachDiskOperationsClient

public override OperationsClient DetachDiskOperationsClient { get; }

The long-running operations client for DetachDisk.

Property Value
Type Description
OperationsClient
Overrides

GrpcClient

public override Instances.InstancesClient GrpcClient { get; }

The underlying gRPC Instances client

Property Value
Type Description
InstancesInstancesClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
Type Description
OperationsClient
Overrides

PerformMaintenanceOperationsClient

public override OperationsClient PerformMaintenanceOperationsClient { get; }

The long-running operations client for PerformMaintenance.

Property Value
Type Description
OperationsClient
Overrides

RemoveResourcePoliciesOperationsClient

public override OperationsClient RemoveResourcePoliciesOperationsClient { get; }

The long-running operations client for RemoveResourcePolicies.

Property Value
Type Description
OperationsClient
Overrides

ResetOperationsClient

public override OperationsClient ResetOperationsClient { get; }

The long-running operations client for Reset.

Property Value
Type Description
OperationsClient
Overrides

ResumeOperationsClient

public override OperationsClient ResumeOperationsClient { get; }

The long-running operations client for Resume.

Property Value
Type Description
OperationsClient
Overrides

SetDeletionProtectionOperationsClient

public override OperationsClient SetDeletionProtectionOperationsClient { get; }

The long-running operations client for SetDeletionProtection.

Property Value
Type Description
OperationsClient
Overrides

SetDiskAutoDeleteOperationsClient

public override OperationsClient SetDiskAutoDeleteOperationsClient { get; }

The long-running operations client for SetDiskAutoDelete.

Property Value
Type Description
OperationsClient
Overrides

SetLabelsOperationsClient

public override OperationsClient SetLabelsOperationsClient { get; }

The long-running operations client for SetLabels.

Property Value
Type Description
OperationsClient
Overrides

SetMachineResourcesOperationsClient

public override OperationsClient SetMachineResourcesOperationsClient { get; }

The long-running operations client for SetMachineResources.

Property Value
Type Description
OperationsClient
Overrides

SetMachineTypeOperationsClient

public override OperationsClient SetMachineTypeOperationsClient { get; }

The long-running operations client for SetMachineType.

Property Value
Type Description
OperationsClient
Overrides

SetMetadataOperationsClient

public override OperationsClient SetMetadataOperationsClient { get; }

The long-running operations client for SetMetadata.

Property Value
Type Description
OperationsClient
Overrides

SetMinCpuPlatformOperationsClient

public override OperationsClient SetMinCpuPlatformOperationsClient { get; }

The long-running operations client for SetMinCpuPlatform.

Property Value
Type Description
OperationsClient
Overrides

SetNameOperationsClient

public override OperationsClient SetNameOperationsClient { get; }

The long-running operations client for SetName.

Property Value
Type Description
OperationsClient
Overrides

SetSchedulingOperationsClient

public override OperationsClient SetSchedulingOperationsClient { get; }

The long-running operations client for SetScheduling.

Property Value
Type Description
OperationsClient
Overrides

SetSecurityPolicyOperationsClient

public override OperationsClient SetSecurityPolicyOperationsClient { get; }

The long-running operations client for SetSecurityPolicy.

Property Value
Type Description
OperationsClient
Overrides

SetServiceAccountOperationsClient

public override OperationsClient SetServiceAccountOperationsClient { get; }

The long-running operations client for SetServiceAccount.

Property Value
Type Description
OperationsClient
Overrides

SetShieldedInstanceIntegrityPolicyOperationsClient

public override OperationsClient SetShieldedInstanceIntegrityPolicyOperationsClient { get; }

The long-running operations client for SetShieldedInstanceIntegrityPolicy.

Property Value
Type Description
OperationsClient
Overrides

SetTagsOperationsClient

public override OperationsClient SetTagsOperationsClient { get; }

The long-running operations client for SetTags.

Property Value
Type Description
OperationsClient
Overrides

SimulateMaintenanceEventOperationsClient

public override OperationsClient SimulateMaintenanceEventOperationsClient { get; }

The long-running operations client for SimulateMaintenanceEvent.

Property Value
Type Description
OperationsClient
Overrides

StartOperationsClient

public override OperationsClient StartOperationsClient { get; }

The long-running operations client for Start.

Property Value
Type Description
OperationsClient
Overrides

StartWithEncryptionKeyOperationsClient

public override OperationsClient StartWithEncryptionKeyOperationsClient { get; }

The long-running operations client for StartWithEncryptionKey.

Property Value
Type Description
OperationsClient
Overrides

StopOperationsClient

public override OperationsClient StopOperationsClient { get; }

The long-running operations client for Stop.

Property Value
Type Description
OperationsClient
Overrides

SuspendOperationsClient

public override OperationsClient SuspendOperationsClient { get; }

The long-running operations client for Suspend.

Property Value
Type Description
OperationsClient
Overrides

UpdateAccessConfigOperationsClient

public override OperationsClient UpdateAccessConfigOperationsClient { get; }

The long-running operations client for UpdateAccessConfig.

Property Value
Type Description
OperationsClient
Overrides

UpdateDisplayDeviceOperationsClient

public override OperationsClient UpdateDisplayDeviceOperationsClient { get; }

The long-running operations client for UpdateDisplayDevice.

Property Value
Type Description
OperationsClient
Overrides

UpdateNetworkInterfaceOperationsClient

public override OperationsClient UpdateNetworkInterfaceOperationsClient { get; }

The long-running operations client for UpdateNetworkInterface.

Property Value
Type Description
OperationsClient
Overrides

UpdateOperationsClient

public override OperationsClient UpdateOperationsClient { get; }

The long-running operations client for Update.

Property Value
Type Description
OperationsClient
Overrides

UpdateShieldedInstanceConfigOperationsClient

public override OperationsClient UpdateShieldedInstanceConfigOperationsClient { get; }

The long-running operations client for UpdateShieldedInstanceConfig.

Property Value
Type Description
OperationsClient
Overrides

Methods

AddAccessConfig(AddAccessConfigInstanceRequest, CallSettings)

public override Operation<Operation, Operation> AddAccessConfig(AddAccessConfigInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request AddAccessConfigInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

AddAccessConfigAsync(AddAccessConfigInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> AddAccessConfigAsync(AddAccessConfigInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request AddAccessConfigInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

AddResourcePolicies(AddResourcePoliciesInstanceRequest, CallSettings)

public override Operation<Operation, Operation> AddResourcePolicies(AddResourcePoliciesInstanceRequest request, CallSettings callSettings = null)

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.

Parameters
Name Description
request AddResourcePoliciesInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

AddResourcePoliciesAsync(AddResourcePoliciesInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> AddResourcePoliciesAsync(AddResourcePoliciesInstanceRequest request, CallSettings callSettings = null)

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.

Parameters
Name Description
request AddResourcePoliciesInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

AggregatedList(AggregatedListInstancesRequest, CallSettings)

public override PagedEnumerable<InstanceAggregatedList, KeyValuePair<string, InstancesScopedList>> AggregatedList(AggregatedListInstancesRequest request, CallSettings callSettings = null)

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. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListInstancesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableInstanceAggregatedListKeyValuePairstringInstancesScopedList

A pageable sequence of KeyValuePair<TKey, TValue> resources.

Overrides

AggregatedListAsync(AggregatedListInstancesRequest, CallSettings)

public override PagedAsyncEnumerable<InstanceAggregatedList, KeyValuePair<string, InstancesScopedList>> AggregatedListAsync(AggregatedListInstancesRequest request, CallSettings callSettings = null)

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. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListInstancesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableInstanceAggregatedListKeyValuePairstringInstancesScopedList

A pageable asynchronous sequence of KeyValuePair<TKey, TValue> resources.

Overrides

AttachDisk(AttachDiskInstanceRequest, CallSettings)

public override Operation<Operation, Operation> AttachDisk(AttachDiskInstanceRequest request, CallSettings callSettings = null)

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.

Parameters
Name Description
request AttachDiskInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

AttachDiskAsync(AttachDiskInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> AttachDiskAsync(AttachDiskInstanceRequest request, CallSettings callSettings = null)

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.

Parameters
Name Description
request AttachDiskInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

BulkInsert(BulkInsertInstanceRequest, CallSettings)

public override Operation<Operation, Operation> BulkInsert(BulkInsertInstanceRequest request, CallSettings callSettings = null)

Creates multiple instances. Count specifies the number of instances to create. For more information, see About bulk creation of VMs.

Parameters
Name Description
request BulkInsertInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

BulkInsertAsync(BulkInsertInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> BulkInsertAsync(BulkInsertInstanceRequest request, CallSettings callSettings = null)

Creates multiple instances. Count specifies the number of instances to create. For more information, see About bulk creation of VMs.

Parameters
Name Description
request BulkInsertInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

Delete(DeleteInstanceRequest, CallSettings)

public override Operation<Operation, Operation> Delete(DeleteInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request DeleteInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

DeleteAccessConfig(DeleteAccessConfigInstanceRequest, CallSettings)

public override Operation<Operation, Operation> DeleteAccessConfig(DeleteAccessConfigInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request DeleteAccessConfigInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

DeleteAccessConfigAsync(DeleteAccessConfigInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> DeleteAccessConfigAsync(DeleteAccessConfigInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request DeleteAccessConfigInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

DeleteAsync(DeleteInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> DeleteAsync(DeleteInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request DeleteInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

DetachDisk(DetachDiskInstanceRequest, CallSettings)

public override Operation<Operation, Operation> DetachDisk(DetachDiskInstanceRequest request, CallSettings callSettings = null)

Detaches a disk from an instance.

Parameters
Name Description
request DetachDiskInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

DetachDiskAsync(DetachDiskInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> DetachDiskAsync(DetachDiskInstanceRequest request, CallSettings callSettings = null)

Detaches a disk from an instance.

Parameters
Name Description
request DetachDiskInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

Get(GetInstanceRequest, CallSettings)

public override Instance Get(GetInstanceRequest request, CallSettings callSettings = null)

Returns the specified Instance resource.

Parameters
Name Description
request GetInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Instance

The RPC response.

Overrides

GetAsync(GetInstanceRequest, CallSettings)

public override Task<Instance> GetAsync(GetInstanceRequest request, CallSettings callSettings = null)

Returns the specified Instance resource.

Parameters
Name Description
request GetInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskInstance

A Task containing the RPC response.

Overrides

GetEffectiveFirewalls(GetEffectiveFirewallsInstanceRequest, CallSettings)

public override InstancesGetEffectiveFirewallsResponse GetEffectiveFirewalls(GetEffectiveFirewallsInstanceRequest request, CallSettings callSettings = null)

Returns effective firewalls applied to an interface of the instance.

Parameters
Name Description
request GetEffectiveFirewallsInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
InstancesGetEffectiveFirewallsResponse

The RPC response.

Overrides

GetEffectiveFirewallsAsync(GetEffectiveFirewallsInstanceRequest, CallSettings)

public override Task<InstancesGetEffectiveFirewallsResponse> GetEffectiveFirewallsAsync(GetEffectiveFirewallsInstanceRequest request, CallSettings callSettings = null)

Returns effective firewalls applied to an interface of the instance.

Parameters
Name Description
request GetEffectiveFirewallsInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskInstancesGetEffectiveFirewallsResponse

A Task containing the RPC response.

Overrides

GetGuestAttributes(GetGuestAttributesInstanceRequest, CallSettings)

public override GuestAttributes GetGuestAttributes(GetGuestAttributesInstanceRequest request, CallSettings callSettings = null)

Returns the specified guest attributes entry.

Parameters
Name Description
request GetGuestAttributesInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GuestAttributes

The RPC response.

Overrides

GetGuestAttributesAsync(GetGuestAttributesInstanceRequest, CallSettings)

public override Task<GuestAttributes> GetGuestAttributesAsync(GetGuestAttributesInstanceRequest request, CallSettings callSettings = null)

Returns the specified guest attributes entry.

Parameters
Name Description
request GetGuestAttributesInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGuestAttributes

A Task containing the RPC response.

Overrides

GetIamPolicy(GetIamPolicyInstanceRequest, CallSettings)

public override Policy GetIamPolicy(GetIamPolicyInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request GetIamPolicyInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Policy

The RPC response.

Overrides

GetIamPolicyAsync(GetIamPolicyInstanceRequest, CallSettings)

public override Task<Policy> GetIamPolicyAsync(GetIamPolicyInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request GetIamPolicyInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Overrides

GetScreenshot(GetScreenshotInstanceRequest, CallSettings)

public override Screenshot GetScreenshot(GetScreenshotInstanceRequest request, CallSettings callSettings = null)

Returns the screenshot from the specified instance.

Parameters
Name Description
request GetScreenshotInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Screenshot

The RPC response.

Overrides

GetScreenshotAsync(GetScreenshotInstanceRequest, CallSettings)

public override Task<Screenshot> GetScreenshotAsync(GetScreenshotInstanceRequest request, CallSettings callSettings = null)

Returns the screenshot from the specified instance.

Parameters
Name Description
request GetScreenshotInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskScreenshot

A Task containing the RPC response.

Overrides

GetSerialPortOutput(GetSerialPortOutputInstanceRequest, CallSettings)

public override SerialPortOutput GetSerialPortOutput(GetSerialPortOutputInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request GetSerialPortOutputInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SerialPortOutput

The RPC response.

Overrides

GetSerialPortOutputAsync(GetSerialPortOutputInstanceRequest, CallSettings)

public override Task<SerialPortOutput> GetSerialPortOutputAsync(GetSerialPortOutputInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request GetSerialPortOutputInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSerialPortOutput

A Task containing the RPC response.

Overrides

GetShieldedInstanceIdentity(GetShieldedInstanceIdentityInstanceRequest, CallSettings)

public override ShieldedInstanceIdentity GetShieldedInstanceIdentity(GetShieldedInstanceIdentityInstanceRequest request, CallSettings callSettings = null)

Returns the Shielded Instance Identity of an instance

Parameters
Name Description
request GetShieldedInstanceIdentityInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ShieldedInstanceIdentity

The RPC response.

Overrides

GetShieldedInstanceIdentityAsync(GetShieldedInstanceIdentityInstanceRequest, CallSettings)

public override Task<ShieldedInstanceIdentity> GetShieldedInstanceIdentityAsync(GetShieldedInstanceIdentityInstanceRequest request, CallSettings callSettings = null)

Returns the Shielded Instance Identity of an instance

Parameters
Name Description
request GetShieldedInstanceIdentityInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskShieldedInstanceIdentity

A Task containing the RPC response.

Overrides

Insert(InsertInstanceRequest, CallSettings)

public override Operation<Operation, Operation> Insert(InsertInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request InsertInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

InsertAsync(InsertInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> InsertAsync(InsertInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request InsertInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

List(ListInstancesRequest, CallSettings)

public override PagedEnumerable<InstanceList, Instance> List(ListInstancesRequest request, CallSettings callSettings = null)

Retrieves the list of instances contained within the specified zone.

Parameters
Name Description
request ListInstancesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableInstanceListInstance

A pageable sequence of Instance resources.

Overrides

ListAsync(ListInstancesRequest, CallSettings)

public override PagedAsyncEnumerable<InstanceList, Instance> ListAsync(ListInstancesRequest request, CallSettings callSettings = null)

Retrieves the list of instances contained within the specified zone.

Parameters
Name Description
request ListInstancesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableInstanceListInstance

A pageable asynchronous sequence of Instance resources.

Overrides

ListReferrers(ListReferrersInstancesRequest, CallSettings)

public override PagedEnumerable<InstanceListReferrers, Reference> ListReferrers(ListReferrersInstancesRequest request, CallSettings callSettings = null)

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.

Parameters
Name Description
request ListReferrersInstancesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableInstanceListReferrersReference

A pageable sequence of Reference resources.

Overrides

ListReferrersAsync(ListReferrersInstancesRequest, CallSettings)

public override PagedAsyncEnumerable<InstanceListReferrers, Reference> ListReferrersAsync(ListReferrersInstancesRequest request, CallSettings callSettings = null)

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.

Parameters
Name Description
request ListReferrersInstancesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableInstanceListReferrersReference

A pageable asynchronous sequence of Reference resources.

Overrides

PerformMaintenance(PerformMaintenanceInstanceRequest, CallSettings)

public override Operation<Operation, Operation> PerformMaintenance(PerformMaintenanceInstanceRequest request, CallSettings callSettings = null)

Perform a manual maintenance on the instance.

Parameters
Name Description
request PerformMaintenanceInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

PerformMaintenanceAsync(PerformMaintenanceInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> PerformMaintenanceAsync(PerformMaintenanceInstanceRequest request, CallSettings callSettings = null)

Perform a manual maintenance on the instance.

Parameters
Name Description
request PerformMaintenanceInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

RemoveResourcePolicies(RemoveResourcePoliciesInstanceRequest, CallSettings)

public override Operation<Operation, Operation> RemoveResourcePolicies(RemoveResourcePoliciesInstanceRequest request, CallSettings callSettings = null)

Removes resource policies from an instance.

Parameters
Name Description
request RemoveResourcePoliciesInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

RemoveResourcePoliciesAsync(RemoveResourcePoliciesInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> RemoveResourcePoliciesAsync(RemoveResourcePoliciesInstanceRequest request, CallSettings callSettings = null)

Removes resource policies from an instance.

Parameters
Name Description
request RemoveResourcePoliciesInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

Reset(ResetInstanceRequest, CallSettings)

public override Operation<Operation, Operation> Reset(ResetInstanceRequest request, CallSettings callSettings = null)

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.

Parameters
Name Description
request ResetInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

ResetAsync(ResetInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> ResetAsync(ResetInstanceRequest request, CallSettings callSettings = null)

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.

Parameters
Name Description
request ResetInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

Resume(ResumeInstanceRequest, CallSettings)

public override Operation<Operation, Operation> Resume(ResumeInstanceRequest request, CallSettings callSettings = null)

Resumes an instance that was suspended using the instances().suspend method.

Parameters
Name Description
request ResumeInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

ResumeAsync(ResumeInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> ResumeAsync(ResumeInstanceRequest request, CallSettings callSettings = null)

Resumes an instance that was suspended using the instances().suspend method.

Parameters
Name Description
request ResumeInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

SendDiagnosticInterrupt(SendDiagnosticInterruptInstanceRequest, CallSettings)

public override SendDiagnosticInterruptInstanceResponse SendDiagnosticInterrupt(SendDiagnosticInterruptInstanceRequest request, CallSettings callSettings = null)

Sends diagnostic interrupt to the instance.

Parameters
Name Description
request SendDiagnosticInterruptInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SendDiagnosticInterruptInstanceResponse

The RPC response.

Overrides

SendDiagnosticInterruptAsync(SendDiagnosticInterruptInstanceRequest, CallSettings)

public override Task<SendDiagnosticInterruptInstanceResponse> SendDiagnosticInterruptAsync(SendDiagnosticInterruptInstanceRequest request, CallSettings callSettings = null)

Sends diagnostic interrupt to the instance.

Parameters
Name Description
request SendDiagnosticInterruptInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSendDiagnosticInterruptInstanceResponse

A Task containing the RPC response.

Overrides

SetDeletionProtection(SetDeletionProtectionInstanceRequest, CallSettings)

public override Operation<Operation, Operation> SetDeletionProtection(SetDeletionProtectionInstanceRequest request, CallSettings callSettings = null)

Sets deletion protection on the instance.

Parameters
Name Description
request SetDeletionProtectionInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

SetDeletionProtectionAsync(SetDeletionProtectionInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> SetDeletionProtectionAsync(SetDeletionProtectionInstanceRequest request, CallSettings callSettings = null)

Sets deletion protection on the instance.

Parameters
Name Description
request SetDeletionProtectionInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

SetDiskAutoDelete(SetDiskAutoDeleteInstanceRequest, CallSettings)

public override Operation<Operation, Operation> SetDiskAutoDelete(SetDiskAutoDeleteInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request SetDiskAutoDeleteInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

SetDiskAutoDeleteAsync(SetDiskAutoDeleteInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> SetDiskAutoDeleteAsync(SetDiskAutoDeleteInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request SetDiskAutoDeleteInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

SetIamPolicy(SetIamPolicyInstanceRequest, CallSettings)

public override Policy SetIamPolicy(SetIamPolicyInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request SetIamPolicyInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Policy

The RPC response.

Overrides

SetIamPolicyAsync(SetIamPolicyInstanceRequest, CallSettings)

public override Task<Policy> SetIamPolicyAsync(SetIamPolicyInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request SetIamPolicyInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Overrides

SetLabels(SetLabelsInstanceRequest, CallSettings)

public override Operation<Operation, Operation> SetLabels(SetLabelsInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request SetLabelsInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

SetLabelsAsync(SetLabelsInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> SetLabelsAsync(SetLabelsInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request SetLabelsInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

SetMachineResources(SetMachineResourcesInstanceRequest, CallSettings)

public override Operation<Operation, Operation> SetMachineResources(SetMachineResourcesInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request SetMachineResourcesInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

SetMachineResourcesAsync(SetMachineResourcesInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> SetMachineResourcesAsync(SetMachineResourcesInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request SetMachineResourcesInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

SetMachineType(SetMachineTypeInstanceRequest, CallSettings)

public override Operation<Operation, Operation> SetMachineType(SetMachineTypeInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request SetMachineTypeInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

SetMachineTypeAsync(SetMachineTypeInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> SetMachineTypeAsync(SetMachineTypeInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request SetMachineTypeInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

SetMetadata(SetMetadataInstanceRequest, CallSettings)

public override Operation<Operation, Operation> SetMetadata(SetMetadataInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request SetMetadataInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

SetMetadataAsync(SetMetadataInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> SetMetadataAsync(SetMetadataInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request SetMetadataInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

SetMinCpuPlatform(SetMinCpuPlatformInstanceRequest, CallSettings)

public override Operation<Operation, Operation> SetMinCpuPlatform(SetMinCpuPlatformInstanceRequest request, CallSettings callSettings = null)

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.

Parameters
Name Description
request SetMinCpuPlatformInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

SetMinCpuPlatformAsync(SetMinCpuPlatformInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> SetMinCpuPlatformAsync(SetMinCpuPlatformInstanceRequest request, CallSettings callSettings = null)

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.

Parameters
Name Description
request SetMinCpuPlatformInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

SetName(SetNameInstanceRequest, CallSettings)

public override Operation<Operation, Operation> SetName(SetNameInstanceRequest request, CallSettings callSettings = null)

Sets name of an instance.

Parameters
Name Description
request SetNameInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

SetNameAsync(SetNameInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> SetNameAsync(SetNameInstanceRequest request, CallSettings callSettings = null)

Sets name of an instance.

Parameters
Name Description
request SetNameInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

SetScheduling(SetSchedulingInstanceRequest, CallSettings)

public override Operation<Operation, Operation> SetScheduling(SetSchedulingInstanceRequest request, CallSettings callSettings = null)

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. For more information about setting scheduling options for a VM, see Set VM host maintenance policy.

Parameters
Name Description
request SetSchedulingInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

SetSchedulingAsync(SetSchedulingInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> SetSchedulingAsync(SetSchedulingInstanceRequest request, CallSettings callSettings = null)

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. For more information about setting scheduling options for a VM, see Set VM host maintenance policy.

Parameters
Name Description
request SetSchedulingInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

SetSecurityPolicy(SetSecurityPolicyInstanceRequest, CallSettings)

public override Operation<Operation, Operation> SetSecurityPolicy(SetSecurityPolicyInstanceRequest request, CallSettings callSettings = null)

Sets the Google Cloud Armor security policy for the specified instance. For more information, see Google Cloud Armor Overview

Parameters
Name Description
request SetSecurityPolicyInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

SetSecurityPolicyAsync(SetSecurityPolicyInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> SetSecurityPolicyAsync(SetSecurityPolicyInstanceRequest request, CallSettings callSettings = null)

Sets the Google Cloud Armor security policy for the specified instance. For more information, see Google Cloud Armor Overview

Parameters
Name Description
request SetSecurityPolicyInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

SetServiceAccount(SetServiceAccountInstanceRequest, CallSettings)

public override Operation<Operation, Operation> SetServiceAccount(SetServiceAccountInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request SetServiceAccountInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

SetServiceAccountAsync(SetServiceAccountInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> SetServiceAccountAsync(SetServiceAccountInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request SetServiceAccountInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

SetShieldedInstanceIntegrityPolicy(SetShieldedInstanceIntegrityPolicyInstanceRequest, CallSettings)

public override Operation<Operation, Operation> SetShieldedInstanceIntegrityPolicy(SetShieldedInstanceIntegrityPolicyInstanceRequest request, CallSettings callSettings = null)

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.

Parameters
Name Description
request SetShieldedInstanceIntegrityPolicyInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

SetShieldedInstanceIntegrityPolicyAsync(SetShieldedInstanceIntegrityPolicyInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> SetShieldedInstanceIntegrityPolicyAsync(SetShieldedInstanceIntegrityPolicyInstanceRequest request, CallSettings callSettings = null)

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.

Parameters
Name Description
request SetShieldedInstanceIntegrityPolicyInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

SetTags(SetTagsInstanceRequest, CallSettings)

public override Operation<Operation, Operation> SetTags(SetTagsInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request SetTagsInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

SetTagsAsync(SetTagsInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> SetTagsAsync(SetTagsInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request SetTagsInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

SimulateMaintenanceEvent(SimulateMaintenanceEventInstanceRequest, CallSettings)

public override Operation<Operation, Operation> SimulateMaintenanceEvent(SimulateMaintenanceEventInstanceRequest request, CallSettings callSettings = null)

Simulates a host maintenance event on a VM. For more information, see Simulate a host maintenance event.

Parameters
Name Description
request SimulateMaintenanceEventInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

SimulateMaintenanceEventAsync(SimulateMaintenanceEventInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> SimulateMaintenanceEventAsync(SimulateMaintenanceEventInstanceRequest request, CallSettings callSettings = null)

Simulates a host maintenance event on a VM. For more information, see Simulate a host maintenance event.

Parameters
Name Description
request SimulateMaintenanceEventInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

Start(StartInstanceRequest, CallSettings)

public override Operation<Operation, Operation> Start(StartInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request StartInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

StartAsync(StartInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> StartAsync(StartInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request StartInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

StartWithEncryptionKey(StartWithEncryptionKeyInstanceRequest, CallSettings)

public override Operation<Operation, Operation> StartWithEncryptionKey(StartWithEncryptionKeyInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request StartWithEncryptionKeyInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

StartWithEncryptionKeyAsync(StartWithEncryptionKeyInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> StartWithEncryptionKeyAsync(StartWithEncryptionKeyInstanceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request StartWithEncryptionKeyInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

Stop(StopInstanceRequest, CallSettings)

public override Operation<Operation, Operation> Stop(StopInstanceRequest request, CallSettings callSettings = null)

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.

Parameters
Name Description
request StopInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

StopAsync(StopInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> StopAsync(StopInstanceRequest request, CallSettings callSettings = null)

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.

Parameters
Name Description
request StopInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

Suspend(SuspendInstanceRequest, CallSettings)

public override Operation<Operation, Operation> Suspend(SuspendInstanceRequest request, CallSettings callSettings = null)

This method suspends a running instance, saving its state to persistent storage, and allows you to resume the instance at a later time. Suspended instances have no compute costs (cores or RAM), and incur only storage charges for the saved VM memory and localSSD data. Any charged resources the virtual machine was using, such as persistent disks and static IP addresses, will continue to be charged while the instance is suspended. For more information, see Suspending and resuming an instance.

Parameters
Name Description
request SuspendInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

SuspendAsync(SuspendInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> SuspendAsync(SuspendInstanceRequest request, CallSettings callSettings = null)

This method suspends a running instance, saving its state to persistent storage, and allows you to resume the instance at a later time. Suspended instances have no compute costs (cores or RAM), and incur only storage charges for the saved VM memory and localSSD data. Any charged resources the virtual machine was using, such as persistent disks and static IP addresses, will continue to be charged while the instance is suspended. For more information, see Suspending and resuming an instance.

Parameters
Name Description
request SuspendInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

TestIamPermissions(TestIamPermissionsInstanceRequest, CallSettings)

public override TestPermissionsResponse TestIamPermissions(TestIamPermissionsInstanceRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TestPermissionsResponse

The RPC response.

Overrides

TestIamPermissionsAsync(TestIamPermissionsInstanceRequest, CallSettings)

public override Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsInstanceRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTestPermissionsResponse

A Task containing the RPC response.

Overrides

Update(UpdateInstanceRequest, CallSettings)

public override Operation<Operation, Operation> Update(UpdateInstanceRequest request, CallSettings callSettings = null)

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.

Parameters
Name Description
request UpdateInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

UpdateAccessConfig(UpdateAccessConfigInstanceRequest, CallSettings)

public override Operation<Operation, Operation> UpdateAccessConfig(UpdateAccessConfigInstanceRequest request, CallSettings callSettings = null)

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.

Parameters
Name Description
request UpdateAccessConfigInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

UpdateAccessConfigAsync(UpdateAccessConfigInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> UpdateAccessConfigAsync(UpdateAccessConfigInstanceRequest request, CallSettings callSettings = null)

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.

Parameters
Name Description
request UpdateAccessConfigInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

UpdateAsync(UpdateInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> UpdateAsync(UpdateInstanceRequest request, CallSettings callSettings = null)

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.

Parameters
Name Description
request UpdateInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

UpdateDisplayDevice(UpdateDisplayDeviceInstanceRequest, CallSettings)

public override Operation<Operation, Operation> UpdateDisplayDevice(UpdateDisplayDeviceInstanceRequest request, CallSettings callSettings = null)

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.

Parameters
Name Description
request UpdateDisplayDeviceInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

UpdateDisplayDeviceAsync(UpdateDisplayDeviceInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> UpdateDisplayDeviceAsync(UpdateDisplayDeviceInstanceRequest request, CallSettings callSettings = null)

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.

Parameters
Name Description
request UpdateDisplayDeviceInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

UpdateNetworkInterface(UpdateNetworkInterfaceInstanceRequest, CallSettings)

public override Operation<Operation, Operation> UpdateNetworkInterface(UpdateNetworkInterfaceInstanceRequest request, CallSettings callSettings = null)

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.

Parameters
Name Description
request UpdateNetworkInterfaceInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

UpdateNetworkInterfaceAsync(UpdateNetworkInterfaceInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> UpdateNetworkInterfaceAsync(UpdateNetworkInterfaceInstanceRequest request, CallSettings callSettings = null)

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.

Parameters
Name Description
request UpdateNetworkInterfaceInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

UpdateShieldedInstanceConfig(UpdateShieldedInstanceConfigInstanceRequest, CallSettings)

public override Operation<Operation, Operation> UpdateShieldedInstanceConfig(UpdateShieldedInstanceConfigInstanceRequest request, CallSettings callSettings = null)

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.

Parameters
Name Description
request UpdateShieldedInstanceConfigInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

UpdateShieldedInstanceConfigAsync(UpdateShieldedInstanceConfigInstanceRequest, CallSettings)

public override Task<Operation<Operation, Operation>> UpdateShieldedInstanceConfigAsync(UpdateShieldedInstanceConfigInstanceRequest request, CallSettings callSettings = null)

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.

Parameters
Name Description
request UpdateShieldedInstanceConfigInstanceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides