Compute Engine v1 API - Class Networks.NetworksClient (2.11.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
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

NetworksClient(ChannelBase)

public NetworksClient(ChannelBase channel)

Creates a new client for Networks

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

NetworksClient(ClientBaseConfiguration)

protected NetworksClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

AddPeering(AddPeeringNetworkRequest, CallOptions)

public virtual Operation AddPeering(AddPeeringNetworkRequest request, CallOptions options)

Adds a peering to the specified network.

Parameters
NameDescription
requestAddPeeringNetworkRequest

The request to send to the server.

optionsCallOptions

The options for the call.

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

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

The request to send to the server.

optionsCallOptions

The options for the call.

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

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

The request to send to the server.

optionsCallOptions

The options for the call.

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

DeleteAsync(DeleteNetworkRequest, CallOptions)

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

Deletes the specified network.

Parameters
NameDescription
requestDeleteNetworkRequest

The request to send to the server.

optionsCallOptions

The options for the call.

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

Get(GetNetworkRequest, CallOptions)

public virtual Network Get(GetNetworkRequest request, CallOptions options)

Returns the specified network.

Parameters
NameDescription
requestGetNetworkRequest

The request to send to the server.

optionsCallOptions

The options for the call.

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Network

The response received from the server.

GetAsync(GetNetworkRequest, CallOptions)

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

Returns the specified network.

Parameters
NameDescription
requestGetNetworkRequest

The request to send to the server.

optionsCallOptions

The options for the call.

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallNetwork

The call object.

GetEffectiveFirewalls(GetEffectiveFirewallsNetworkRequest, CallOptions)

public virtual NetworksGetEffectiveFirewallsResponse GetEffectiveFirewalls(GetEffectiveFirewallsNetworkRequest request, CallOptions options)

Returns the effective firewalls on a given network.

Parameters
NameDescription
requestGetEffectiveFirewallsNetworkRequest

The request to send to the server.

optionsCallOptions

The options for the call.

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

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

The request to send to the server.

optionsCallOptions

The options for the call.

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

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

The request to send to the server.

optionsCallOptions

The options for the call.

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

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

The request to send to the server.

optionsCallOptions

The options for the call.

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

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

The request to send to the server.

optionsCallOptions

The options for the call.

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

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

The request to send to the server.

optionsCallOptions

The options for the call.

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallNetworkList

The call object.

ListPeeringRoutes(ListPeeringRoutesNetworksRequest, CallOptions)

public virtual ExchangedPeeringRoutesList ListPeeringRoutes(ListPeeringRoutesNetworksRequest request, CallOptions options)

Lists the peering routes exchanged over peering connection.

Parameters
NameDescription
requestListPeeringRoutesNetworksRequest

The request to send to the server.

optionsCallOptions

The options for the call.

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

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

The request to send to the server.

optionsCallOptions

The options for the call.

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallExchangedPeeringRoutesList

The call object.

NewInstance(ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
NetworksNetworksClient
Overrides

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

The request to send to the server.

optionsCallOptions

The options for the call.

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

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

The request to send to the server.

optionsCallOptions

The options for the call.

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

RemovePeering(RemovePeeringNetworkRequest, CallOptions)

public virtual Operation RemovePeering(RemovePeeringNetworkRequest request, CallOptions options)

Removes a peering from the specified network.

Parameters
NameDescription
requestRemovePeeringNetworkRequest

The request to send to the server.

optionsCallOptions

The options for the call.

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

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

The request to send to the server.

optionsCallOptions

The options for the call.

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

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

The request to send to the server.

optionsCallOptions

The options for the call.

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

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

The request to send to the server.

optionsCallOptions

The options for the call.

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

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

The request to send to the server.

optionsCallOptions

The options for the call.

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

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

The request to send to the server.

optionsCallOptions

The options for the call.

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.