Compute Engine v1 API - Class InstancesClientImpl (2.7.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

GoogleCloudGoogle.Cloud.ComputeV1

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
NameDescription
grpcClientInstancesInstancesClient

The underlying gRPC client.

settingsInstancesSettings

The base InstancesSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

AddAccessConfigOperationsClient

public override OperationsClient AddAccessConfigOperationsClient { get; }

The long-running operations client for AddAccessConfig.

Property Value
TypeDescription
OperationsClient
Overrides

AddResourcePoliciesOperationsClient

public override OperationsClient AddResourcePoliciesOperationsClient { get; }

The long-running operations client for AddResourcePolicies.

Property Value
TypeDescription
OperationsClient
Overrides

AttachDiskOperationsClient

public override OperationsClient AttachDiskOperationsClient { get; }

The long-running operations client for AttachDisk.

Property Value
TypeDescription
OperationsClient
Overrides

BulkInsertOperationsClient

public override OperationsClient BulkInsertOperationsClient { get; }

The long-running operations client for BulkInsert.

Property Value
TypeDescription
OperationsClient
Overrides

DeleteAccessConfigOperationsClient

public override OperationsClient DeleteAccessConfigOperationsClient { get; }

The long-running operations client for DeleteAccessConfig.

Property Value
TypeDescription
OperationsClient
Overrides

DeleteOperationsClient

public override OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
TypeDescription
OperationsClient
Overrides

DetachDiskOperationsClient

public override OperationsClient DetachDiskOperationsClient { get; }

The long-running operations client for DetachDisk.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override Instances.InstancesClient GrpcClient { get; }

The underlying gRPC Instances client

Property Value
TypeDescription
InstancesInstancesClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
TypeDescription
OperationsClient
Overrides

RemoveResourcePoliciesOperationsClient

public override OperationsClient RemoveResourcePoliciesOperationsClient { get; }

The long-running operations client for RemoveResourcePolicies.

Property Value
TypeDescription
OperationsClient
Overrides

ResetOperationsClient

public override OperationsClient ResetOperationsClient { get; }

The long-running operations client for Reset.

Property Value
TypeDescription
OperationsClient
Overrides

ResumeOperationsClient

public override OperationsClient ResumeOperationsClient { get; }

The long-running operations client for Resume.

Property Value
TypeDescription
OperationsClient
Overrides

SetDeletionProtectionOperationsClient

public override OperationsClient SetDeletionProtectionOperationsClient { get; }

The long-running operations client for SetDeletionProtection.

Property Value
TypeDescription
OperationsClient
Overrides

SetDiskAutoDeleteOperationsClient

public override OperationsClient SetDiskAutoDeleteOperationsClient { get; }

The long-running operations client for SetDiskAutoDelete.

Property Value
TypeDescription
OperationsClient
Overrides

SetLabelsOperationsClient

public override OperationsClient SetLabelsOperationsClient { get; }

The long-running operations client for SetLabels.

Property Value
TypeDescription
OperationsClient
Overrides

SetMachineResourcesOperationsClient

public override OperationsClient SetMachineResourcesOperationsClient { get; }

The long-running operations client for SetMachineResources.

Property Value
TypeDescription
OperationsClient
Overrides

SetMachineTypeOperationsClient

public override OperationsClient SetMachineTypeOperationsClient { get; }

The long-running operations client for SetMachineType.

Property Value
TypeDescription
OperationsClient
Overrides

SetMetadataOperationsClient

public override OperationsClient SetMetadataOperationsClient { get; }

The long-running operations client for SetMetadata.

Property Value
TypeDescription
OperationsClient
Overrides

SetMinCpuPlatformOperationsClient

public override OperationsClient SetMinCpuPlatformOperationsClient { get; }

The long-running operations client for SetMinCpuPlatform.

Property Value
TypeDescription
OperationsClient
Overrides

SetSchedulingOperationsClient

public override OperationsClient SetSchedulingOperationsClient { get; }

The long-running operations client for SetScheduling.

Property Value
TypeDescription
OperationsClient
Overrides

SetServiceAccountOperationsClient

public override OperationsClient SetServiceAccountOperationsClient { get; }

The long-running operations client for SetServiceAccount.

Property Value
TypeDescription
OperationsClient
Overrides

SetShieldedInstanceIntegrityPolicyOperationsClient

public override OperationsClient SetShieldedInstanceIntegrityPolicyOperationsClient { get; }

The long-running operations client for SetShieldedInstanceIntegrityPolicy.

Property Value
TypeDescription
OperationsClient
Overrides

SetTagsOperationsClient

public override OperationsClient SetTagsOperationsClient { get; }

The long-running operations client for SetTags.

Property Value
TypeDescription
OperationsClient
Overrides

SimulateMaintenanceEventOperationsClient

public override OperationsClient SimulateMaintenanceEventOperationsClient { get; }

The long-running operations client for SimulateMaintenanceEvent.

Property Value
TypeDescription
OperationsClient
Overrides

StartOperationsClient

public override OperationsClient StartOperationsClient { get; }

The long-running operations client for Start.

Property Value
TypeDescription
OperationsClient
Overrides

StartWithEncryptionKeyOperationsClient

public override OperationsClient StartWithEncryptionKeyOperationsClient { get; }

The long-running operations client for StartWithEncryptionKey.

Property Value
TypeDescription
OperationsClient
Overrides

StopOperationsClient

public override OperationsClient StopOperationsClient { get; }

The long-running operations client for Stop.

Property Value
TypeDescription
OperationsClient
Overrides

SuspendOperationsClient

public override OperationsClient SuspendOperationsClient { get; }

The long-running operations client for Suspend.

Property Value
TypeDescription
OperationsClient
Overrides

UpdateAccessConfigOperationsClient

public override OperationsClient UpdateAccessConfigOperationsClient { get; }

The long-running operations client for UpdateAccessConfig.

Property Value
TypeDescription
OperationsClient
Overrides

UpdateDisplayDeviceOperationsClient

public override OperationsClient UpdateDisplayDeviceOperationsClient { get; }

The long-running operations client for UpdateDisplayDevice.

Property Value
TypeDescription
OperationsClient
Overrides

UpdateNetworkInterfaceOperationsClient

public override OperationsClient UpdateNetworkInterfaceOperationsClient { get; }

The long-running operations client for UpdateNetworkInterface.

Property Value
TypeDescription
OperationsClient
Overrides

UpdateOperationsClient

public override OperationsClient UpdateOperationsClient { get; }

The long-running operations client for Update.

Property Value
TypeDescription
OperationsClient
Overrides

UpdateShieldedInstanceConfigOperationsClient

public override OperationsClient UpdateShieldedInstanceConfigOperationsClient { get; }

The long-running operations client for UpdateShieldedInstanceConfig.

Property Value
TypeDescription
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
NameDescription
requestAddAccessConfigInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestAddAccessConfigInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestAddResourcePoliciesInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestAddResourcePoliciesInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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.

Parameters
NameDescription
requestAggregatedListInstancesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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.

Parameters
NameDescription
requestAggregatedListInstancesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestAttachDiskInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestAttachDiskInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestBulkInsertInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestBulkInsertInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteAccessConfigInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteAccessConfigInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDetachDiskInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDetachDiskInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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. Gets a list of available instances by making a list() request.

Parameters
NameDescription
requestGetInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Instance

The RPC response.

Overrides

GetAsync(GetInstanceRequest, CallSettings)

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

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

Parameters
NameDescription
requestGetInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetEffectiveFirewallsInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetEffectiveFirewallsInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetGuestAttributesInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetGuestAttributesInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetIamPolicyInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetIamPolicyInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetScreenshotInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetScreenshotInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetSerialPortOutputInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetSerialPortOutputInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetShieldedInstanceIdentityInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetShieldedInstanceIdentityInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestInsertInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestInsertInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListInstancesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListInstancesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListReferrersInstancesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListReferrersInstancesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableInstanceListReferrersReference

A pageable asynchronous sequence of Reference resources.

Overrides

RemoveResourcePolicies(RemoveResourcePoliciesInstanceRequest, CallSettings)

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

Removes resource policies from an instance.

Parameters
NameDescription
requestRemoveResourcePoliciesInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestRemoveResourcePoliciesInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestResetInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestResetInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestResumeInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestResumeInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSendDiagnosticInterruptInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSendDiagnosticInterruptInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetDeletionProtectionInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetDeletionProtectionInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetDiskAutoDeleteInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetDiskAutoDeleteInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetIamPolicyInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetIamPolicyInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetLabelsInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetLabelsInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetMachineResourcesInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetMachineResourcesInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetMachineTypeInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetMachineTypeInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetMetadataInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetMetadataInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetMinCpuPlatformInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetMinCpuPlatformInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetSchedulingInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetSchedulingInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetServiceAccountInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetServiceAccountInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetShieldedInstanceIntegrityPolicyInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetShieldedInstanceIntegrityPolicyInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetTagsInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetTagsInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSimulateMaintenanceEventInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSimulateMaintenanceEventInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestStartInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestStartInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestStartWithEncryptionKeyInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestStartWithEncryptionKeyInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestStopInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestStopInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSuspendInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSuspendInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestTestIamPermissionsInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestTestIamPermissionsInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateAccessConfigInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateAccessConfigInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateDisplayDeviceInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateDisplayDeviceInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateNetworkInterfaceInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateNetworkInterfaceInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateShieldedInstanceConfigInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateShieldedInstanceConfigInstanceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides