API hub v1 API - Class ApiHubAddon.ApiHubAddonClient (1.3.0)

public class ApiHubAddon.ApiHubAddonClient : ClientBase<ApiHubAddon.ApiHubAddonClient>

Reference documentation and code samples for the API hub v1 API class ApiHubAddon.ApiHubAddonClient.

Client for ApiHubAddon

Inheritance

object > ClientBase > ClientBaseApiHubAddonApiHubAddonClient > ApiHubAddon.ApiHubAddonClient

Namespace

Google.Cloud.ApiHub.V1

Assembly

Google.Cloud.ApiHub.V1.dll

Constructors

ApiHubAddonClient()

protected ApiHubAddonClient()

Protected parameterless constructor to allow creation of test doubles.

ApiHubAddonClient(CallInvoker)

public ApiHubAddonClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

ApiHubAddonClient(ChannelBase)

public ApiHubAddonClient(ChannelBase channel)

Creates a new client for ApiHubAddon

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

ApiHubAddonClient(ClientBaseConfiguration)

protected ApiHubAddonClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
Type Description
LocationsLocationsClient

A new Locations.LocationsClient for the same target as this client.

CreateOperationsClient()

public virtual Operations.OperationsClient CreateOperationsClient()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client.

Returns
Type Description
OperationsOperationsClient

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

GetAddon(GetAddonRequest, CallOptions)

public virtual Addon GetAddon(GetAddonRequest request, CallOptions options)

Get an addon.

Parameters
Name Description
request GetAddonRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Addon

The response received from the server.

GetAddon(GetAddonRequest, Metadata, DateTime?, CancellationToken)

public virtual Addon GetAddon(GetAddonRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Get an addon.

Parameters
Name Description
request GetAddonRequest

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
Addon

The response received from the server.

GetAddonAsync(GetAddonRequest, CallOptions)

public virtual AsyncUnaryCall<Addon> GetAddonAsync(GetAddonRequest request, CallOptions options)

Get an addon.

Parameters
Name Description
request GetAddonRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallAddon

The call object.

GetAddonAsync(GetAddonRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Addon> GetAddonAsync(GetAddonRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Get an addon.

Parameters
Name Description
request GetAddonRequest

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
AsyncUnaryCallAddon

The call object.

ListAddons(ListAddonsRequest, CallOptions)

public virtual ListAddonsResponse ListAddons(ListAddonsRequest request, CallOptions options)

List addons.

Parameters
Name Description
request ListAddonsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListAddonsResponse

The response received from the server.

ListAddons(ListAddonsRequest, Metadata, DateTime?, CancellationToken)

public virtual ListAddonsResponse ListAddons(ListAddonsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

List addons.

Parameters
Name Description
request ListAddonsRequest

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
ListAddonsResponse

The response received from the server.

ListAddonsAsync(ListAddonsRequest, CallOptions)

public virtual AsyncUnaryCall<ListAddonsResponse> ListAddonsAsync(ListAddonsRequest request, CallOptions options)

List addons.

Parameters
Name Description
request ListAddonsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListAddonsResponse

The call object.

ListAddonsAsync(ListAddonsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListAddonsResponse> ListAddonsAsync(ListAddonsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

List addons.

Parameters
Name Description
request ListAddonsRequest

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
AsyncUnaryCallListAddonsResponse

The call object.

ManageAddonConfig(ManageAddonConfigRequest, CallOptions)

public virtual Operation ManageAddonConfig(ManageAddonConfigRequest request, CallOptions options)

Manage addon config. This RPC is used for managing the config of the addon. Calling this RPC moves the addon into an updating state until the long-running operation succeeds.

Parameters
Name Description
request ManageAddonConfigRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

ManageAddonConfig(ManageAddonConfigRequest, Metadata, DateTime?, CancellationToken)

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

Manage addon config. This RPC is used for managing the config of the addon. Calling this RPC moves the addon into an updating state until the long-running operation succeeds.

Parameters
Name Description
request ManageAddonConfigRequest

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.

ManageAddonConfigAsync(ManageAddonConfigRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> ManageAddonConfigAsync(ManageAddonConfigRequest request, CallOptions options)

Manage addon config. This RPC is used for managing the config of the addon. Calling this RPC moves the addon into an updating state until the long-running operation succeeds.

Parameters
Name Description
request ManageAddonConfigRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

ManageAddonConfigAsync(ManageAddonConfigRequest, Metadata, DateTime?, CancellationToken)

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

Manage addon config. This RPC is used for managing the config of the addon. Calling this RPC moves the addon into an updating state until the long-running operation succeeds.

Parameters
Name Description
request ManageAddonConfigRequest

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.

NewInstance(ClientBaseConfiguration)

protected override ApiHubAddon.ApiHubAddonClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
ApiHubAddonApiHubAddonClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.ApiHub.V1.ApiHubAddon.ApiHubAddonClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)