Compute Engine v1 API - Class InterconnectLocations.InterconnectLocationsClient (3.2.0)

public class InterconnectLocations.InterconnectLocationsClient : ClientBase<InterconnectLocations.InterconnectLocationsClient>

Reference documentation and code samples for the Compute Engine v1 API class InterconnectLocations.InterconnectLocationsClient.

Client for InterconnectLocations

Inheritance

object > ClientBase > ClientBaseInterconnectLocationsInterconnectLocationsClient > 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
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

InterconnectLocationsClient(ChannelBase)

public InterconnectLocationsClient(ChannelBase channel)

Creates a new client for InterconnectLocations

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

InterconnectLocationsClient(ClientBaseConfiguration)

protected InterconnectLocationsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

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
Name Description
request GetInterconnectLocationRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
InterconnectLocation

The response received from the server.

Get(GetInterconnectLocationRequest, Metadata, DateTime?, CancellationToken)

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

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

Parameters
Name Description
request GetInterconnectLocationRequest

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
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
Name Description
request GetInterconnectLocationRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallInterconnectLocation

The call object.

GetAsync(GetInterconnectLocationRequest, Metadata, DateTime?, CancellationToken)

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

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

Parameters
Name Description
request GetInterconnectLocationRequest

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
AsyncUnaryCallInterconnectLocation

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
Name Description
request ListInterconnectLocationsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
InterconnectLocationList

The response received from the server.

List(ListInterconnectLocationsRequest, Metadata, DateTime?, CancellationToken)

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

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

Parameters
Name Description
request ListInterconnectLocationsRequest

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
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
Name Description
request ListInterconnectLocationsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallInterconnectLocationList

The call object.

ListAsync(ListInterconnectLocationsRequest, Metadata, DateTime?, CancellationToken)

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

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

Parameters
Name Description
request ListInterconnectLocationsRequest

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
AsyncUnaryCallInterconnectLocationList

The call object.

NewInstance(ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
InterconnectLocationsInterconnectLocationsClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.InterconnectLocations.InterconnectLocationsClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)