Compute Engine v1 API - Class Subnetworks.SubnetworksBase (2.16.0)

[BindServiceMethod(typeof(Subnetworks), "BindService")]
public abstract class Subnetworks.SubnetworksBase

Reference documentation and code samples for the Compute Engine v1 API class Subnetworks.SubnetworksBase.

Base class for server-side implementations of Subnetworks

Inheritance

object > Subnetworks.SubnetworksBase

Namespace

Google.Cloud.Compute.V1

Assembly

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 AggregatedListSubnetworksRequest

The request received from the client.

context ServerCallContext

The 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 DeleteSubnetworkRequest

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).

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 ExpandIpCidrRangeSubnetworkRequest

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(GetSubnetworkRequest, ServerCallContext)

public virtual Task<Subnetwork> Get(GetSubnetworkRequest request, ServerCallContext context)

Returns the specified subnetwork.

Parameters
Name Description
request GetSubnetworkRequest

The request received from the client.

context ServerCallContext

The 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 GetIamPolicySubnetworkRequest

The request received from the client.

context ServerCallContext

The 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 InsertSubnetworkRequest

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).

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 ListSubnetworksRequest

The request received from the client.

context ServerCallContext

The 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 ListUsableSubnetworksRequest

The request received from the client.

context ServerCallContext

The 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 PatchSubnetworkRequest

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).

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 SetIamPolicySubnetworkRequest

The request received from the client.

context ServerCallContext

The 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 SetPrivateIpGoogleAccessSubnetworkRequest

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).

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 TestIamPermissionsSubnetworkRequest

The request received from the client.

context ServerCallContext

The 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).