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