Class GlobalAddresses.GlobalAddressesClient (2.0.0)

public class GlobalAddressesClient : ClientBase<GlobalAddresses.GlobalAddressesClient>

Client for GlobalAddresses

Inheritance

Object > ClientBase > ClientBase<GlobalAddresses.GlobalAddressesClient> > GlobalAddresses.GlobalAddressesClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

GlobalAddressesClient()

protected GlobalAddressesClient()

Protected parameterless constructor to allow creation of test doubles.

GlobalAddressesClient(CallInvoker)

public GlobalAddressesClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

GlobalAddressesClient(ChannelBase)

public GlobalAddressesClient(ChannelBase channel)

Creates a new client for GlobalAddresses

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

GlobalAddressesClient(ClientBase.ClientBaseConfiguration)

protected GlobalAddressesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBase.ClientBaseConfiguration

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

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

Delete(DeleteGlobalAddressRequest, CallOptions)

public virtual Operation Delete(DeleteGlobalAddressRequest request, CallOptions options)

Deletes the specified address resource.

Parameters
Name Description
request DeleteGlobalAddressRequest

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

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

Deletes the specified address resource.

Parameters
Name Description
request DeleteGlobalAddressRequest

The request to send to the server.

headers Metadata

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

deadline Nullable<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(DeleteGlobalAddressRequest, CallOptions)

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

Deletes the specified address resource.

Parameters
Name Description
request DeleteGlobalAddressRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCall<Operation>

The call object.

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

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

Deletes the specified address resource.

Parameters
Name Description
request DeleteGlobalAddressRequest

The request to send to the server.

headers Metadata

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

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

The call object.

Get(GetGlobalAddressRequest, CallOptions)

public virtual Address Get(GetGlobalAddressRequest request, CallOptions options)

Returns the specified address resource. Gets a list of available addresses by making a list() request.

Parameters
Name Description
request GetGlobalAddressRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Address

The response received from the server.

Get(GetGlobalAddressRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Returns the specified address resource. Gets a list of available addresses by making a list() request.

Parameters
Name Description
request GetGlobalAddressRequest

The request to send to the server.

headers Metadata

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

deadline Nullable<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
Address

The response received from the server.

GetAsync(GetGlobalAddressRequest, CallOptions)

public virtual AsyncUnaryCall<Address> GetAsync(GetGlobalAddressRequest request, CallOptions options)

Returns the specified address resource. Gets a list of available addresses by making a list() request.

Parameters
Name Description
request GetGlobalAddressRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCall<Address>

The call object.

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

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

Returns the specified address resource. Gets a list of available addresses by making a list() request.

Parameters
Name Description
request GetGlobalAddressRequest

The request to send to the server.

headers Metadata

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

deadline Nullable<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
AsyncUnaryCall<Address>

The call object.

Insert(InsertGlobalAddressRequest, CallOptions)

public virtual Operation Insert(InsertGlobalAddressRequest request, CallOptions options)

Creates an address resource in the specified project by using the data included in the request.

Parameters
Name Description
request InsertGlobalAddressRequest

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

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

Creates an address resource in the specified project by using the data included in the request.

Parameters
Name Description
request InsertGlobalAddressRequest

The request to send to the server.

headers Metadata

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

deadline Nullable<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(InsertGlobalAddressRequest, CallOptions)

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

Creates an address resource in the specified project by using the data included in the request.

Parameters
Name Description
request InsertGlobalAddressRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCall<Operation>

The call object.

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

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

Creates an address resource in the specified project by using the data included in the request.

Parameters
Name Description
request InsertGlobalAddressRequest

The request to send to the server.

headers Metadata

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

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

The call object.

List(ListGlobalAddressesRequest, CallOptions)

public virtual AddressList List(ListGlobalAddressesRequest request, CallOptions options)

Retrieves a list of global addresses.

Parameters
Name Description
request ListGlobalAddressesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AddressList

The response received from the server.

List(ListGlobalAddressesRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Retrieves a list of global addresses.

Parameters
Name Description
request ListGlobalAddressesRequest

The request to send to the server.

headers Metadata

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

deadline Nullable<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
AddressList

The response received from the server.

ListAsync(ListGlobalAddressesRequest, CallOptions)

public virtual AsyncUnaryCall<AddressList> ListAsync(ListGlobalAddressesRequest request, CallOptions options)

Retrieves a list of global addresses.

Parameters
Name Description
request ListGlobalAddressesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCall<AddressList>

The call object.

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

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

Retrieves a list of global addresses.

Parameters
Name Description
request ListGlobalAddressesRequest

The request to send to the server.

headers Metadata

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

deadline Nullable<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
AsyncUnaryCall<AddressList>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override GlobalAddresses.GlobalAddressesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBase.ClientBaseConfiguration
Returns
Type Description
GlobalAddresses.GlobalAddressesClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.GlobalAddresses.GlobalAddressesClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)