[BindServiceMethod(typeof(Subnetworks), "BindService")]
public abstract class Subnetworks.SubnetworksBaseReference documentation and code samples for the Compute Engine v1 API class Subnetworks.SubnetworksBase.
Base class for server-side implementations of Subnetworks
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Methods
AggregatedList(AggregatedListSubnetworksRequest, ServerCallContext)
public virtual Task<SubnetworkAggregatedList> AggregatedList(AggregatedListSubnetworksRequest request, ServerCallContext context)Retrieves an aggregated list of subnetworks. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.
| Parameters | |
|---|---|
| Name | Description |
request |
AggregatedListSubnetworksRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskSubnetworkAggregatedList |
The response to send back to the client (wrapped by a task). |
Delete(DeleteSubnetworkRequest, ServerCallContext)
public virtual Task<Operation> Delete(DeleteSubnetworkRequest request, ServerCallContext context)Deletes the specified subnetwork.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteSubnetworkRequestThe request received from the client. |
context |
ServerCallContextThe 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). |
ExpandIpCidrRange(ExpandIpCidrRangeSubnetworkRequest, ServerCallContext)
public virtual Task<Operation> ExpandIpCidrRange(ExpandIpCidrRangeSubnetworkRequest request, ServerCallContext context)Expands the IP CIDR range of the subnetwork to a specified value.
| Parameters | |
|---|---|
| Name | Description |
request |
ExpandIpCidrRangeSubnetworkRequestThe request received from the client. |
context |
ServerCallContextThe 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(GetSubnetworkRequest, ServerCallContext)
public virtual Task<Subnetwork> Get(GetSubnetworkRequest request, ServerCallContext context)Returns the specified subnetwork.
| Parameters | |
|---|---|
| Name | Description |
request |
GetSubnetworkRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskSubnetwork |
The response to send back to the client (wrapped by a task). |
GetIamPolicy(GetIamPolicySubnetworkRequest, ServerCallContext)
public virtual Task<Policy> GetIamPolicy(GetIamPolicySubnetworkRequest request, ServerCallContext context)Gets the access control policy for a resource. May be empty if no such policy or resource exists.
| Parameters | |
|---|---|
| Name | Description |
request |
GetIamPolicySubnetworkRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
The response to send back to the client (wrapped by a task). |
Insert(InsertSubnetworkRequest, ServerCallContext)
public virtual Task<Operation> Insert(InsertSubnetworkRequest request, ServerCallContext context)Creates a subnetwork in the specified project using the data included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertSubnetworkRequestThe request received from the client. |
context |
ServerCallContextThe 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). |
List(ListSubnetworksRequest, ServerCallContext)
public virtual Task<SubnetworkList> List(ListSubnetworksRequest request, ServerCallContext context)Retrieves a list of subnetworks available to the specified project.
| Parameters | |
|---|---|
| Name | Description |
request |
ListSubnetworksRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskSubnetworkList |
The response to send back to the client (wrapped by a task). |
ListUsable(ListUsableSubnetworksRequest, ServerCallContext)
public virtual Task<UsableSubnetworksAggregatedList> ListUsable(ListUsableSubnetworksRequest request, ServerCallContext context)Retrieves an aggregated list of all usable subnetworks in the project.
| Parameters | |
|---|---|
| Name | Description |
request |
ListUsableSubnetworksRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskUsableSubnetworksAggregatedList |
The response to send back to the client (wrapped by a task). |
Patch(PatchSubnetworkRequest, ServerCallContext)
public virtual Task<Operation> Patch(PatchSubnetworkRequest request, ServerCallContext context)Patches the specified subnetwork with the data included in the request. Only certain fields can be updated with a patch request as indicated in the field descriptions. You must specify the current fingerprint of the subnetwork resource being patched.
| Parameters | |
|---|---|
| Name | Description |
request |
PatchSubnetworkRequestThe request received from the client. |
context |
ServerCallContextThe 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). |
SetIamPolicy(SetIamPolicySubnetworkRequest, ServerCallContext)
public virtual Task<Policy> SetIamPolicy(SetIamPolicySubnetworkRequest request, ServerCallContext context)Sets the access control policy on the specified resource. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description |
request |
SetIamPolicySubnetworkRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
The response to send back to the client (wrapped by a task). |
SetPrivateIpGoogleAccess(SetPrivateIpGoogleAccessSubnetworkRequest, ServerCallContext)
public virtual Task<Operation> SetPrivateIpGoogleAccess(SetPrivateIpGoogleAccessSubnetworkRequest request, ServerCallContext context)Set whether VMs in this subnet can access Google services without assigning external IP addresses through Private Google Access.
| Parameters | |
|---|---|
| Name | Description |
request |
SetPrivateIpGoogleAccessSubnetworkRequestThe request received from the client. |
context |
ServerCallContextThe 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). |
TestIamPermissions(TestIamPermissionsSubnetworkRequest, ServerCallContext)
public virtual Task<TestPermissionsResponse> TestIamPermissions(TestIamPermissionsSubnetworkRequest request, ServerCallContext context)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsSubnetworkRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskTestPermissionsResponse |
The response to send back to the client (wrapped by a task). |