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

public class NetworksClient : ClientBase<Networks.NetworksClient>

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

Client for Networks

Inheritance

Object > ClientBase > ClientBase<Networks.NetworksClient> > 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(ClientBase.ClientBaseConfiguration)

protected NetworksClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.

AddPeeringAsync(AddPeeringNetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

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

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.

DeleteAsync(DeleteNetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.

Get(GetNetworkRequest, CallOptions)

public virtual Network Get(GetNetworkRequest request, CallOptions options)

Returns the specified network. Gets a list of available networks by making a list() request.

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, Nullable<DateTime>, CancellationToken)

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

Returns the specified network. Gets a list of available networks by making a list() request.

Parameters
NameDescription
requestGetNetworkRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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. Gets a list of available networks by making a list() request.

Parameters
NameDescription
requestGetNetworkRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Network>

The call object.

GetAsync(GetNetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Returns the specified network. Gets a list of available networks by making a list() request.

Parameters
NameDescription
requestGetNetworkRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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
AsyncUnaryCall<Network>

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<NetworksGetEffectiveFirewallsResponse>

The call object.

GetEffectiveFirewallsAsync(GetEffectiveFirewallsNetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<NetworksGetEffectiveFirewallsResponse>

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.

InsertAsync(InsertNetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<NetworkList>

The call object.

ListAsync(ListNetworksRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<NetworkList>

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<ExchangedPeeringRoutesList>

The call object.

ListPeeringRoutesAsync(ListPeeringRoutesNetworksRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<ExchangedPeeringRoutesList>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
Networks.NetworksClient
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
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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.

PatchAsync(PatchNetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.

RemovePeeringAsync(RemovePeeringNetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.

SwitchToCustomModeAsync(SwitchToCustomModeNetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.

UpdatePeeringAsync(UpdatePeeringNetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.