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

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

Parameters
NameDescription
requestAggregatedListSubnetworksRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<SubnetworkAggregatedList>

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

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

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

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

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

Returns the specified subnetwork. Gets a list of available subnetworks list() request.

Parameters
NameDescription
requestGetSubnetworkRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Subnetwork>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Policy>

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

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

List(ListSubnetworksRequest, ServerCallContext)

public virtual Task<SubnetworkList> List(ListSubnetworksRequest request, ServerCallContext context)

Retrieves a list of subnetworks available to the specified project.

Parameters
NameDescription
requestListSubnetworksRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<SubnetworkList>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<UsableSubnetworksAggregatedList>

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

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

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Policy>

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

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

TestIamPermissions(TestIamPermissionsSubnetworkRequest, ServerCallContext)

public virtual Task<TestPermissionsResponse> TestIamPermissions(TestIamPermissionsSubnetworkRequest request, ServerCallContext context)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsSubnetworkRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<TestPermissionsResponse>

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