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

[BindServiceMethod(typeof(Projects), "BindService")]
public abstract class 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
NameDescription
requestDisableXpnHostProjectRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Project>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Project>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<ProjectsGetXpnResources>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<XpnHostList>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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.

Parameters
NameDescription
requestMoveInstanceProjectRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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