Compute Engine v1 API - Class Projects.ProjectsBase (2.17.0)

[BindServiceMethod(typeof(Projects), "BindService")]
public abstract class Projects.ProjectsBase

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

Base class for server-side implementations of Projects

Inheritance

object > Projects.ProjectsBase

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Methods

DisableXpnHost(DisableXpnHostProjectRequest, ServerCallContext)

public virtual Task<Operation> DisableXpnHost(DisableXpnHostProjectRequest request, ServerCallContext context)

Disable this project as a shared VPC host project.

Parameters
Name Description
request DisableXpnHostProjectRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

DisableXpnResource(DisableXpnResourceProjectRequest, ServerCallContext)

public virtual Task<Operation> DisableXpnResource(DisableXpnResourceProjectRequest request, ServerCallContext context)

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

Parameters
Name Description
request DisableXpnResourceProjectRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

EnableXpnHost(EnableXpnHostProjectRequest, ServerCallContext)

public virtual Task<Operation> EnableXpnHost(EnableXpnHostProjectRequest request, ServerCallContext context)

Enable this project as a shared VPC host project.

Parameters
Name Description
request EnableXpnHostProjectRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

EnableXpnResource(EnableXpnResourceProjectRequest, ServerCallContext)

public virtual Task<Operation> EnableXpnResource(EnableXpnResourceProjectRequest request, ServerCallContext context)

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
Name Description
request EnableXpnResourceProjectRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

Get(GetProjectRequest, ServerCallContext)

public virtual Task<Project> Get(GetProjectRequest request, ServerCallContext context)

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
Name Description
request GetProjectRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskProject

The response to send back to the client (wrapped by a task).

GetXpnHost(GetXpnHostProjectRequest, ServerCallContext)

public virtual Task<Project> GetXpnHost(GetXpnHostProjectRequest request, ServerCallContext context)

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

Parameters
Name Description
request GetXpnHostProjectRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskProject

The response to send back to the client (wrapped by a task).

GetXpnResources(GetXpnResourcesProjectsRequest, ServerCallContext)

public virtual Task<ProjectsGetXpnResources> GetXpnResources(GetXpnResourcesProjectsRequest request, ServerCallContext context)

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

Parameters
Name Description
request GetXpnResourcesProjectsRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskProjectsGetXpnResources

The response to send back to the client (wrapped by a task).

ListXpnHosts(ListXpnHostsProjectsRequest, ServerCallContext)

public virtual Task<XpnHostList> ListXpnHosts(ListXpnHostsProjectsRequest request, ServerCallContext context)

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

Parameters
Name Description
request ListXpnHostsProjectsRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskXpnHostList

The response to send back to the client (wrapped by a task).

MoveDisk(MoveDiskProjectRequest, ServerCallContext)

public virtual Task<Operation> MoveDisk(MoveDiskProjectRequest request, ServerCallContext context)

Moves a persistent disk from one zone to another.

Parameters
Name Description
request MoveDiskProjectRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

MoveInstance(MoveInstanceProjectRequest, ServerCallContext)

public virtual Task<Operation> MoveInstance(MoveInstanceProjectRequest request, ServerCallContext context)

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
Name Description
request MoveInstanceProjectRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

SetCloudArmorTier(SetCloudArmorTierProjectRequest, ServerCallContext)

public virtual Task<Operation> SetCloudArmorTier(SetCloudArmorTierProjectRequest request, ServerCallContext context)

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
Name Description
request SetCloudArmorTierProjectRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

SetCommonInstanceMetadata(SetCommonInstanceMetadataProjectRequest, ServerCallContext)

public virtual Task<Operation> SetCommonInstanceMetadata(SetCommonInstanceMetadataProjectRequest request, ServerCallContext context)

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

Parameters
Name Description
request SetCommonInstanceMetadataProjectRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

SetDefaultNetworkTier(SetDefaultNetworkTierProjectRequest, ServerCallContext)

public virtual Task<Operation> SetDefaultNetworkTier(SetDefaultNetworkTierProjectRequest request, ServerCallContext context)

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
Name Description
request SetDefaultNetworkTierProjectRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

SetUsageExportBucket(SetUsageExportBucketProjectRequest, ServerCallContext)

public virtual Task<Operation> SetUsageExportBucket(SetUsageExportBucketProjectRequest request, ServerCallContext context)

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
Name Description
request SetUsageExportBucketProjectRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).