Compute Engine v1 API - Class CrossSiteNetworks.CrossSiteNetworksClient (3.22.0)

public class CrossSiteNetworks.CrossSiteNetworksClient : ClientBase<CrossSiteNetworks.CrossSiteNetworksClient>

Reference documentation and code samples for the Compute Engine v1 API class CrossSiteNetworks.CrossSiteNetworksClient.

Client for CrossSiteNetworks

Inheritance

object > ClientBase > ClientBaseCrossSiteNetworksCrossSiteNetworksClient > CrossSiteNetworks.CrossSiteNetworksClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

CrossSiteNetworksClient()

protected CrossSiteNetworksClient()

Protected parameterless constructor to allow creation of test doubles.

CrossSiteNetworksClient(CallInvoker)

public CrossSiteNetworksClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

CrossSiteNetworksClient(ChannelBase)

public CrossSiteNetworksClient(ChannelBase channel)

Creates a new client for CrossSiteNetworks

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

CrossSiteNetworksClient(ClientBaseConfiguration)

protected CrossSiteNetworksClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

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(DeleteCrossSiteNetworkRequest, CallOptions)

public virtual Operation Delete(DeleteCrossSiteNetworkRequest request, CallOptions options)

Deletes the specified cross-site network in the given scope.

Parameters
Name Description
request DeleteCrossSiteNetworkRequest

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(DeleteCrossSiteNetworkRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the specified cross-site network in the given scope.

Parameters
Name Description
request DeleteCrossSiteNetworkRequest

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(DeleteCrossSiteNetworkRequest, CallOptions)

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

Deletes the specified cross-site network in the given scope.

Parameters
Name Description
request DeleteCrossSiteNetworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

DeleteAsync(DeleteCrossSiteNetworkRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the specified cross-site network in the given scope.

Parameters
Name Description
request DeleteCrossSiteNetworkRequest

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(GetCrossSiteNetworkRequest, CallOptions)

public virtual CrossSiteNetwork Get(GetCrossSiteNetworkRequest request, CallOptions options)

Returns the specified cross-site network in the given scope.

Parameters
Name Description
request GetCrossSiteNetworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
CrossSiteNetwork

The response received from the server.

Get(GetCrossSiteNetworkRequest, Metadata, DateTime?, CancellationToken)

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

Returns the specified cross-site network in the given scope.

Parameters
Name Description
request GetCrossSiteNetworkRequest

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
CrossSiteNetwork

The response received from the server.

GetAsync(GetCrossSiteNetworkRequest, CallOptions)

public virtual AsyncUnaryCall<CrossSiteNetwork> GetAsync(GetCrossSiteNetworkRequest request, CallOptions options)

Returns the specified cross-site network in the given scope.

Parameters
Name Description
request GetCrossSiteNetworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallCrossSiteNetwork

The call object.

GetAsync(GetCrossSiteNetworkRequest, Metadata, DateTime?, CancellationToken)

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

Returns the specified cross-site network in the given scope.

Parameters
Name Description
request GetCrossSiteNetworkRequest

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
AsyncUnaryCallCrossSiteNetwork

The call object.

Insert(InsertCrossSiteNetworkRequest, CallOptions)

public virtual Operation Insert(InsertCrossSiteNetworkRequest request, CallOptions options)

Creates a cross-site network in the specified project in the given scope using the parameters that are included in the request.

Parameters
Name Description
request InsertCrossSiteNetworkRequest

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(InsertCrossSiteNetworkRequest, Metadata, DateTime?, CancellationToken)

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

Creates a cross-site network in the specified project in the given scope using the parameters that are included in the request.

Parameters
Name Description
request InsertCrossSiteNetworkRequest

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(InsertCrossSiteNetworkRequest, CallOptions)

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

Creates a cross-site network in the specified project in the given scope using the parameters that are included in the request.

Parameters
Name Description
request InsertCrossSiteNetworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

InsertAsync(InsertCrossSiteNetworkRequest, Metadata, DateTime?, CancellationToken)

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

Creates a cross-site network in the specified project in the given scope using the parameters that are included in the request.

Parameters
Name Description
request InsertCrossSiteNetworkRequest

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(ListCrossSiteNetworksRequest, CallOptions)

public virtual CrossSiteNetworkList List(ListCrossSiteNetworksRequest request, CallOptions options)

Lists the cross-site networks for a project in the given scope.

Parameters
Name Description
request ListCrossSiteNetworksRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
CrossSiteNetworkList

The response received from the server.

List(ListCrossSiteNetworksRequest, Metadata, DateTime?, CancellationToken)

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

Lists the cross-site networks for a project in the given scope.

Parameters
Name Description
request ListCrossSiteNetworksRequest

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
CrossSiteNetworkList

The response received from the server.

ListAsync(ListCrossSiteNetworksRequest, CallOptions)

public virtual AsyncUnaryCall<CrossSiteNetworkList> ListAsync(ListCrossSiteNetworksRequest request, CallOptions options)

Lists the cross-site networks for a project in the given scope.

Parameters
Name Description
request ListCrossSiteNetworksRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallCrossSiteNetworkList

The call object.

ListAsync(ListCrossSiteNetworksRequest, Metadata, DateTime?, CancellationToken)

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

Lists the cross-site networks for a project in the given scope.

Parameters
Name Description
request ListCrossSiteNetworksRequest

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
AsyncUnaryCallCrossSiteNetworkList

The call object.

NewInstance(ClientBaseConfiguration)

protected override CrossSiteNetworks.CrossSiteNetworksClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
CrossSiteNetworksCrossSiteNetworksClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.CrossSiteNetworks.CrossSiteNetworksClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

Patch(PatchCrossSiteNetworkRequest, CallOptions)

public virtual Operation Patch(PatchCrossSiteNetworkRequest request, CallOptions options)

Updates the specified cross-site network with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.

Parameters
Name Description
request PatchCrossSiteNetworkRequest

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(PatchCrossSiteNetworkRequest, Metadata, DateTime?, CancellationToken)

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

Updates the specified cross-site network with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.

Parameters
Name Description
request PatchCrossSiteNetworkRequest

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(PatchCrossSiteNetworkRequest, CallOptions)

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

Updates the specified cross-site network with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.

Parameters
Name Description
request PatchCrossSiteNetworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

PatchAsync(PatchCrossSiteNetworkRequest, Metadata, DateTime?, CancellationToken)

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

Updates the specified cross-site network with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.

Parameters
Name Description
request PatchCrossSiteNetworkRequest

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.