Class InterconnectLocations.InterconnectLocationsClient (1.3.0)

public class InterconnectLocationsClient : ClientBase<InterconnectLocations.InterconnectLocationsClient>

Client for InterconnectLocations

Inheritance

Object > ClientBase > ClientBase<InterconnectLocations.InterconnectLocationsClient> > InterconnectLocations.InterconnectLocationsClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

InterconnectLocationsClient()

protected InterconnectLocationsClient()

Protected parameterless constructor to allow creation of test doubles.

InterconnectLocationsClient(CallInvoker)

public InterconnectLocationsClient(CallInvoker callInvoker)

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

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

InterconnectLocationsClient(ChannelBase)

public InterconnectLocationsClient(ChannelBase channel)

Creates a new client for InterconnectLocations

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

InterconnectLocationsClient(ClientBase.ClientBaseConfiguration)

protected InterconnectLocationsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

Get(GetInterconnectLocationRequest, CallOptions)

public virtual InterconnectLocation Get(GetInterconnectLocationRequest request, CallOptions options)

Returns the details for the specified interconnect location. Gets a list of available interconnect locations by making a list() request.

Parameters
NameDescription
requestGetInterconnectLocationRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
InterconnectLocation

The response received from the server.

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

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

Returns the details for the specified interconnect location. Gets a list of available interconnect locations by making a list() request.

Parameters
NameDescription
requestGetInterconnectLocationRequest

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
InterconnectLocation

The response received from the server.

GetAsync(GetInterconnectLocationRequest, CallOptions)

public virtual AsyncUnaryCall<InterconnectLocation> GetAsync(GetInterconnectLocationRequest request, CallOptions options)

Returns the details for the specified interconnect location. Gets a list of available interconnect locations by making a list() request.

Parameters
NameDescription
requestGetInterconnectLocationRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<InterconnectLocation>

The call object.

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

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

Returns the details for the specified interconnect location. Gets a list of available interconnect locations by making a list() request.

Parameters
NameDescription
requestGetInterconnectLocationRequest

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<InterconnectLocation>

The call object.

List(ListInterconnectLocationsRequest, CallOptions)

public virtual InterconnectLocationList List(ListInterconnectLocationsRequest request, CallOptions options)

Retrieves the list of interconnect locations available to the specified project.

Parameters
NameDescription
requestListInterconnectLocationsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
InterconnectLocationList

The response received from the server.

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

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

Retrieves the list of interconnect locations available to the specified project.

Parameters
NameDescription
requestListInterconnectLocationsRequest

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
InterconnectLocationList

The response received from the server.

ListAsync(ListInterconnectLocationsRequest, CallOptions)

public virtual AsyncUnaryCall<InterconnectLocationList> ListAsync(ListInterconnectLocationsRequest request, CallOptions options)

Retrieves the list of interconnect locations available to the specified project.

Parameters
NameDescription
requestListInterconnectLocationsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<InterconnectLocationList>

The call object.

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

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

Retrieves the list of interconnect locations available to the specified project.

Parameters
NameDescription
requestListInterconnectLocationsRequest

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<InterconnectLocationList>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override InterconnectLocations.InterconnectLocationsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
InterconnectLocations.InterconnectLocationsClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.InterconnectLocations.InterconnectLocationsClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)