Compute Engine v1 API - Class Networks.NetworksBase (3.1.0)

[BindServiceMethod(typeof(Networks), "BindService")]
public abstract class Networks.NetworksBase

Reference documentation and code samples for the Compute Engine v1 API class Networks.NetworksBase.

Base class for server-side implementations of Networks

Inheritance

object > Networks.NetworksBase

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Methods

AddPeering(AddPeeringNetworkRequest, ServerCallContext)

public virtual Task<Operation> AddPeering(AddPeeringNetworkRequest request, ServerCallContext context)

Adds a peering to the specified network.

Parameters
Name Description
request AddPeeringNetworkRequest

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

Delete(DeleteNetworkRequest, ServerCallContext)

public virtual Task<Operation> Delete(DeleteNetworkRequest request, ServerCallContext context)

Deletes the specified network.

Parameters
Name Description
request DeleteNetworkRequest

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

public virtual Task<Network> Get(GetNetworkRequest request, ServerCallContext context)

Returns the specified network.

Parameters
Name Description
request GetNetworkRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskNetwork

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

GetEffectiveFirewalls(GetEffectiveFirewallsNetworkRequest, ServerCallContext)

public virtual Task<NetworksGetEffectiveFirewallsResponse> GetEffectiveFirewalls(GetEffectiveFirewallsNetworkRequest request, ServerCallContext context)

Returns the effective firewalls on a given network.

Parameters
Name Description
request GetEffectiveFirewallsNetworkRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskNetworksGetEffectiveFirewallsResponse

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

Insert(InsertNetworkRequest, ServerCallContext)

public virtual Task<Operation> Insert(InsertNetworkRequest request, ServerCallContext context)

Creates a network in the specified project using the data included in the request.

Parameters
Name Description
request InsertNetworkRequest

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

public virtual Task<NetworkList> List(ListNetworksRequest request, ServerCallContext context)

Retrieves the list of networks available to the specified project.

Parameters
Name Description
request ListNetworksRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskNetworkList

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

ListPeeringRoutes(ListPeeringRoutesNetworksRequest, ServerCallContext)

public virtual Task<ExchangedPeeringRoutesList> ListPeeringRoutes(ListPeeringRoutesNetworksRequest request, ServerCallContext context)

Lists the peering routes exchanged over peering connection.

Parameters
Name Description
request ListPeeringRoutesNetworksRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskExchangedPeeringRoutesList

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

Patch(PatchNetworkRequest, ServerCallContext)

public virtual Task<Operation> Patch(PatchNetworkRequest request, ServerCallContext context)

Patches the specified network with the data included in the request. Only routingConfig can be modified.

Parameters
Name Description
request PatchNetworkRequest

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

RemovePeering(RemovePeeringNetworkRequest, ServerCallContext)

public virtual Task<Operation> RemovePeering(RemovePeeringNetworkRequest request, ServerCallContext context)

Removes a peering from the specified network.

Parameters
Name Description
request RemovePeeringNetworkRequest

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

SwitchToCustomMode(SwitchToCustomModeNetworkRequest, ServerCallContext)

public virtual Task<Operation> SwitchToCustomMode(SwitchToCustomModeNetworkRequest request, ServerCallContext context)

Switches the network mode from auto subnet mode to custom subnet mode.

Parameters
Name Description
request SwitchToCustomModeNetworkRequest

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

UpdatePeering(UpdatePeeringNetworkRequest, ServerCallContext)

public virtual Task<Operation> UpdatePeering(UpdatePeeringNetworkRequest request, ServerCallContext context)

Updates the specified network peering with the data included in the request. You can only modify the NetworkPeering.export_custom_routes field and the NetworkPeering.import_custom_routes field.

Parameters
Name Description
request UpdatePeeringNetworkRequest

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