Compute Engine v1 API - Class NetworksClientImpl (2.16.0)

public sealed class NetworksClientImpl : NetworksClient

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

Networks client wrapper implementation, for convenient use.

Inheritance

object > NetworksClient > NetworksClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The Networks API.

Constructors

NetworksClientImpl(NetworksClient, NetworksSettings, ILogger)

public NetworksClientImpl(Networks.NetworksClient grpcClient, NetworksSettings settings, ILogger logger)

Constructs a client wrapper for the Networks service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient NetworksNetworksClient

The underlying gRPC client.

settings NetworksSettings

The base NetworksSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

AddPeeringOperationsClient

public override OperationsClient AddPeeringOperationsClient { get; }

The long-running operations client for AddPeering.

Property Value
Type Description
OperationsClient
Overrides

DeleteOperationsClient

public override OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
Type Description
OperationsClient
Overrides

GrpcClient

public override Networks.NetworksClient GrpcClient { get; }

The underlying gRPC Networks client

Property Value
Type Description
NetworksNetworksClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
Type Description
OperationsClient
Overrides

PatchOperationsClient

public override OperationsClient PatchOperationsClient { get; }

The long-running operations client for Patch.

Property Value
Type Description
OperationsClient
Overrides

RemovePeeringOperationsClient

public override OperationsClient RemovePeeringOperationsClient { get; }

The long-running operations client for RemovePeering.

Property Value
Type Description
OperationsClient
Overrides

SwitchToCustomModeOperationsClient

public override OperationsClient SwitchToCustomModeOperationsClient { get; }

The long-running operations client for SwitchToCustomMode.

Property Value
Type Description
OperationsClient
Overrides

UpdatePeeringOperationsClient

public override OperationsClient UpdatePeeringOperationsClient { get; }

The long-running operations client for UpdatePeering.

Property Value
Type Description
OperationsClient
Overrides

Methods

AddPeering(AddPeeringNetworkRequest, CallSettings)

public override Operation<Operation, Operation> AddPeering(AddPeeringNetworkRequest request, CallSettings callSettings = null)

Adds a peering to the specified network.

Parameters
Name Description
request AddPeeringNetworkRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

AddPeeringAsync(AddPeeringNetworkRequest, CallSettings)

public override Task<Operation<Operation, Operation>> AddPeeringAsync(AddPeeringNetworkRequest request, CallSettings callSettings = null)

Adds a peering to the specified network.

Parameters
Name Description
request AddPeeringNetworkRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

Delete(DeleteNetworkRequest, CallSettings)

public override Operation<Operation, Operation> Delete(DeleteNetworkRequest request, CallSettings callSettings = null)

Deletes the specified network.

Parameters
Name Description
request DeleteNetworkRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

DeleteAsync(DeleteNetworkRequest, CallSettings)

public override Task<Operation<Operation, Operation>> DeleteAsync(DeleteNetworkRequest request, CallSettings callSettings = null)

Deletes the specified network.

Parameters
Name Description
request DeleteNetworkRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

Get(GetNetworkRequest, CallSettings)

public override Network Get(GetNetworkRequest request, CallSettings callSettings = null)

Returns the specified network.

Parameters
Name Description
request GetNetworkRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Network

The RPC response.

Overrides

GetAsync(GetNetworkRequest, CallSettings)

public override Task<Network> GetAsync(GetNetworkRequest request, CallSettings callSettings = null)

Returns the specified network.

Parameters
Name Description
request GetNetworkRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskNetwork

A Task containing the RPC response.

Overrides

GetEffectiveFirewalls(GetEffectiveFirewallsNetworkRequest, CallSettings)

public override NetworksGetEffectiveFirewallsResponse GetEffectiveFirewalls(GetEffectiveFirewallsNetworkRequest request, CallSettings callSettings = null)

Returns the effective firewalls on a given network.

Parameters
Name Description
request GetEffectiveFirewallsNetworkRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
NetworksGetEffectiveFirewallsResponse

The RPC response.

Overrides

GetEffectiveFirewallsAsync(GetEffectiveFirewallsNetworkRequest, CallSettings)

public override Task<NetworksGetEffectiveFirewallsResponse> GetEffectiveFirewallsAsync(GetEffectiveFirewallsNetworkRequest request, CallSettings callSettings = null)

Returns the effective firewalls on a given network.

Parameters
Name Description
request GetEffectiveFirewallsNetworkRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskNetworksGetEffectiveFirewallsResponse

