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.ProvisioningClientNamespace
Google.Cloud.ApiHub.V1Assembly
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 |
CallInvokerThe callInvoker to use to make remote calls. |
ProvisioningClient(ChannelBase)
public ProvisioningClient(ChannelBase channel)Creates a new client for Provisioning
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe 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 |
ClientBaseClientBaseConfigurationThe 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 |
CreateApiHubInstanceRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
CreateApiHubInstanceRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
CreateApiHubInstanceRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
CreateApiHubInstanceRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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. |
DeleteApiHubInstance(DeleteApiHubInstanceRequest, CallOptions)
public virtual Operation DeleteApiHubInstance(DeleteApiHubInstanceRequest request, CallOptions options)Deletes the API hub instance. Deleting the API hub instance will also result in the removal of all associated runtime project attachments and the host project registration.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteApiHubInstanceRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Operation |
The response received from the server. |
DeleteApiHubInstance(DeleteApiHubInstanceRequest, Metadata, DateTime?, CancellationToken)
public virtual Operation DeleteApiHubInstance(DeleteApiHubInstanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Deletes the API hub instance. Deleting the API hub instance will also result in the removal of all associated runtime project attachments and the host project registration.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteApiHubInstanceRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Operation |
The response received from the server. |
DeleteApiHubInstanceAsync(DeleteApiHubInstanceRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> DeleteApiHubInstanceAsync(DeleteApiHubInstanceRequest request, CallOptions options)Deletes the API hub instance. Deleting the API hub instance will also result in the removal of all associated runtime project attachments and the host project registration.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteApiHubInstanceRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallOperation |
The call object. |
DeleteApiHubInstanceAsync(DeleteApiHubInstanceRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Operation> DeleteApiHubInstanceAsync(DeleteApiHubInstanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Deletes the API hub instance. Deleting the API hub instance will also result in the removal of all associated runtime project attachments and the host project registration.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteApiHubInstanceRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallOperation |
The call object. |
GetApiHubInstance(GetApiHubInstanceRequest, CallOptions)
public virtual ApiHubInstance GetApiHubInstance(GetApiHubInstanceRequest request, CallOptions options)Gets details of a single API Hub instance.
| Parameters | |
|---|---|
| Name | Description |
request |
GetApiHubInstanceRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
GetApiHubInstanceRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
GetApiHubInstanceRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
GetApiHubInstanceRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 Google Cloud project. There will always be only one Api Hub instance for a Google Cloud project across all locations.
| Parameters | |
|---|---|
| Name | Description |
request |
LookupApiHubInstanceRequestThe request to send to the server. |
options |
CallOptionsThe 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 Google Cloud project. There will always be only one Api Hub instance for a Google Cloud project across all locations.
| Parameters | |
|---|---|
| Name | Description |
request |
LookupApiHubInstanceRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 Google Cloud project. There will always be only one Api Hub instance for a Google Cloud project across all locations.
| Parameters | |
|---|---|
| Name | Description |
request |
LookupApiHubInstanceRequestThe request to send to the server. |
options |
CallOptionsThe 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 Google Cloud project. There will always be only one Api Hub instance for a Google Cloud project across all locations.
| Parameters | |
|---|---|
| Name | Description |
request |
LookupApiHubInstanceRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
|
UpdateApiHubInstance(UpdateApiHubInstanceRequest, CallOptions)
public virtual Operation UpdateApiHubInstance(UpdateApiHubInstanceRequest request, CallOptions options)Update an Api Hub instance. The following fields in the [ApiHubInstance][google.cloud.apihub.v1.ApiHubInstance] can be updated:
- [disable_search][ApiHubInstance.config.disable_search]
- [vertex_location][ApiHubInstance.config.vertex_location]
- [agent_registry_sync_config][ApiHubInstance.config.agent_registry_sync_config]
The [update_mask][google.cloud.apihub.v1.UpdateApiHubInstanceRequest.update_mask] should be used to specify the fields being updated.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateApiHubInstanceRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Operation |
The response received from the server. |
UpdateApiHubInstance(UpdateApiHubInstanceRequest, Metadata, DateTime?, CancellationToken)
public virtual Operation UpdateApiHubInstance(UpdateApiHubInstanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Update an Api Hub instance. The following fields in the [ApiHubInstance][google.cloud.apihub.v1.ApiHubInstance] can be updated:
- [disable_search][ApiHubInstance.config.disable_search]
- [vertex_location][ApiHubInstance.config.vertex_location]
- [agent_registry_sync_config][ApiHubInstance.config.agent_registry_sync_config]
The [update_mask][google.cloud.apihub.v1.UpdateApiHubInstanceRequest.update_mask] should be used to specify the fields being updated.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateApiHubInstanceRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Operation |
The response received from the server. |
UpdateApiHubInstanceAsync(UpdateApiHubInstanceRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> UpdateApiHubInstanceAsync(UpdateApiHubInstanceRequest request, CallOptions options)Update an Api Hub instance. The following fields in the [ApiHubInstance][google.cloud.apihub.v1.ApiHubInstance] can be updated:
- [disable_search][ApiHubInstance.config.disable_search]
- [vertex_location][ApiHubInstance.config.vertex_location]
- [agent_registry_sync_config][ApiHubInstance.config.agent_registry_sync_config]
The [update_mask][google.cloud.apihub.v1.UpdateApiHubInstanceRequest.update_mask] should be used to specify the fields being updated.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateApiHubInstanceRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallOperation |
The call object. |
UpdateApiHubInstanceAsync(UpdateApiHubInstanceRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Operation> UpdateApiHubInstanceAsync(UpdateApiHubInstanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Update an Api Hub instance. The following fields in the [ApiHubInstance][google.cloud.apihub.v1.ApiHubInstance] can be updated:
- [disable_search][ApiHubInstance.config.disable_search]
- [vertex_location][ApiHubInstance.config.vertex_location]
- [agent_registry_sync_config][ApiHubInstance.config.agent_registry_sync_config]
The [update_mask][google.cloud.apihub.v1.UpdateApiHubInstanceRequest.update_mask] should be used to specify the fields being updated.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateApiHubInstanceRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallOperation |
The call object. |