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

public class Projects.ProjectsClient : ClientBase<Projects.ProjectsClient>

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

Client for Projects

Inheritance

object > ClientBase > ClientBaseProjectsProjectsClient > 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(ClientBaseConfiguration)

protected ProjectsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

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
OperationsOperationsClient

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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

DisableXpnHostAsync(DisableXpnHostProjectRequest, Metadata, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallOperation

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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

DisableXpnResourceAsync(DisableXpnResourceProjectRequest, Metadata, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallOperation

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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

EnableXpnHostAsync(EnableXpnHostProjectRequest, Metadata, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallOperation

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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

EnableXpnResourceAsync(EnableXpnResourceProjectRequest, Metadata, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallOperation

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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallProject

The call object.

GetAsync(GetProjectRequest, Metadata, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallProject

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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallProject

The call object.

GetXpnHostAsync(GetXpnHostProjectRequest, Metadata, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallProject

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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallProjectsGetXpnResources

The call object.

GetXpnResourcesAsync(GetXpnResourcesProjectsRequest, Metadata, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallProjectsGetXpnResources

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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallXpnHostList

The call object.

ListXpnHostsAsync(ListXpnHostsProjectsRequest, Metadata, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallXpnHostList

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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

MoveDiskAsync(MoveDiskProjectRequest, Metadata, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallOperation

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. [Deprecated] This method is deprecated. See moving instance across zones instead.

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, DateTime?, CancellationToken)

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

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. [Deprecated] This method is deprecated. See moving instance across zones instead.

Parameters
NameDescription
requestMoveInstanceProjectRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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. [Deprecated] This method is deprecated. See moving instance across zones instead.

Parameters
NameDescription
requestMoveInstanceProjectRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

MoveInstanceAsync(MoveInstanceProjectRequest, Metadata, DateTime?, CancellationToken)

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

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. [Deprecated] This method is deprecated. See moving instance across zones instead.

Parameters
NameDescription
requestMoveInstanceProjectRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

NewInstance(ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
ProjectsProjectsClient
Overrides

SetCloudArmorTier(SetCloudArmorTierProjectRequest, CallOptions)

public virtual Operation SetCloudArmorTier(SetCloudArmorTierProjectRequest request, CallOptions options)

Sets the Cloud Armor tier of the project. To set ENTERPRISE or above the billing account of the project must be subscribed to Cloud Armor Enterprise. See Subscribing to Cloud Armor Enterprise for more information.

Parameters
NameDescription
requestSetCloudArmorTierProjectRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

SetCloudArmorTier(SetCloudArmorTierProjectRequest, Metadata, DateTime?, CancellationToken)

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

Sets the Cloud Armor tier of the project. To set ENTERPRISE or above the billing account of the project must be subscribed to Cloud Armor Enterprise. See Subscribing to Cloud Armor Enterprise for more information.

Parameters
NameDescription
requestSetCloudArmorTierProjectRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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.

SetCloudArmorTierAsync(SetCloudArmorTierProjectRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> SetCloudArmorTierAsync(SetCloudArmorTierProjectRequest request, CallOptions options)

Sets the Cloud Armor tier of the project. To set ENTERPRISE or above the billing account of the project must be subscribed to Cloud Armor Enterprise. See Subscribing to Cloud Armor Enterprise for more information.

Parameters
NameDescription
requestSetCloudArmorTierProjectRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

SetCloudArmorTierAsync(SetCloudArmorTierProjectRequest, Metadata, DateTime?, CancellationToken)

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

Sets the Cloud Armor tier of the project. To set ENTERPRISE or above the billing account of the project must be subscribed to Cloud Armor Enterprise. See Subscribing to Cloud Armor Enterprise for more information.

Parameters
NameDescription
requestSetCloudArmorTierProjectRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

SetCommonInstanceMetadataAsync(SetCommonInstanceMetadataProjectRequest, Metadata, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallOperation

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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

SetDefaultNetworkTierAsync(SetDefaultNetworkTierProjectRequest, Metadata, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallOperation

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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

SetUsageExportBucketAsync(SetUsageExportBucketProjectRequest, Metadata, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.