API hub v1 API - Class Provisioning.ProvisioningClient (1.0.0-beta01)

public class Provisioning.ProvisioningClient : ClientBase<Provisioning.ProvisioningClient>

Reference documentation and code samples for the API hub v1 API class Provisioning.ProvisioningClient.

Client for Provisioning

Inheritance

object > ClientBase > ClientBaseProvisioningProvisioningClient > Provisioning.ProvisioningClient

Namespace

Google.Cloud.ApiHub.V1

Assembly

Google.Cloud.ApiHub.V1.dll

Constructors

ProvisioningClient()

protected ProvisioningClient()

Protected parameterless constructor to allow creation of test doubles.

ProvisioningClient(CallInvoker)

public ProvisioningClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

ProvisioningClient(ChannelBase)

public ProvisioningClient(ChannelBase channel)

Creates a new client for Provisioning

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

ProvisioningClient(ClientBaseConfiguration)

protected ProvisioningClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateApiHubInstance(CreateApiHubInstanceRequest, CallOptions)

public virtual Operation CreateApiHubInstance(CreateApiHubInstanceRequest request, CallOptions options)

Provisions instance resources for the API Hub.

Parameters
Name Description
request CreateApiHubInstanceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

CreateApiHubInstance(CreateApiHubInstanceRequest, Metadata, DateTime?, CancellationToken)

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

Provisions instance resources for the API Hub.

Parameters
Name Description
request CreateApiHubInstanceRequest

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.

CreateApiHubInstanceAsync(CreateApiHubInstanceRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> CreateApiHubInstanceAsync(CreateApiHubInstanceRequest request, CallOptions options)

Provisions instance resources for the API Hub.

Parameters
Name Description
request CreateApiHubInstanceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

CreateApiHubInstanceAsync(CreateApiHubInstanceRequest, Metadata, DateTime?, CancellationToken)

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

Provisions instance resources for the API Hub.

Parameters
Name Description
request CreateApiHubInstanceRequest

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.

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.

GetApiHubInstance(GetApiHubInstanceRequest, CallOptions)

public virtual ApiHubInstance GetApiHubInstance(GetApiHubInstanceRequest request, CallOptions options)

Gets details of a single API Hub instance.

Parameters
Name Description
request GetApiHubInstanceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ApiHubInstance

The response received from the server.

GetApiHubInstance(GetApiHubInstanceRequest, Metadata, DateTime?, CancellationToken)

public virtual ApiHubInstance GetApiHubInstance(GetApiHubInstanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets details of a single API Hub instance.

Parameters
Name Description
request GetApiHubInstanceRequest

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
ApiHubInstance

The response received from the server.

GetApiHubInstanceAsync(GetApiHubInstanceRequest, CallOptions)

public virtual AsyncUnaryCall<ApiHubInstance> GetApiHubInstanceAsync(GetApiHubInstanceRequest request, CallOptions options)

Gets details of a single API Hub instance.

Parameters
Name Description
request GetApiHubInstanceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallApiHubInstance

The call object.

GetApiHubInstanceAsync(GetApiHubInstanceRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ApiHubInstance> GetApiHubInstanceAsync(GetApiHubInstanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets details of a single API Hub instance.

Parameters
Name Description
request GetApiHubInstanceRequest

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
AsyncUnaryCallApiHubInstance

The call object.

LookupApiHubInstance(LookupApiHubInstanceRequest, CallOptions)

public virtual LookupApiHubInstanceResponse LookupApiHubInstance(LookupApiHubInstanceRequest request, CallOptions options)

Looks up an Api Hub instance in a given GCP project. There will always be only one Api Hub instance for a GCP project across all locations.

Parameters
Name Description
request LookupApiHubInstanceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
LookupApiHubInstanceResponse

The response received from the server.

LookupApiHubInstance(LookupApiHubInstanceRequest, Metadata, DateTime?, CancellationToken)

public virtual LookupApiHubInstanceResponse LookupApiHubInstance(LookupApiHubInstanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Looks up an Api Hub instance in a given GCP project. There will always be only one Api Hub instance for a GCP project across all locations.

Parameters
Name Description
request LookupApiHubInstanceRequest

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
LookupApiHubInstanceResponse

The response received from the server.

LookupApiHubInstanceAsync(LookupApiHubInstanceRequest, CallOptions)

public virtual AsyncUnaryCall<LookupApiHubInstanceResponse> LookupApiHubInstanceAsync(LookupApiHubInstanceRequest request, CallOptions options)

Looks up an Api Hub instance in a given GCP project. There will always be only one Api Hub instance for a GCP project across all locations.

Parameters
Name Description
request LookupApiHubInstanceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallLookupApiHubInstanceResponse

The call object.

LookupApiHubInstanceAsync(LookupApiHubInstanceRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<LookupApiHubInstanceResponse> LookupApiHubInstanceAsync(LookupApiHubInstanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Looks up an Api Hub instance in a given GCP project. There will always be only one Api Hub instance for a GCP project across all locations.

Parameters
Name Description
request LookupApiHubInstanceRequest

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
AsyncUnaryCallLookupApiHubInstanceResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override Provisioning.ProvisioningClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
ProvisioningProvisioningClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.ApiHub.V1.Provisioning.ProvisioningClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)