[BindServiceMethod(typeof(Projects), "BindService")]
public abstract class ProjectsBase
Base class for server-side implementations of Projects
Namespace
Google.Cloud.Compute.V1Assembly
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 |
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 | |
---|---|
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 |
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 | |
---|---|
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 |
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 | |
---|---|
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 |
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.
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 |
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 | |
---|---|
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 |
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 | |
---|---|
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 |
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 | |
---|---|
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 |
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 | |
---|---|
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 |
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.
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 |
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 | |
---|---|
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 |
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 | |
---|---|
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 |
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 | |
---|---|
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 |
Task<Operation> | The response to send back to the client (wrapped by a task). |