Compute Engine v1 API - Class Projects.ProjectsClient (2.5.0)

public class ProjectsClient : ClientBase<Projects.ProjectsClient>

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

Client for Projects

Inheritance

Object > ClientBase > ClientBase<Projects.ProjectsClient> > Projects.ProjectsClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

ProjectsClient()

protected ProjectsClient()

Protected parameterless constructor to allow creation of test doubles.

ProjectsClient(CallInvoker)

public ProjectsClient(CallInvoker callInvoker)

Creates a new client for Projects that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

ProjectsClient(ChannelBase)

public ProjectsClient(ChannelBase channel)

Creates a new client for Projects

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

ProjectsClient(ClientBase.ClientBaseConfiguration)

protected ProjectsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

CreateOperationsClientForGlobalOperations()

public virtual Operations.OperationsClient CreateOperationsClientForGlobalOperations()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client, delegating to GlobalOperations.

Returns
TypeDescription
Operations.OperationsClient

A new Operations client for the same target as this client.

DisableXpnHost(DisableXpnHostProjectRequest, CallOptions)

public virtual Operation DisableXpnHost(DisableXpnHostProjectRequest request, CallOptions options)

Disable this project as a shared VPC host project.

Parameters
NameDescription
requestDisableXpnHostProjectRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

DisableXpnHost(DisableXpnHostProjectRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation DisableXpnHost(DisableXpnHostProjectRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Disable this project as a shared VPC host project.

Parameters
NameDescription
requestDisableXpnHostProjectRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

DisableXpnHostAsync(DisableXpnHostProjectRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DisableXpnHostAsync(DisableXpnHostProjectRequest request, CallOptions options)

Disable this project as a shared VPC host project.

Parameters
NameDescription
requestDisableXpnHostProjectRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

DisableXpnHostAsync(DisableXpnHostProjectRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> DisableXpnHostAsync(DisableXpnHostProjectRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Disable this project as a shared VPC host project.

Parameters
NameDescription
requestDisableXpnHostProjectRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

DisableXpnResource(DisableXpnResourceProjectRequest, CallOptions)

public virtual Operation DisableXpnResource(DisableXpnResourceProjectRequest request, CallOptions options)

Disable a service resource (also known as service project) associated with this host project.

Parameters
NameDescription
requestDisableXpnResourceProjectRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

DisableXpnResource(DisableXpnResourceProjectRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation DisableXpnResource(DisableXpnResourceProjectRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Disable a service resource (also known as service project) associated with this host project.

Parameters
NameDescription
requestDisableXpnResourceProjectRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

DisableXpnResourceAsync(DisableXpnResourceProjectRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DisableXpnResourceAsync(DisableXpnResourceProjectRequest request, CallOptions options)

Disable a service resource (also known as service project) associated with this host project.

Parameters
NameDescription
requestDisableXpnResourceProjectRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

DisableXpnResourceAsync(DisableXpnResourceProjectRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> DisableXpnResourceAsync(DisableXpnResourceProjectRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Disable a service resource (also known as service project) associated with this host project.

Parameters
NameDescription
requestDisableXpnResourceProjectRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

EnableXpnHost(EnableXpnHostProjectRequest, CallOptions)

public virtual Operation EnableXpnHost(EnableXpnHostProjectRequest request, CallOptions options)

Enable this project as a shared VPC host project.

Parameters
NameDescription
requestEnableXpnHostProjectRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

EnableXpnHost(EnableXpnHostProjectRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation EnableXpnHost(EnableXpnHostProjectRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Enable this project as a shared VPC host project.

Parameters
NameDescription
requestEnableXpnHostProjectRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

EnableXpnHostAsync(EnableXpnHostProjectRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> EnableXpnHostAsync(EnableXpnHostProjectRequest request, CallOptions options)

Enable this project as a shared VPC host project.

Parameters
NameDescription
requestEnableXpnHostProjectRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

EnableXpnHostAsync(EnableXpnHostProjectRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> EnableXpnHostAsync(EnableXpnHostProjectRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Enable this project as a shared VPC host project.

Parameters
NameDescription
requestEnableXpnHostProjectRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

EnableXpnResource(EnableXpnResourceProjectRequest, CallOptions)

public virtual Operation EnableXpnResource(EnableXpnResourceProjectRequest request, CallOptions options)

Enable service resource (a.k.a service project) for a host project, so that subnets in the host project can be used by instances in the service project.

Parameters
NameDescription
requestEnableXpnResourceProjectRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

EnableXpnResource(EnableXpnResourceProjectRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation EnableXpnResource(EnableXpnResourceProjectRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Enable service resource (a.k.a service project) for a host project, so that subnets in the host project can be used by instances in the service project.

Parameters
NameDescription
requestEnableXpnResourceProjectRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

EnableXpnResourceAsync(EnableXpnResourceProjectRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> EnableXpnResourceAsync(EnableXpnResourceProjectRequest request, CallOptions options)

Enable service resource (a.k.a service project) for a host project, so that subnets in the host project can be used by instances in the service project.

Parameters
NameDescription
requestEnableXpnResourceProjectRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

EnableXpnResourceAsync(EnableXpnResourceProjectRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> EnableXpnResourceAsync(EnableXpnResourceProjectRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Enable service resource (a.k.a service project) for a host project, so that subnets in the host project can be used by instances in the service project.

Parameters
NameDescription
requestEnableXpnResourceProjectRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

Get(GetProjectRequest, CallOptions)

public virtual Project Get(GetProjectRequest request, CallOptions options)

Returns the specified Project resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the quotas field). To exclude one or more fields, set your request's fields query parameter to only include the fields you need. For example, to only include the id and selfLink fields, add the query parameter ?fields=id,selfLink to your request.

Parameters
NameDescription
requestGetProjectRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Project

The response received from the server.

Get(GetProjectRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Project Get(GetProjectRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Returns the specified Project resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the quotas field). To exclude one or more fields, set your request's fields query parameter to only include the fields you need. For example, to only include the id and selfLink fields, add the query parameter ?fields=id,selfLink to your request.

Parameters
NameDescription
requestGetProjectRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Project

The response received from the server.

GetAsync(GetProjectRequest, CallOptions)

public virtual AsyncUnaryCall<Project> GetAsync(GetProjectRequest request, CallOptions options)

Returns the specified Project resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the quotas field). To exclude one or more fields, set your request's fields query parameter to only include the fields you need. For example, to only include the id and selfLink fields, add the query parameter ?fields=id,selfLink to your request.

Parameters
NameDescription
requestGetProjectRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Project>

The call object.

GetAsync(GetProjectRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Project> GetAsync(GetProjectRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Returns the specified Project resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the quotas field). To exclude one or more fields, set your request's fields query parameter to only include the fields you need. For example, to only include the id and selfLink fields, add the query parameter ?fields=id,selfLink to your request.

Parameters
NameDescription
requestGetProjectRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Project>

The call object.

GetXpnHost(GetXpnHostProjectRequest, CallOptions)

public virtual Project GetXpnHost(GetXpnHostProjectRequest request, CallOptions options)

Gets the shared VPC host project that this project links to. May be empty if no link exists.

Parameters
NameDescription
requestGetXpnHostProjectRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Project

The response received from the server.

GetXpnHost(GetXpnHostProjectRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Project GetXpnHost(GetXpnHostProjectRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Gets the shared VPC host project that this project links to. May be empty if no link exists.

Parameters
NameDescription
requestGetXpnHostProjectRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Project

The response received from the server.

GetXpnHostAsync(GetXpnHostProjectRequest, CallOptions)

public virtual AsyncUnaryCall<Project> GetXpnHostAsync(GetXpnHostProjectRequest request, CallOptions options)

Gets the shared VPC host project that this project links to. May be empty if no link exists.

Parameters
NameDescription
requestGetXpnHostProjectRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Project>

The call object.

GetXpnHostAsync(GetXpnHostProjectRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Project> GetXpnHostAsync(GetXpnHostProjectRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Gets the shared VPC host project that this project links to. May be empty if no link exists.

Parameters
NameDescription
requestGetXpnHostProjectRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Project>

The call object.

GetXpnResources(GetXpnResourcesProjectsRequest, CallOptions)

public virtual ProjectsGetXpnResources GetXpnResources(GetXpnResourcesProjectsRequest request, CallOptions options)

Gets service resources (a.k.a service project) associated with this host project.

Parameters
NameDescription
requestGetXpnResourcesProjectsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ProjectsGetXpnResources

The response received from the server.

GetXpnResources(GetXpnResourcesProjectsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual ProjectsGetXpnResources GetXpnResources(GetXpnResourcesProjectsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Gets service resources (a.k.a service project) associated with this host project.

Parameters
NameDescription
requestGetXpnResourcesProjectsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ProjectsGetXpnResources

The response received from the server.

GetXpnResourcesAsync(GetXpnResourcesProjectsRequest, CallOptions)

public virtual AsyncUnaryCall<ProjectsGetXpnResources> GetXpnResourcesAsync(GetXpnResourcesProjectsRequest request, CallOptions options)

Gets service resources (a.k.a service project) associated with this host project.

Parameters
NameDescription
requestGetXpnResourcesProjectsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<ProjectsGetXpnResources>

The call object.

GetXpnResourcesAsync(GetXpnResourcesProjectsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<ProjectsGetXpnResources> GetXpnResourcesAsync(GetXpnResourcesProjectsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Gets service resources (a.k.a service project) associated with this host project.

Parameters
NameDescription
requestGetXpnResourcesProjectsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<ProjectsGetXpnResources>

The call object.

ListXpnHosts(ListXpnHostsProjectsRequest, CallOptions)

public virtual XpnHostList ListXpnHosts(ListXpnHostsProjectsRequest request, CallOptions options)

Lists all shared VPC host projects visible to the user in an organization.

Parameters
NameDescription
requestListXpnHostsProjectsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
XpnHostList

The response received from the server.

ListXpnHosts(ListXpnHostsProjectsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual XpnHostList ListXpnHosts(ListXpnHostsProjectsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Lists all shared VPC host projects visible to the user in an organization.

Parameters
NameDescription
requestListXpnHostsProjectsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
XpnHostList

The response received from the server.

ListXpnHostsAsync(ListXpnHostsProjectsRequest, CallOptions)

public virtual AsyncUnaryCall<XpnHostList> ListXpnHostsAsync(ListXpnHostsProjectsRequest request, CallOptions options)

Lists all shared VPC host projects visible to the user in an organization.

Parameters
NameDescription
requestListXpnHostsProjectsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<XpnHostList>

The call object.

ListXpnHostsAsync(ListXpnHostsProjectsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<XpnHostList> ListXpnHostsAsync(ListXpnHostsProjectsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Lists all shared VPC host projects visible to the user in an organization.

Parameters
NameDescription
requestListXpnHostsProjectsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<XpnHostList>

The call object.

MoveDisk(MoveDiskProjectRequest, CallOptions)

public virtual Operation MoveDisk(MoveDiskProjectRequest request, CallOptions options)

Moves a persistent disk from one zone to another.

Parameters
NameDescription
requestMoveDiskProjectRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

MoveDisk(MoveDiskProjectRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation MoveDisk(MoveDiskProjectRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Moves a persistent disk from one zone to another.

Parameters
NameDescription
requestMoveDiskProjectRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

MoveDiskAsync(MoveDiskProjectRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> MoveDiskAsync(MoveDiskProjectRequest request, CallOptions options)

Moves a persistent disk from one zone to another.

Parameters
NameDescription
requestMoveDiskProjectRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

MoveDiskAsync(MoveDiskProjectRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> MoveDiskAsync(MoveDiskProjectRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Moves a persistent disk from one zone to another.

Parameters
NameDescription
requestMoveDiskProjectRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

MoveInstance(MoveInstanceProjectRequest, CallOptions)

public virtual Operation MoveInstance(MoveInstanceProjectRequest request, CallOptions options)

Moves an instance and its attached persistent disks from one zone to another. Note: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the known issue.

Parameters
NameDescription
requestMoveInstanceProjectRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

MoveInstance(MoveInstanceProjectRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation MoveInstance(MoveInstanceProjectRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Moves an instance and its attached persistent disks from one zone to another. Note: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the known issue.

Parameters
NameDescription
requestMoveInstanceProjectRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

MoveInstanceAsync(MoveInstanceProjectRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> MoveInstanceAsync(MoveInstanceProjectRequest request, CallOptions options)

Moves an instance and its attached persistent disks from one zone to another. Note: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the known issue.

Parameters
NameDescription
requestMoveInstanceProjectRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

MoveInstanceAsync(MoveInstanceProjectRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> MoveInstanceAsync(MoveInstanceProjectRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Moves an instance and its attached persistent disks from one zone to another. Note: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the known issue.

Parameters
NameDescription
requestMoveInstanceProjectRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override Projects.ProjectsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
Projects.ProjectsClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.Projects.ProjectsClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

SetCommonInstanceMetadata(SetCommonInstanceMetadataProjectRequest, CallOptions)

public virtual Operation SetCommonInstanceMetadata(SetCommonInstanceMetadataProjectRequest request, CallOptions options)

Sets metadata common to all instances within the specified project using the data included in the request.

Parameters
NameDescription
requestSetCommonInstanceMetadataProjectRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

SetCommonInstanceMetadata(SetCommonInstanceMetadataProjectRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation SetCommonInstanceMetadata(SetCommonInstanceMetadataProjectRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Sets metadata common to all instances within the specified project using the data included in the request.

Parameters
NameDescription
requestSetCommonInstanceMetadataProjectRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

SetCommonInstanceMetadataAsync(SetCommonInstanceMetadataProjectRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> SetCommonInstanceMetadataAsync(SetCommonInstanceMetadataProjectRequest request, CallOptions options)

Sets metadata common to all instances within the specified project using the data included in the request.

Parameters
NameDescription
requestSetCommonInstanceMetadataProjectRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

SetCommonInstanceMetadataAsync(SetCommonInstanceMetadataProjectRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> SetCommonInstanceMetadataAsync(SetCommonInstanceMetadataProjectRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Sets metadata common to all instances within the specified project using the data included in the request.

Parameters
NameDescription
requestSetCommonInstanceMetadataProjectRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

SetDefaultNetworkTier(SetDefaultNetworkTierProjectRequest, CallOptions)

public virtual Operation SetDefaultNetworkTier(SetDefaultNetworkTierProjectRequest request, CallOptions options)

Sets the default network tier of the project. The default network tier is used when an address/forwardingRule/instance is created without specifying the network tier field.

Parameters
NameDescription
requestSetDefaultNetworkTierProjectRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

SetDefaultNetworkTier(SetDefaultNetworkTierProjectRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation SetDefaultNetworkTier(SetDefaultNetworkTierProjectRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Sets the default network tier of the project. The default network tier is used when an address/forwardingRule/instance is created without specifying the network tier field.

Parameters
NameDescription
requestSetDefaultNetworkTierProjectRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

SetDefaultNetworkTierAsync(SetDefaultNetworkTierProjectRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> SetDefaultNetworkTierAsync(SetDefaultNetworkTierProjectRequest request, CallOptions options)

Sets the default network tier of the project. The default network tier is used when an address/forwardingRule/instance is created without specifying the network tier field.

Parameters
NameDescription
requestSetDefaultNetworkTierProjectRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

SetDefaultNetworkTierAsync(SetDefaultNetworkTierProjectRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> SetDefaultNetworkTierAsync(SetDefaultNetworkTierProjectRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Sets the default network tier of the project. The default network tier is used when an address/forwardingRule/instance is created without specifying the network tier field.

Parameters
NameDescription
requestSetDefaultNetworkTierProjectRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

SetUsageExportBucket(SetUsageExportBucketProjectRequest, CallOptions)

public virtual Operation SetUsageExportBucket(SetUsageExportBucketProjectRequest request, CallOptions options)

Enables the usage export feature and sets the usage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be disabled.

Parameters
NameDescription
requestSetUsageExportBucketProjectRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

SetUsageExportBucket(SetUsageExportBucketProjectRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation SetUsageExportBucket(SetUsageExportBucketProjectRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Enables the usage export feature and sets the usage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be disabled.

Parameters
NameDescription
requestSetUsageExportBucketProjectRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

SetUsageExportBucketAsync(SetUsageExportBucketProjectRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> SetUsageExportBucketAsync(SetUsageExportBucketProjectRequest request, CallOptions options)

Enables the usage export feature and sets the usage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be disabled.

Parameters
NameDescription
requestSetUsageExportBucketProjectRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

SetUsageExportBucketAsync(SetUsageExportBucketProjectRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> SetUsageExportBucketAsync(SetUsageExportBucketProjectRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Enables the usage export feature and sets the usage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be disabled.

Parameters
NameDescription
requestSetUsageExportBucketProjectRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.