A Task containing the RPC response.

Overrides

Insert(InsertNetworkRequest, CallSettings)

public override Operation<Operation, Operation> Insert(InsertNetworkRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request InsertNetworkRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

InsertAsync(InsertNetworkRequest, CallSettings)

public override Task<Operation<Operation, Operation>> InsertAsync(InsertNetworkRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request InsertNetworkRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

List(ListNetworksRequest, CallSettings)

public override PagedEnumerable<NetworkList, Network> List(ListNetworksRequest request, CallSettings callSettings = null)

Retrieves the list of networks available to the specified project.

Parameters
Name Description
request ListNetworksRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableNetworkListNetwork

A pageable sequence of Network resources.

Overrides

ListAsync(ListNetworksRequest, CallSettings)

public override PagedAsyncEnumerable<NetworkList, Network> ListAsync(ListNetworksRequest request, CallSettings callSettings = null)

Retrieves the list of networks available to the specified project.

Parameters
Name Description
request ListNetworksRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableNetworkListNetwork

A pageable asynchronous sequence of Network resources.

Overrides

ListPeeringRoutes(ListPeeringRoutesNetworksRequest, CallSettings)

public override PagedEnumerable<ExchangedPeeringRoutesList, ExchangedPeeringRoute> ListPeeringRoutes(ListPeeringRoutesNetworksRequest request, CallSettings callSettings = null)

Lists the peering routes exchanged over peering connection.

Parameters
Name Description
request ListPeeringRoutesNetworksRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableExchangedPeeringRoutesListExchangedPeeringRoute

A pageable sequence of ExchangedPeeringRoute resources.

Overrides

ListPeeringRoutesAsync(ListPeeringRoutesNetworksRequest, CallSettings)

public override PagedAsyncEnumerable<ExchangedPeeringRoutesList, ExchangedPeeringRoute> ListPeeringRoutesAsync(ListPeeringRoutesNetworksRequest request, CallSettings callSettings = null)

Lists the peering routes exchanged over peering connection.

Parameters
Name Description
request ListPeeringRoutesNetworksRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableExchangedPeeringRoutesListExchangedPeeringRoute

A pageable asynchronous sequence of ExchangedPeeringRoute resources.

Overrides

Patch(PatchNetworkRequest, CallSettings)

public override Operation<Operation, Operation> Patch(PatchNetworkRequest request, CallSettings callSettings = null)

Patches the specified network with the data included in the request. Only the following fields can be modified: routingConfig.routingMode.

Parameters
Name Description
request PatchNetworkRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

PatchAsync(PatchNetworkRequest, CallSettings)

public override Task<Operation<Operation, Operation>> PatchAsync(PatchNetworkRequest request, CallSettings callSettings = null)

Patches the specified network with the data included in the request. Only the following fields can be modified: routingConfig.routingMode.

Parameters
Name Description
request PatchNetworkRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

RemovePeering(RemovePeeringNetworkRequest, CallSettings)

public override Operation<Operation, Operation> RemovePeering(RemovePeeringNetworkRequest request, CallSettings callSettings = null)

Removes a peering from the specified network.

Parameters
Name Description
request RemovePeeringNetworkRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

RemovePeeringAsync(RemovePeeringNetworkRequest, CallSettings)

public override Task<Operation<Operation, Operation>> RemovePeeringAsync(RemovePeeringNetworkRequest request, CallSettings callSettings = null)

Removes a peering from the specified network.

Parameters
Name Description
request RemovePeeringNetworkRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

SwitchToCustomMode(SwitchToCustomModeNetworkRequest, CallSettings)

public override Operation<Operation, Operation> SwitchToCustomMode(SwitchToCustomModeNetworkRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request SwitchToCustomModeNetworkRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

SwitchToCustomModeAsync(SwitchToCustomModeNetworkRequest, CallSettings)

public override Task<Operation<Operation, Operation>> SwitchToCustomModeAsync(SwitchToCustomModeNetworkRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request SwitchToCustomModeNetworkRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

UpdatePeering(UpdatePeeringNetworkRequest, CallSettings)

public override Operation<Operation, Operation> UpdatePeering(UpdatePeeringNetworkRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

UpdatePeeringAsync(UpdatePeeringNetworkRequest, CallSettings)

public override Task<Operation<Operation, Operation>> UpdatePeeringAsync(UpdatePeeringNetworkRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides