public sealed class NetworksClientImpl : NetworksClientReference documentation and code samples for the Compute Engine v1 API class NetworksClientImpl.
Networks client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Compute.V1Assembly
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 |
NetworksNetworksClientThe underlying gRPC client. |
settings |
NetworksSettingsThe base NetworksSettings used within this client. |
logger |
ILoggerOptional 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 |
|
DeleteOperationsClient
public override OperationsClient DeleteOperationsClient { get; }The long-running operations client for Delete.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public override Networks.NetworksClient GrpcClient { get; }The underlying gRPC Networks client
| Property Value | |
|---|---|
| Type | Description |
NetworksNetworksClient |
|
InsertOperationsClient
public override OperationsClient InsertOperationsClient { get; }The long-running operations client for Insert.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
PatchOperationsClient
public override OperationsClient PatchOperationsClient { get; }The long-running operations client for Patch.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
RemovePeeringOperationsClient
public override OperationsClient RemovePeeringOperationsClient { get; }The long-running operations client for RemovePeering.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
RequestRemovePeeringOperationsClient
public override OperationsClient RequestRemovePeeringOperationsClient { get; }The long-running operations client for RequestRemovePeering.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
SwitchToCustomModeOperationsClient
public override OperationsClient SwitchToCustomModeOperationsClient { get; }The long-running operations client for SwitchToCustomMode.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
UpdatePeeringOperationsClient
public override OperationsClient UpdatePeeringOperationsClient { get; }The long-running operations client for UpdatePeering.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
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 |
AddPeeringNetworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
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 |
AddPeeringNetworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
Delete(DeleteNetworkRequest, CallSettings)
public override Operation<Operation, Operation> Delete(DeleteNetworkRequest request, CallSettings callSettings = null)Deletes the specified network.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteNetworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
DeleteAsync(DeleteNetworkRequest, CallSettings)
public override Task<Operation<Operation, Operation>> DeleteAsync(DeleteNetworkRequest request, CallSettings callSettings = null)Deletes the specified network.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteNetworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
Get(GetNetworkRequest, CallSettings)
public override Network Get(GetNetworkRequest request, CallSettings callSettings = null)Returns the specified network.
| Parameters | |
|---|---|
| Name | Description |
request |
GetNetworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Network |
The RPC response. |
GetAsync(GetNetworkRequest, CallSettings)
public override Task<Network> GetAsync(GetNetworkRequest request, CallSettings callSettings = null)Returns the specified network.
| Parameters | |
|---|---|
| Name | Description |
request |
GetNetworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskNetwork |
A Task containing the RPC response. |
GetEffectiveFirewalls(GetEffectiveFirewallsNetworkRequest, CallSettings)
public override NetworksGetEffectiveFirewallsResponse GetEffectiveFirewalls(GetEffectiveFirewallsNetworkRequest request, CallSettings callSettings = null)Returns the effective firewalls on a given network.
| Parameters | |
|---|---|
| Name | Description |
request |
GetEffectiveFirewallsNetworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
NetworksGetEffectiveFirewallsResponse |
The RPC response. |
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 |
GetEffectiveFirewallsNetworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskNetworksGetEffectiveFirewallsResponse |
A Task containing the RPC response. |
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 |
InsertNetworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
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 |
InsertNetworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
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 |
ListNetworksRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableNetworkListNetwork |
A pageable sequence of Network resources. |
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 |
ListNetworksRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableNetworkListNetwork |
A pageable asynchronous sequence of Network resources. |
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 |
ListPeeringRoutesNetworksRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableExchangedPeeringRoutesListExchangedPeeringRoute |
A pageable sequence of ExchangedPeeringRoute resources. |
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 |
ListPeeringRoutesNetworksRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableExchangedPeeringRoutesListExchangedPeeringRoute |
A pageable asynchronous sequence of ExchangedPeeringRoute resources. |
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 routingConfig can be modified.
| Parameters | |
|---|---|
| Name | Description |
request |
PatchNetworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
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 routingConfig can be modified.
| Parameters | |
|---|---|
| Name | Description |
request |
PatchNetworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
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 |
RemovePeeringNetworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
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 |
RemovePeeringNetworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
RequestRemovePeering(RequestRemovePeeringNetworkRequest, CallSettings)
public override Operation<Operation, Operation> RequestRemovePeering(RequestRemovePeeringNetworkRequest request, CallSettings callSettings = null)Requests to remove a peering from the specified network. Applicable only for PeeringConnection with update_strategy=CONSENSUS.
| Parameters | |
|---|---|
| Name | Description |
request |
RequestRemovePeeringNetworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
RequestRemovePeeringAsync(RequestRemovePeeringNetworkRequest, CallSettings)
public override Task<Operation<Operation, Operation>> RequestRemovePeeringAsync(RequestRemovePeeringNetworkRequest request, CallSettings callSettings = null)Requests to remove a peering from the specified network. Applicable only for PeeringConnection with update_strategy=CONSENSUS.
| Parameters | |
|---|---|
| Name | Description |
request |
RequestRemovePeeringNetworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
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 |
SwitchToCustomModeNetworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
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 |
SwitchToCustomModeNetworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
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 |
UpdatePeeringNetworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
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 |
UpdatePeeringNetworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |