Compute Engine v1 API - Class Networks.NetworksBase (2.9.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

GoogleCloudGoogle.Cloud.ComputeV1

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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
NameDescription
requestDeleteNetworkRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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
NameDescription
requestGetNetworkRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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
NameDescription
requestGetEffectiveFirewallsNetworkRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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
NameDescription
requestInsertNetworkRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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
NameDescription
requestListNetworksRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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
NameDescription
requestListPeeringRoutesNetworksRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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 the following fields can be modified: routingConfig.routingMode.

Parameters
NameDescription
requestPatchNetworkRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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
NameDescription
requestRemovePeeringNetworkRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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
NameDescription
requestSwitchToCustomModeNetworkRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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
NameDescription
requestUpdatePeeringNetworkRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskOperation

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