Compute Engine v1 API - Class Networks.NetworksClient (2.17.0)

public class Networks.NetworksClient : ClientBase<Networks.NetworksClient>

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

Client for Networks

Inheritance

object > ClientBase > ClientBaseNetworksNetworksClient > Networks.NetworksClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

NetworksClient()

protected NetworksClient()

Protected parameterless constructor to allow creation of test doubles.

NetworksClient(CallInvoker)

public NetworksClient(CallInvoker callInvoker)

Creates a new client for Networks that uses a custom CallInvoker.

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

NetworksClient(ChannelBase)

public NetworksClient(ChannelBase channel)

Creates a new client for Networks

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

NetworksClient(ClientBaseConfiguration)

protected NetworksClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

AddPeering(AddPeeringNetworkRequest, CallOptions)

public virtual Operation AddPeering(AddPeeringNetworkRequest request, CallOptions options)

Adds a peering to the specified network.

Parameters
Name Description
request AddPeeringNetworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

AddPeering(AddPeeringNetworkRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation AddPeering(AddPeeringNetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Adds a peering to the specified network.

Parameters
Name Description
request AddPeeringNetworkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

AddPeeringAsync(AddPeeringNetworkRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> AddPeeringAsync(AddPeeringNetworkRequest request, CallOptions options)

Adds a peering to the specified network.

Parameters
Name Description
request AddPeeringNetworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

AddPeeringAsync(AddPeeringNetworkRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> AddPeeringAsync(AddPeeringNetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Adds a peering to the specified network.

Parameters
Name Description
request AddPeeringNetworkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

CreateOperationsClientForGlobalOperations()

public virtual Operations.OperationsClient CreateOperationsClientForGlobalOperations()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client, delegating to GlobalOperations.

Returns
Type Description
OperationsOperationsClient

A new Operations client for the same target as this client.

Delete(DeleteNetworkRequest, CallOptions)

public virtual Operation Delete(DeleteNetworkRequest request, CallOptions options)

Deletes the specified network.

Parameters
Name Description
request DeleteNetworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Delete(DeleteNetworkRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Delete(DeleteNetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified network.

Parameters
Name Description
request DeleteNetworkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

DeleteAsync(DeleteNetworkRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteNetworkRequest request, CallOptions options)

Deletes the specified network.

Parameters
Name Description
request DeleteNetworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

DeleteAsync(DeleteNetworkRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteNetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified network.

Parameters
Name Description
request DeleteNetworkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

Get(GetNetworkRequest, CallOptions)

public virtual Network Get(GetNetworkRequest request, CallOptions options)

Returns the specified network.

Parameters
Name Description
request GetNetworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Network

The response received from the server.

Get(GetNetworkRequest, Metadata, DateTime?, CancellationToken)

public virtual Network Get(GetNetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the specified network.

Parameters
Name Description
request GetNetworkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Network

The response received from the server.

GetAsync(GetNetworkRequest, CallOptions)

public virtual AsyncUnaryCall<Network> GetAsync(GetNetworkRequest request, CallOptions options)

Returns the specified network.

Parameters
Name Description
request GetNetworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallNetwork

The call object.

GetAsync(GetNetworkRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Network> GetAsync(GetNetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the specified network.

Parameters
Name Description
request GetNetworkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallNetwork

The call object.

GetEffectiveFirewalls(GetEffectiveFirewallsNetworkRequest, CallOptions)

public virtual NetworksGetEffectiveFirewallsResponse GetEffectiveFirewalls(GetEffectiveFirewallsNetworkRequest request, CallOptions options)

Returns the effective firewalls on a given network.

Parameters
Name Description
request GetEffectiveFirewallsNetworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
NetworksGetEffectiveFirewallsResponse

The response received from the server.

GetEffectiveFirewalls(GetEffectiveFirewallsNetworkRequest, Metadata, DateTime?, CancellationToken)

public virtual NetworksGetEffectiveFirewallsResponse GetEffectiveFirewalls(GetEffectiveFirewallsNetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the effective firewalls on a given network.

Parameters
Name Description
request GetEffectiveFirewallsNetworkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
NetworksGetEffectiveFirewallsResponse

The response received from the server.

GetEffectiveFirewallsAsync(GetEffectiveFirewallsNetworkRequest, CallOptions)

public virtual AsyncUnaryCall<NetworksGetEffectiveFirewallsResponse> GetEffectiveFirewallsAsync(GetEffectiveFirewallsNetworkRequest request, CallOptions options)

Returns the effective firewalls on a given network.

Parameters
Name Description
request GetEffectiveFirewallsNetworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallNetworksGetEffectiveFirewallsResponse

The call object.

GetEffectiveFirewallsAsync(GetEffectiveFirewallsNetworkRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<NetworksGetEffectiveFirewallsResponse> GetEffectiveFirewallsAsync(GetEffectiveFirewallsNetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the effective firewalls on a given network.

Parameters
Name Description
request GetEffectiveFirewallsNetworkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallNetworksGetEffectiveFirewallsResponse

The call object.

Insert(InsertNetworkRequest, CallOptions)

public virtual Operation Insert(InsertNetworkRequest request, CallOptions options)

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

Parameters
Name Description
request InsertNetworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Insert(InsertNetworkRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Insert(InsertNetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request InsertNetworkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

InsertAsync(InsertNetworkRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertNetworkRequest request, CallOptions options)

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

Parameters
Name Description
request InsertNetworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

InsertAsync(InsertNetworkRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertNetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request InsertNetworkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

List(ListNetworksRequest, CallOptions)

public virtual NetworkList List(ListNetworksRequest request, CallOptions options)

Retrieves the list of networks available to the specified project.

Parameters
Name Description
request ListNetworksRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
NetworkList

The response received from the server.

List(ListNetworksRequest, Metadata, DateTime?, CancellationToken)

public virtual NetworkList List(ListNetworksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the list of networks available to the specified project.

Parameters
Name Description
request ListNetworksRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
NetworkList

The response received from the server.

ListAsync(ListNetworksRequest, CallOptions)

public virtual AsyncUnaryCall<NetworkList> ListAsync(ListNetworksRequest request, CallOptions options)

Retrieves the list of networks available to the specified project.

Parameters
Name Description
request ListNetworksRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallNetworkList

The call object.

ListAsync(ListNetworksRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<NetworkList> ListAsync(ListNetworksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the list of networks available to the specified project.

Parameters
Name Description
request ListNetworksRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallNetworkList

The call object.

ListPeeringRoutes(ListPeeringRoutesNetworksRequest, CallOptions)

public virtual ExchangedPeeringRoutesList ListPeeringRoutes(ListPeeringRoutesNetworksRequest request, CallOptions options)

Lists the peering routes exchanged over peering connection.

Parameters
Name Description
request ListPeeringRoutesNetworksRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ExchangedPeeringRoutesList

The response received from the server.

ListPeeringRoutes(ListPeeringRoutesNetworksRequest, Metadata, DateTime?, CancellationToken)

public virtual ExchangedPeeringRoutesList ListPeeringRoutes(ListPeeringRoutesNetworksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists the peering routes exchanged over peering connection.

Parameters
Name Description
request ListPeeringRoutesNetworksRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ExchangedPeeringRoutesList

The response received from the server.

ListPeeringRoutesAsync(ListPeeringRoutesNetworksRequest, CallOptions)

public virtual AsyncUnaryCall<ExchangedPeeringRoutesList> ListPeeringRoutesAsync(ListPeeringRoutesNetworksRequest request, CallOptions options)

Lists the peering routes exchanged over peering connection.

Parameters
Name Description
request ListPeeringRoutesNetworksRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallExchangedPeeringRoutesList

The call object.

ListPeeringRoutesAsync(ListPeeringRoutesNetworksRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ExchangedPeeringRoutesList> ListPeeringRoutesAsync(ListPeeringRoutesNetworksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists the peering routes exchanged over peering connection.

Parameters
Name Description
request ListPeeringRoutesNetworksRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallExchangedPeeringRoutesList

The call object.

NewInstance(ClientBaseConfiguration)

protected override Networks.NetworksClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
NetworksNetworksClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.Networks.NetworksClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

Patch(PatchNetworkRequest, CallOptions)

public virtual Operation Patch(PatchNetworkRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Patch(PatchNetworkRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Patch(PatchNetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

PatchAsync(PatchNetworkRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> PatchAsync(PatchNetworkRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

PatchAsync(PatchNetworkRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> PatchAsync(PatchNetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

RemovePeering(RemovePeeringNetworkRequest, CallOptions)

public virtual Operation RemovePeering(RemovePeeringNetworkRequest request, CallOptions options)

Removes a peering from the specified network.

Parameters
Name Description
request RemovePeeringNetworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

RemovePeering(RemovePeeringNetworkRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation RemovePeering(RemovePeeringNetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Removes a peering from the specified network.

Parameters
Name Description
request RemovePeeringNetworkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

RemovePeeringAsync(RemovePeeringNetworkRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> RemovePeeringAsync(RemovePeeringNetworkRequest request, CallOptions options)

Removes a peering from the specified network.

Parameters
Name Description
request RemovePeeringNetworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

RemovePeeringAsync(RemovePeeringNetworkRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> RemovePeeringAsync(RemovePeeringNetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Removes a peering from the specified network.

Parameters
Name Description
request RemovePeeringNetworkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

SwitchToCustomMode(SwitchToCustomModeNetworkRequest, CallOptions)

public virtual Operation SwitchToCustomMode(SwitchToCustomModeNetworkRequest request, CallOptions options)

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

Parameters
Name Description
request SwitchToCustomModeNetworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

SwitchToCustomMode(SwitchToCustomModeNetworkRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation SwitchToCustomMode(SwitchToCustomModeNetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request SwitchToCustomModeNetworkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

SwitchToCustomModeAsync(SwitchToCustomModeNetworkRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> SwitchToCustomModeAsync(SwitchToCustomModeNetworkRequest request, CallOptions options)

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

Parameters
Name Description
request SwitchToCustomModeNetworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

SwitchToCustomModeAsync(SwitchToCustomModeNetworkRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> SwitchToCustomModeAsync(SwitchToCustomModeNetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request SwitchToCustomModeNetworkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

UpdatePeering(UpdatePeeringNetworkRequest, CallOptions)

public virtual Operation UpdatePeering(UpdatePeeringNetworkRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

UpdatePeering(UpdatePeeringNetworkRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation UpdatePeering(UpdatePeeringNetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

UpdatePeeringAsync(UpdatePeeringNetworkRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> UpdatePeeringAsync(UpdatePeeringNetworkRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

UpdatePeeringAsync(UpdatePeeringNetworkRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> UpdatePeeringAsync(UpdatePeeringNetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.