public abstract class ApiHubPluginClient
Reference documentation and code samples for the API hub v1 API class ApiHubPluginClient.
ApiHubPlugin client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.ApiHub.V1Assembly
Google.Cloud.ApiHub.V1.dll
Remarks
This service is used for managing plugins inside the API Hub.
Properties
CreatePluginInstanceOperationsClient
public virtual OperationsClient CreatePluginInstanceOperationsClient { get; }
The long-running operations client for CreatePluginInstance
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the ApiHubPlugin service, which is a host of "apihub.googleapis.com" and a port of 443.
Property Value | |
---|---|
Type | Description |
string |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default ApiHubPlugin scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyListstring |
The default ApiHubPlugin scopes are:
DeletePluginInstanceOperationsClient
public virtual OperationsClient DeletePluginInstanceOperationsClient { get; }
The long-running operations client for DeletePluginInstance
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeletePluginOperationsClient
public virtual OperationsClient DeletePluginOperationsClient { get; }
The long-running operations client for DeletePlugin
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DisablePluginInstanceActionOperationsClient
public virtual OperationsClient DisablePluginInstanceActionOperationsClient { get; }
The long-running operations client for DisablePluginInstanceAction
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
EnablePluginInstanceActionOperationsClient
public virtual OperationsClient EnablePluginInstanceActionOperationsClient { get; }
The long-running operations client for EnablePluginInstanceAction
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
ExecutePluginInstanceActionOperationsClient
public virtual OperationsClient ExecutePluginInstanceActionOperationsClient { get; }
The long-running operations client for ExecutePluginInstanceAction
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public virtual ApiHubPlugin.ApiHubPluginClient GrpcClient { get; }
The underlying gRPC ApiHubPlugin client
Property Value | |
---|---|
Type | Description |
ApiHubPluginApiHubPluginClient |
LocationsClient
public virtual LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
Methods
Create()
public static ApiHubPluginClient Create()
Synchronously creates a ApiHubPluginClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ApiHubPluginClientBuilder.
Returns | |
---|---|
Type | Description |
ApiHubPluginClient |
The created ApiHubPluginClient. |
CreateAsync(CancellationToken)
public static Task<ApiHubPluginClient> CreateAsync(CancellationToken cancellationToken = default)
Asynchronously creates a ApiHubPluginClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ApiHubPluginClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken |
CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
TaskApiHubPluginClient |
The task representing the created ApiHubPluginClient. |
CreatePlugin(LocationName, Plugin, string, CallSettings)
public virtual Plugin CreatePlugin(LocationName parent, Plugin plugin, string pluginId, CallSettings callSettings = null)
Create an API Hub plugin resource in the API hub. Once a plugin is created, it can be used to create plugin instances.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource where this plugin will be created.
Format: |
plugin |
Plugin Required. The plugin to create. |
pluginId |
string Optional. The ID to use for the Plugin resource, which will become the final component of the Plugin's resource name. This field is optional.
This value should be 4-63 characters, overall resource name which will be
of format
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Plugin |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Plugin plugin = new Plugin();
string pluginId = "";
// Make the request
Plugin response = apiHubPluginClient.CreatePlugin(parent, plugin, pluginId);
CreatePlugin(CreatePluginRequest, CallSettings)
public virtual Plugin CreatePlugin(CreatePluginRequest request, CallSettings callSettings = null)
Create an API Hub plugin resource in the API hub. Once a plugin is created, it can be used to create plugin instances.
Parameters | |
---|---|
Name | Description |
request |
CreatePluginRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Plugin |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
CreatePluginRequest request = new CreatePluginRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
PluginId = "",
Plugin = new Plugin(),
};
// Make the request
Plugin response = apiHubPluginClient.CreatePlugin(request);
CreatePlugin(string, Plugin, string, CallSettings)
public virtual Plugin CreatePlugin(string parent, Plugin plugin, string pluginId, CallSettings callSettings = null)
Create an API Hub plugin resource in the API hub. Once a plugin is created, it can be used to create plugin instances.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent resource where this plugin will be created.
Format: |
plugin |
Plugin Required. The plugin to create. |
pluginId |
string Optional. The ID to use for the Plugin resource, which will become the final component of the Plugin's resource name. This field is optional.
This value should be 4-63 characters, overall resource name which will be
of format
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Plugin |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Plugin plugin = new Plugin();
string pluginId = "";
// Make the request
Plugin response = apiHubPluginClient.CreatePlugin(parent, plugin, pluginId);
CreatePluginAsync(LocationName, Plugin, string, CallSettings)
public virtual Task<Plugin> CreatePluginAsync(LocationName parent, Plugin plugin, string pluginId, CallSettings callSettings = null)
Create an API Hub plugin resource in the API hub. Once a plugin is created, it can be used to create plugin instances.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource where this plugin will be created.
Format: |
plugin |
Plugin Required. The plugin to create. |
pluginId |
string Optional. The ID to use for the Plugin resource, which will become the final component of the Plugin's resource name. This field is optional.
This value should be 4-63 characters, overall resource name which will be
of format
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPlugin |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Plugin plugin = new Plugin();
string pluginId = "";
// Make the request
Plugin response = await apiHubPluginClient.CreatePluginAsync(parent, plugin, pluginId);
CreatePluginAsync(LocationName, Plugin, string, CancellationToken)
public virtual Task<Plugin> CreatePluginAsync(LocationName parent, Plugin plugin, string pluginId, CancellationToken cancellationToken)
Create an API Hub plugin resource in the API hub. Once a plugin is created, it can be used to create plugin instances.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource where this plugin will be created.
Format: |
plugin |
Plugin Required. The plugin to create. |
pluginId |
string Optional. The ID to use for the Plugin resource, which will become the final component of the Plugin's resource name. This field is optional.
This value should be 4-63 characters, overall resource name which will be
of format
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPlugin |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Plugin plugin = new Plugin();
string pluginId = "";
// Make the request
Plugin response = await apiHubPluginClient.CreatePluginAsync(parent, plugin, pluginId);
CreatePluginAsync(CreatePluginRequest, CallSettings)
public virtual Task<Plugin> CreatePluginAsync(CreatePluginRequest request, CallSettings callSettings = null)
Create an API Hub plugin resource in the API hub. Once a plugin is created, it can be used to create plugin instances.
Parameters | |
---|---|
Name | Description |
request |
CreatePluginRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPlugin |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
CreatePluginRequest request = new CreatePluginRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
PluginId = "",
Plugin = new Plugin(),
};
// Make the request
Plugin response = await apiHubPluginClient.CreatePluginAsync(request);
CreatePluginAsync(CreatePluginRequest, CancellationToken)
public virtual Task<Plugin> CreatePluginAsync(CreatePluginRequest request, CancellationToken cancellationToken)
Create an API Hub plugin resource in the API hub. Once a plugin is created, it can be used to create plugin instances.
Parameters | |
---|---|
Name | Description |
request |
CreatePluginRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPlugin |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
CreatePluginRequest request = new CreatePluginRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
PluginId = "",
Plugin = new Plugin(),
};
// Make the request
Plugin response = await apiHubPluginClient.CreatePluginAsync(request);
CreatePluginAsync(string, Plugin, string, CallSettings)
public virtual Task<Plugin> CreatePluginAsync(string parent, Plugin plugin, string pluginId, CallSettings callSettings = null)
Create an API Hub plugin resource in the API hub. Once a plugin is created, it can be used to create plugin instances.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent resource where this plugin will be created.
Format: |
plugin |
Plugin Required. The plugin to create. |
pluginId |
string Optional. The ID to use for the Plugin resource, which will become the final component of the Plugin's resource name. This field is optional.
This value should be 4-63 characters, overall resource name which will be
of format
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPlugin |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Plugin plugin = new Plugin();
string pluginId = "";
// Make the request
Plugin response = await apiHubPluginClient.CreatePluginAsync(parent, plugin, pluginId);
CreatePluginAsync(string, Plugin, string, CancellationToken)
public virtual Task<Plugin> CreatePluginAsync(string parent, Plugin plugin, string pluginId, CancellationToken cancellationToken)
Create an API Hub plugin resource in the API hub. Once a plugin is created, it can be used to create plugin instances.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent resource where this plugin will be created.
Format: |
plugin |
Plugin Required. The plugin to create. |
pluginId |
string Optional. The ID to use for the Plugin resource, which will become the final component of the Plugin's resource name. This field is optional.
This value should be 4-63 characters, overall resource name which will be
of format
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPlugin |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Plugin plugin = new Plugin();
string pluginId = "";
// Make the request
Plugin response = await apiHubPluginClient.CreatePluginAsync(parent, plugin, pluginId);
CreatePluginInstance(CreatePluginInstanceRequest, CallSettings)
public virtual Operation<PluginInstance, OperationMetadata> CreatePluginInstance(CreatePluginInstanceRequest request, CallSettings callSettings = null)
Creates a Plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
request |
CreatePluginInstanceRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPluginInstanceOperationMetadata |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
CreatePluginInstanceRequest request = new CreatePluginInstanceRequest
{
ParentAsPluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
PluginInstanceId = "",
PluginInstance = new PluginInstance(),
};
// Make the request
Operation<PluginInstance, OperationMetadata> response = apiHubPluginClient.CreatePluginInstance(request);
// Poll until the returned long-running operation is complete
Operation<PluginInstance, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PluginInstance result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<PluginInstance, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceCreatePluginInstance(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PluginInstance retrievedResult = retrievedResponse.Result;
}
CreatePluginInstance(PluginName, PluginInstance, string, CallSettings)
public virtual Operation<PluginInstance, OperationMetadata> CreatePluginInstance(PluginName parent, PluginInstance pluginInstance, string pluginInstanceId, CallSettings callSettings = null)
Creates a Plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
parent |
PluginName Required. The parent of the plugin instance resource.
Format: |
pluginInstance |
PluginInstance Required. The plugin instance to create. |
pluginInstanceId |
string Optional. The ID to use for the plugin instance, which will become the final component of the plugin instance's resource name. This field is optional.
This value should be 4-63 characters, and valid characters are /[a-z][A-Z][0-9]-_/. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPluginInstanceOperationMetadata |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
PluginName parent = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
PluginInstance pluginInstance = new PluginInstance();
string pluginInstanceId = "";
// Make the request
Operation<PluginInstance, OperationMetadata> response = apiHubPluginClient.CreatePluginInstance(parent, pluginInstance, pluginInstanceId);
// Poll until the returned long-running operation is complete
Operation<PluginInstance, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PluginInstance result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<PluginInstance, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceCreatePluginInstance(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PluginInstance retrievedResult = retrievedResponse.Result;
}
CreatePluginInstance(string, PluginInstance, string, CallSettings)
public virtual Operation<PluginInstance, OperationMetadata> CreatePluginInstance(string parent, PluginInstance pluginInstance, string pluginInstanceId, CallSettings callSettings = null)
Creates a Plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent of the plugin instance resource.
Format: |
pluginInstance |
PluginInstance Required. The plugin instance to create. |
pluginInstanceId |
string Optional. The ID to use for the plugin instance, which will become the final component of the plugin instance's resource name. This field is optional.
This value should be 4-63 characters, and valid characters are /[a-z][A-Z][0-9]-_/. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPluginInstanceOperationMetadata |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
PluginInstance pluginInstance = new PluginInstance();
string pluginInstanceId = "";
// Make the request
Operation<PluginInstance, OperationMetadata> response = apiHubPluginClient.CreatePluginInstance(parent, pluginInstance, pluginInstanceId);
// Poll until the returned long-running operation is complete
Operation<PluginInstance, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PluginInstance result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<PluginInstance, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceCreatePluginInstance(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PluginInstance retrievedResult = retrievedResponse.Result;
}
CreatePluginInstanceAsync(CreatePluginInstanceRequest, CallSettings)
public virtual Task<Operation<PluginInstance, OperationMetadata>> CreatePluginInstanceAsync(CreatePluginInstanceRequest request, CallSettings callSettings = null)
Creates a Plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
request |
CreatePluginInstanceRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPluginInstanceOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
CreatePluginInstanceRequest request = new CreatePluginInstanceRequest
{
ParentAsPluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
PluginInstanceId = "",
PluginInstance = new PluginInstance(),
};
// Make the request
Operation<PluginInstance, OperationMetadata> response = await apiHubPluginClient.CreatePluginInstanceAsync(request);
// Poll until the returned long-running operation is complete
Operation<PluginInstance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PluginInstance result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<PluginInstance, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceCreatePluginInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PluginInstance retrievedResult = retrievedResponse.Result;
}
CreatePluginInstanceAsync(CreatePluginInstanceRequest, CancellationToken)
public virtual Task<Operation<PluginInstance, OperationMetadata>> CreatePluginInstanceAsync(CreatePluginInstanceRequest request, CancellationToken cancellationToken)
Creates a Plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
request |
CreatePluginInstanceRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPluginInstanceOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
CreatePluginInstanceRequest request = new CreatePluginInstanceRequest
{
ParentAsPluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
PluginInstanceId = "",
PluginInstance = new PluginInstance(),
};
// Make the request
Operation<PluginInstance, OperationMetadata> response = await apiHubPluginClient.CreatePluginInstanceAsync(request);
// Poll until the returned long-running operation is complete
Operation<PluginInstance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PluginInstance result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<PluginInstance, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceCreatePluginInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PluginInstance retrievedResult = retrievedResponse.Result;
}
CreatePluginInstanceAsync(PluginName, PluginInstance, string, CallSettings)
public virtual Task<Operation<PluginInstance, OperationMetadata>> CreatePluginInstanceAsync(PluginName parent, PluginInstance pluginInstance, string pluginInstanceId, CallSettings callSettings = null)
Creates a Plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
parent |
PluginName Required. The parent of the plugin instance resource.
Format: |
pluginInstance |
PluginInstance Required. The plugin instance to create. |
pluginInstanceId |
string Optional. The ID to use for the plugin instance, which will become the final component of the plugin instance's resource name. This field is optional.
This value should be 4-63 characters, and valid characters are /[a-z][A-Z][0-9]-_/. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPluginInstanceOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
PluginName parent = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
PluginInstance pluginInstance = new PluginInstance();
string pluginInstanceId = "";
// Make the request
Operation<PluginInstance, OperationMetadata> response = await apiHubPluginClient.CreatePluginInstanceAsync(parent, pluginInstance, pluginInstanceId);
// Poll until the returned long-running operation is complete
Operation<PluginInstance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PluginInstance result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<PluginInstance, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceCreatePluginInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PluginInstance retrievedResult = retrievedResponse.Result;
}
CreatePluginInstanceAsync(PluginName, PluginInstance, string, CancellationToken)
public virtual Task<Operation<PluginInstance, OperationMetadata>> CreatePluginInstanceAsync(PluginName parent, PluginInstance pluginInstance, string pluginInstanceId, CancellationToken cancellationToken)
Creates a Plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
parent |
PluginName Required. The parent of the plugin instance resource.
Format: |
pluginInstance |
PluginInstance Required. The plugin instance to create. |
pluginInstanceId |
string Optional. The ID to use for the plugin instance, which will become the final component of the plugin instance's resource name. This field is optional.
This value should be 4-63 characters, and valid characters are /[a-z][A-Z][0-9]-_/. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPluginInstanceOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
PluginName parent = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
PluginInstance pluginInstance = new PluginInstance();
string pluginInstanceId = "";
// Make the request
Operation<PluginInstance, OperationMetadata> response = await apiHubPluginClient.CreatePluginInstanceAsync(parent, pluginInstance, pluginInstanceId);
// Poll until the returned long-running operation is complete
Operation<PluginInstance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PluginInstance result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<PluginInstance, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceCreatePluginInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PluginInstance retrievedResult = retrievedResponse.Result;
}
CreatePluginInstanceAsync(string, PluginInstance, string, CallSettings)
public virtual Task<Operation<PluginInstance, OperationMetadata>> CreatePluginInstanceAsync(string parent, PluginInstance pluginInstance, string pluginInstanceId, CallSettings callSettings = null)
Creates a Plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent of the plugin instance resource.
Format: |
pluginInstance |
PluginInstance Required. The plugin instance to create. |
pluginInstanceId |
string Optional. The ID to use for the plugin instance, which will become the final component of the plugin instance's resource name. This field is optional.
This value should be 4-63 characters, and valid characters are /[a-z][A-Z][0-9]-_/. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPluginInstanceOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
PluginInstance pluginInstance = new PluginInstance();
string pluginInstanceId = "";
// Make the request
Operation<PluginInstance, OperationMetadata> response = await apiHubPluginClient.CreatePluginInstanceAsync(parent, pluginInstance, pluginInstanceId);
// Poll until the returned long-running operation is complete
Operation<PluginInstance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PluginInstance result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<PluginInstance, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceCreatePluginInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PluginInstance retrievedResult = retrievedResponse.Result;
}
CreatePluginInstanceAsync(string, PluginInstance, string, CancellationToken)
public virtual Task<Operation<PluginInstance, OperationMetadata>> CreatePluginInstanceAsync(string parent, PluginInstance pluginInstance, string pluginInstanceId, CancellationToken cancellationToken)
Creates a Plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent of the plugin instance resource.
Format: |
pluginInstance |
PluginInstance Required. The plugin instance to create. |
pluginInstanceId |
string Optional. The ID to use for the plugin instance, which will become the final component of the plugin instance's resource name. This field is optional.
This value should be 4-63 characters, and valid characters are /[a-z][A-Z][0-9]-_/. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPluginInstanceOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
PluginInstance pluginInstance = new PluginInstance();
string pluginInstanceId = "";
// Make the request
Operation<PluginInstance, OperationMetadata> response = await apiHubPluginClient.CreatePluginInstanceAsync(parent, pluginInstance, pluginInstanceId);
// Poll until the returned long-running operation is complete
Operation<PluginInstance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PluginInstance result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<PluginInstance, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceCreatePluginInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PluginInstance retrievedResult = retrievedResponse.Result;
}
DeletePlugin(DeletePluginRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeletePlugin(DeletePluginRequest request, CallSettings callSettings = null)
Delete a Plugin in API hub. Note, only user owned plugins can be deleted via this method.
Parameters | |
---|---|
Name | Description |
request |
DeletePluginRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
DeletePluginRequest request = new DeletePluginRequest
{
PluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = apiHubPluginClient.DeletePlugin(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceDeletePlugin(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeletePlugin(PluginName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeletePlugin(PluginName name, CallSettings callSettings = null)
Delete a Plugin in API hub. Note, only user owned plugins can be deleted via this method.
Parameters | |
---|---|
Name | Description |
name |
PluginName Required. The name of the Plugin resource to delete.
Format: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
PluginName name = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
// Make the request
Operation<Empty, OperationMetadata> response = apiHubPluginClient.DeletePlugin(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceDeletePlugin(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeletePlugin(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeletePlugin(string name, CallSettings callSettings = null)
Delete a Plugin in API hub. Note, only user owned plugins can be deleted via this method.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the Plugin resource to delete.
Format: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
// Make the request
Operation<Empty, OperationMetadata> response = apiHubPluginClient.DeletePlugin(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceDeletePlugin(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeletePluginAsync(DeletePluginRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeletePluginAsync(DeletePluginRequest request, CallSettings callSettings = null)
Delete a Plugin in API hub. Note, only user owned plugins can be deleted via this method.
Parameters | |
---|---|
Name | Description |
request |
DeletePluginRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
DeletePluginRequest request = new DeletePluginRequest
{
PluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await apiHubPluginClient.DeletePluginAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDeletePluginAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeletePluginAsync(DeletePluginRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeletePluginAsync(DeletePluginRequest request, CancellationToken cancellationToken)
Delete a Plugin in API hub. Note, only user owned plugins can be deleted via this method.
Parameters | |
---|---|
Name | Description |
request |
DeletePluginRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
DeletePluginRequest request = new DeletePluginRequest
{
PluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await apiHubPluginClient.DeletePluginAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDeletePluginAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeletePluginAsync(PluginName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeletePluginAsync(PluginName name, CallSettings callSettings = null)
Delete a Plugin in API hub. Note, only user owned plugins can be deleted via this method.
Parameters | |
---|---|
Name | Description |
name |
PluginName Required. The name of the Plugin resource to delete.
Format: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
PluginName name = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
// Make the request
Operation<Empty, OperationMetadata> response = await apiHubPluginClient.DeletePluginAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDeletePluginAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeletePluginAsync(PluginName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeletePluginAsync(PluginName name, CancellationToken cancellationToken)
Delete a Plugin in API hub. Note, only user owned plugins can be deleted via this method.
Parameters | |
---|---|
Name | Description |
name |
PluginName Required. The name of the Plugin resource to delete.
Format: |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
PluginName name = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
// Make the request
Operation<Empty, OperationMetadata> response = await apiHubPluginClient.DeletePluginAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDeletePluginAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeletePluginAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeletePluginAsync(string name, CallSettings callSettings = null)
Delete a Plugin in API hub. Note, only user owned plugins can be deleted via this method.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the Plugin resource to delete.
Format: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
// Make the request
Operation<Empty, OperationMetadata> response = await apiHubPluginClient.DeletePluginAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDeletePluginAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeletePluginAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeletePluginAsync(string name, CancellationToken cancellationToken)
Delete a Plugin in API hub. Note, only user owned plugins can be deleted via this method.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the Plugin resource to delete.
Format: |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
// Make the request
Operation<Empty, OperationMetadata> response = await apiHubPluginClient.DeletePluginAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDeletePluginAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeletePluginInstance(DeletePluginInstanceRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeletePluginInstance(DeletePluginInstanceRequest request, CallSettings callSettings = null)
Deletes a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
request |
DeletePluginInstanceRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
DeletePluginInstanceRequest request = new DeletePluginInstanceRequest
{
PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = apiHubPluginClient.DeletePluginInstance(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceDeletePluginInstance(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeletePluginInstance(PluginInstanceName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeletePluginInstance(PluginInstanceName name, CallSettings callSettings = null)
Deletes a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
name |
PluginInstanceName Required. The name of the plugin instance to delete.
Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
// Make the request
Operation<Empty, OperationMetadata> response = apiHubPluginClient.DeletePluginInstance(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceDeletePluginInstance(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeletePluginInstance(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeletePluginInstance(string name, CallSettings callSettings = null)
Deletes a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the plugin instance to delete.
Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
// Make the request
Operation<Empty, OperationMetadata> response = apiHubPluginClient.DeletePluginInstance(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceDeletePluginInstance(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeletePluginInstanceAsync(DeletePluginInstanceRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeletePluginInstanceAsync(DeletePluginInstanceRequest request, CallSettings callSettings = null)
Deletes a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
request |
DeletePluginInstanceRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
DeletePluginInstanceRequest request = new DeletePluginInstanceRequest
{
PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await apiHubPluginClient.DeletePluginInstanceAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDeletePluginInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeletePluginInstanceAsync(DeletePluginInstanceRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeletePluginInstanceAsync(DeletePluginInstanceRequest request, CancellationToken cancellationToken)
Deletes a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
request |
DeletePluginInstanceRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
DeletePluginInstanceRequest request = new DeletePluginInstanceRequest
{
PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await apiHubPluginClient.DeletePluginInstanceAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDeletePluginInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeletePluginInstanceAsync(PluginInstanceName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeletePluginInstanceAsync(PluginInstanceName name, CallSettings callSettings = null)
Deletes a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
name |
PluginInstanceName Required. The name of the plugin instance to delete.
Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
// Make the request
Operation<Empty, OperationMetadata> response = await apiHubPluginClient.DeletePluginInstanceAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDeletePluginInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeletePluginInstanceAsync(PluginInstanceName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeletePluginInstanceAsync(PluginInstanceName name, CancellationToken cancellationToken)
Deletes a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
name |
PluginInstanceName Required. The name of the plugin instance to delete.
Format:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
// Make the request
Operation<Empty, OperationMetadata> response = await apiHubPluginClient.DeletePluginInstanceAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDeletePluginInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeletePluginInstanceAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeletePluginInstanceAsync(string name, CallSettings callSettings = null)
Deletes a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the plugin instance to delete.
Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
// Make the request
Operation<Empty, OperationMetadata> response = await apiHubPluginClient.DeletePluginInstanceAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDeletePluginInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeletePluginInstanceAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeletePluginInstanceAsync(string name, CancellationToken cancellationToken)
Deletes a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the plugin instance to delete.
Format:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
// Make the request
Operation<Empty, OperationMetadata> response = await apiHubPluginClient.DeletePluginInstanceAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDeletePluginInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DisablePlugin(DisablePluginRequest, CallSettings)
public virtual Plugin DisablePlugin(DisablePluginRequest request, CallSettings callSettings = null)
Disables a plugin.
The state
of the plugin after disabling is DISABLED
Parameters | |
---|---|
Name | Description |
request |
DisablePluginRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Plugin |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
DisablePluginRequest request = new DisablePluginRequest
{
PluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
};
// Make the request
Plugin response = apiHubPluginClient.DisablePlugin(request);
DisablePlugin(PluginName, CallSettings)
public virtual Plugin DisablePlugin(PluginName name, CallSettings callSettings = null)
Disables a plugin.
The state
of the plugin after disabling is DISABLED
Parameters | |
---|---|
Name | Description |
name |
PluginName Required. The name of the plugin to disable.
Format: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Plugin |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
PluginName name = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
// Make the request
Plugin response = apiHubPluginClient.DisablePlugin(name);
DisablePlugin(string, CallSettings)
public virtual Plugin DisablePlugin(string name, CallSettings callSettings = null)
Disables a plugin.
The state
of the plugin after disabling is DISABLED
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the plugin to disable.
Format: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Plugin |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
// Make the request
Plugin response = apiHubPluginClient.DisablePlugin(name);
DisablePluginAsync(DisablePluginRequest, CallSettings)
public virtual Task<Plugin> DisablePluginAsync(DisablePluginRequest request, CallSettings callSettings = null)
Disables a plugin.
The state
of the plugin after disabling is DISABLED
Parameters | |
---|---|
Name | Description |
request |
DisablePluginRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPlugin |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
DisablePluginRequest request = new DisablePluginRequest
{
PluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
};
// Make the request
Plugin response = await apiHubPluginClient.DisablePluginAsync(request);
DisablePluginAsync(DisablePluginRequest, CancellationToken)
public virtual Task<Plugin> DisablePluginAsync(DisablePluginRequest request, CancellationToken cancellationToken)
Disables a plugin.
The state
of the plugin after disabling is DISABLED
Parameters | |
---|---|
Name | Description |
request |
DisablePluginRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPlugin |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
DisablePluginRequest request = new DisablePluginRequest
{
PluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
};
// Make the request
Plugin response = await apiHubPluginClient.DisablePluginAsync(request);
DisablePluginAsync(PluginName, CallSettings)
public virtual Task<Plugin> DisablePluginAsync(PluginName name, CallSettings callSettings = null)
Disables a plugin.
The state
of the plugin after disabling is DISABLED
Parameters | |
---|---|
Name | Description |
name |
PluginName Required. The name of the plugin to disable.
Format: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPlugin |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
PluginName name = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
// Make the request
Plugin response = await apiHubPluginClient.DisablePluginAsync(name);
DisablePluginAsync(PluginName, CancellationToken)
public virtual Task<Plugin> DisablePluginAsync(PluginName name, CancellationToken cancellationToken)
Disables a plugin.
The state
of the plugin after disabling is DISABLED
Parameters | |
---|---|
Name | Description |
name |
PluginName Required. The name of the plugin to disable.
Format: |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPlugin |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
PluginName name = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
// Make the request
Plugin response = await apiHubPluginClient.DisablePluginAsync(name);
DisablePluginAsync(string, CallSettings)
public virtual Task<Plugin> DisablePluginAsync(string name, CallSettings callSettings = null)
Disables a plugin.
The state
of the plugin after disabling is DISABLED
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the plugin to disable.
Format: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPlugin |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
// Make the request
Plugin response = await apiHubPluginClient.DisablePluginAsync(name);
DisablePluginAsync(string, CancellationToken)
public virtual Task<Plugin> DisablePluginAsync(string name, CancellationToken cancellationToken)
Disables a plugin.
The state
of the plugin after disabling is DISABLED
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the plugin to disable.
Format: |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPlugin |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
// Make the request
Plugin response = await apiHubPluginClient.DisablePluginAsync(name);
DisablePluginInstanceAction(DisablePluginInstanceActionRequest, CallSettings)
public virtual Operation<DisablePluginInstanceActionResponse, OperationMetadata> DisablePluginInstanceAction(DisablePluginInstanceActionRequest request, CallSettings callSettings = null)
Disables a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
request |
DisablePluginInstanceActionRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationDisablePluginInstanceActionResponseOperationMetadata |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
DisablePluginInstanceActionRequest request = new DisablePluginInstanceActionRequest
{
PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
ActionId = "",
};
// Make the request
Operation<DisablePluginInstanceActionResponse, OperationMetadata> response = apiHubPluginClient.DisablePluginInstanceAction(request);
// Poll until the returned long-running operation is complete
Operation<DisablePluginInstanceActionResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
DisablePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DisablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceDisablePluginInstanceAction(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DisablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
DisablePluginInstanceAction(PluginInstanceName, string, CallSettings)
public virtual Operation<DisablePluginInstanceActionResponse, OperationMetadata> DisablePluginInstanceAction(PluginInstanceName name, string actionId, CallSettings callSettings = null)
Disables a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
name |
PluginInstanceName Required. The name of the plugin instance to disable.
Format:
|
actionId |
string Required. The action id to disable. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationDisablePluginInstanceActionResponseOperationMetadata |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
string actionId = "";
// Make the request
Operation<DisablePluginInstanceActionResponse, OperationMetadata> response = apiHubPluginClient.DisablePluginInstanceAction(name, actionId);
// Poll until the returned long-running operation is complete
Operation<DisablePluginInstanceActionResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
DisablePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DisablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceDisablePluginInstanceAction(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DisablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
DisablePluginInstanceAction(string, string, CallSettings)
public virtual Operation<DisablePluginInstanceActionResponse, OperationMetadata> DisablePluginInstanceAction(string name, string actionId, CallSettings callSettings = null)
Disables a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the plugin instance to disable.
Format:
|
actionId |
string Required. The action id to disable. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationDisablePluginInstanceActionResponseOperationMetadata |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
string actionId = "";
// Make the request
Operation<DisablePluginInstanceActionResponse, OperationMetadata> response = apiHubPluginClient.DisablePluginInstanceAction(name, actionId);
// Poll until the returned long-running operation is complete
Operation<DisablePluginInstanceActionResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
DisablePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DisablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceDisablePluginInstanceAction(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DisablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
DisablePluginInstanceActionAsync(DisablePluginInstanceActionRequest, CallSettings)
public virtual Task<Operation<DisablePluginInstanceActionResponse, OperationMetadata>> DisablePluginInstanceActionAsync(DisablePluginInstanceActionRequest request, CallSettings callSettings = null)
Disables a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
request |
DisablePluginInstanceActionRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationDisablePluginInstanceActionResponseOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
DisablePluginInstanceActionRequest request = new DisablePluginInstanceActionRequest
{
PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
ActionId = "",
};
// Make the request
Operation<DisablePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.DisablePluginInstanceActionAsync(request);
// Poll until the returned long-running operation is complete
Operation<DisablePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DisablePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DisablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDisablePluginInstanceActionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DisablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
DisablePluginInstanceActionAsync(DisablePluginInstanceActionRequest, CancellationToken)
public virtual Task<Operation<DisablePluginInstanceActionResponse, OperationMetadata>> DisablePluginInstanceActionAsync(DisablePluginInstanceActionRequest request, CancellationToken cancellationToken)
Disables a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
request |
DisablePluginInstanceActionRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationDisablePluginInstanceActionResponseOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
DisablePluginInstanceActionRequest request = new DisablePluginInstanceActionRequest
{
PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
ActionId = "",
};
// Make the request
Operation<DisablePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.DisablePluginInstanceActionAsync(request);
// Poll until the returned long-running operation is complete
Operation<DisablePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DisablePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DisablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDisablePluginInstanceActionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DisablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
DisablePluginInstanceActionAsync(PluginInstanceName, string, CallSettings)
public virtual Task<Operation<DisablePluginInstanceActionResponse, OperationMetadata>> DisablePluginInstanceActionAsync(PluginInstanceName name, string actionId, CallSettings callSettings = null)
Disables a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
name |
PluginInstanceName Required. The name of the plugin instance to disable.
Format:
|
actionId |
string Required. The action id to disable. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationDisablePluginInstanceActionResponseOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
string actionId = "";
// Make the request
Operation<DisablePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.DisablePluginInstanceActionAsync(name, actionId);
// Poll until the returned long-running operation is complete
Operation<DisablePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DisablePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DisablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDisablePluginInstanceActionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DisablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
DisablePluginInstanceActionAsync(PluginInstanceName, string, CancellationToken)
public virtual Task<Operation<DisablePluginInstanceActionResponse, OperationMetadata>> DisablePluginInstanceActionAsync(PluginInstanceName name, string actionId, CancellationToken cancellationToken)
Disables a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
name |
PluginInstanceName Required. The name of the plugin instance to disable.
Format:
|
actionId |
string Required. The action id to disable. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationDisablePluginInstanceActionResponseOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
string actionId = "";
// Make the request
Operation<DisablePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.DisablePluginInstanceActionAsync(name, actionId);
// Poll until the returned long-running operation is complete
Operation<DisablePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DisablePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DisablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDisablePluginInstanceActionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DisablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
DisablePluginInstanceActionAsync(string, string, CallSettings)
public virtual Task<Operation<DisablePluginInstanceActionResponse, OperationMetadata>> DisablePluginInstanceActionAsync(string name, string actionId, CallSettings callSettings = null)
Disables a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the plugin instance to disable.
Format:
|
actionId |
string Required. The action id to disable. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationDisablePluginInstanceActionResponseOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
string actionId = "";
// Make the request
Operation<DisablePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.DisablePluginInstanceActionAsync(name, actionId);
// Poll until the returned long-running operation is complete
Operation<DisablePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DisablePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DisablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDisablePluginInstanceActionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DisablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
DisablePluginInstanceActionAsync(string, string, CancellationToken)
public virtual Task<Operation<DisablePluginInstanceActionResponse, OperationMetadata>> DisablePluginInstanceActionAsync(string name, string actionId, CancellationToken cancellationToken)
Disables a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the plugin instance to disable.
Format:
|
actionId |
string Required. The action id to disable. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationDisablePluginInstanceActionResponseOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
string actionId = "";
// Make the request
Operation<DisablePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.DisablePluginInstanceActionAsync(name, actionId);
// Poll until the returned long-running operation is complete
Operation<DisablePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DisablePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DisablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDisablePluginInstanceActionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DisablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
EnablePlugin(EnablePluginRequest, CallSettings)
public virtual Plugin EnablePlugin(EnablePluginRequest request, CallSettings callSettings = null)
Enables a plugin.
The state
of the plugin after enabling is ENABLED
Parameters | |
---|---|
Name | Description |
request |
EnablePluginRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Plugin |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
EnablePluginRequest request = new EnablePluginRequest
{
PluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
};
// Make the request
Plugin response = apiHubPluginClient.EnablePlugin(request);
EnablePlugin(PluginName, CallSettings)
public virtual Plugin EnablePlugin(PluginName name, CallSettings callSettings = null)
Enables a plugin.
The state
of the plugin after enabling is ENABLED
Parameters | |
---|---|
Name | Description |
name |
PluginName Required. The name of the plugin to enable.
Format: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Plugin |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
PluginName name = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
// Make the request
Plugin response = apiHubPluginClient.EnablePlugin(name);
EnablePlugin(string, CallSettings)
public virtual Plugin EnablePlugin(string name, CallSettings callSettings = null)
Enables a plugin.
The state
of the plugin after enabling is ENABLED
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the plugin to enable.
Format: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Plugin |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
// Make the request
Plugin response = apiHubPluginClient.EnablePlugin(name);
EnablePluginAsync(EnablePluginRequest, CallSettings)
public virtual Task<Plugin> EnablePluginAsync(EnablePluginRequest request, CallSettings callSettings = null)
Enables a plugin.
The state
of the plugin after enabling is ENABLED
Parameters | |
---|---|
Name | Description |
request |
EnablePluginRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPlugin |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
EnablePluginRequest request = new EnablePluginRequest
{
PluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
};
// Make the request
Plugin response = await apiHubPluginClient.EnablePluginAsync(request);
EnablePluginAsync(EnablePluginRequest, CancellationToken)
public virtual Task<Plugin> EnablePluginAsync(EnablePluginRequest request, CancellationToken cancellationToken)
Enables a plugin.
The state
of the plugin after enabling is ENABLED
Parameters | |
---|---|
Name | Description |
request |
EnablePluginRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPlugin |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
EnablePluginRequest request = new EnablePluginRequest
{
PluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
};
// Make the request
Plugin response = await apiHubPluginClient.EnablePluginAsync(request);
EnablePluginAsync(PluginName, CallSettings)
public virtual Task<Plugin> EnablePluginAsync(PluginName name, CallSettings callSettings = null)
Enables a plugin.
The state
of the plugin after enabling is ENABLED
Parameters | |
---|---|
Name | Description |
name |
PluginName Required. The name of the plugin to enable.
Format: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPlugin |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
PluginName name = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
// Make the request
Plugin response = await apiHubPluginClient.EnablePluginAsync(name);
EnablePluginAsync(PluginName, CancellationToken)
public virtual Task<Plugin> EnablePluginAsync(PluginName name, CancellationToken cancellationToken)
Enables a plugin.
The state
of the plugin after enabling is ENABLED
Parameters | |
---|---|
Name | Description |
name |
PluginName Required. The name of the plugin to enable.
Format: |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPlugin |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
PluginName name = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
// Make the request
Plugin response = await apiHubPluginClient.EnablePluginAsync(name);
EnablePluginAsync(string, CallSettings)
public virtual Task<Plugin> EnablePluginAsync(string name, CallSettings callSettings = null)
Enables a plugin.
The state
of the plugin after enabling is ENABLED
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the plugin to enable.
Format: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPlugin |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
// Make the request
Plugin response = await apiHubPluginClient.EnablePluginAsync(name);
EnablePluginAsync(string, CancellationToken)
public virtual Task<Plugin> EnablePluginAsync(string name, CancellationToken cancellationToken)
Enables a plugin.
The state
of the plugin after enabling is ENABLED
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the plugin to enable.
Format: |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPlugin |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
// Make the request
Plugin response = await apiHubPluginClient.EnablePluginAsync(name);
EnablePluginInstanceAction(EnablePluginInstanceActionRequest, CallSettings)
public virtual Operation<EnablePluginInstanceActionResponse, OperationMetadata> EnablePluginInstanceAction(EnablePluginInstanceActionRequest request, CallSettings callSettings = null)
Enables a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
request |
EnablePluginInstanceActionRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEnablePluginInstanceActionResponseOperationMetadata |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
EnablePluginInstanceActionRequest request = new EnablePluginInstanceActionRequest
{
PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
ActionId = "",
};
// Make the request
Operation<EnablePluginInstanceActionResponse, OperationMetadata> response = apiHubPluginClient.EnablePluginInstanceAction(request);
// Poll until the returned long-running operation is complete
Operation<EnablePluginInstanceActionResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
EnablePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EnablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceEnablePluginInstanceAction(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
EnablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
EnablePluginInstanceAction(PluginInstanceName, string, CallSettings)
public virtual Operation<EnablePluginInstanceActionResponse, OperationMetadata> EnablePluginInstanceAction(PluginInstanceName name, string actionId, CallSettings callSettings = null)
Enables a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
name |
PluginInstanceName Required. The name of the plugin instance to enable.
Format:
|
actionId |
string Required. The action id to enable. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEnablePluginInstanceActionResponseOperationMetadata |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
string actionId = "";
// Make the request
Operation<EnablePluginInstanceActionResponse, OperationMetadata> response = apiHubPluginClient.EnablePluginInstanceAction(name, actionId);
// Poll until the returned long-running operation is complete
Operation<EnablePluginInstanceActionResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
EnablePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EnablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceEnablePluginInstanceAction(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
EnablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
EnablePluginInstanceAction(string, string, CallSettings)
public virtual Operation<EnablePluginInstanceActionResponse, OperationMetadata> EnablePluginInstanceAction(string name, string actionId, CallSettings callSettings = null)
Enables a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the plugin instance to enable.
Format:
|
actionId |
string Required. The action id to enable. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEnablePluginInstanceActionResponseOperationMetadata |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
string actionId = "";
// Make the request
Operation<EnablePluginInstanceActionResponse, OperationMetadata> response = apiHubPluginClient.EnablePluginInstanceAction(name, actionId);
// Poll until the returned long-running operation is complete
Operation<EnablePluginInstanceActionResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
EnablePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EnablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceEnablePluginInstanceAction(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
EnablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
EnablePluginInstanceActionAsync(EnablePluginInstanceActionRequest, CallSettings)
public virtual Task<Operation<EnablePluginInstanceActionResponse, OperationMetadata>> EnablePluginInstanceActionAsync(EnablePluginInstanceActionRequest request, CallSettings callSettings = null)
Enables a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
request |
EnablePluginInstanceActionRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEnablePluginInstanceActionResponseOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
EnablePluginInstanceActionRequest request = new EnablePluginInstanceActionRequest
{
PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
ActionId = "",
};
// Make the request
Operation<EnablePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.EnablePluginInstanceActionAsync(request);
// Poll until the returned long-running operation is complete
Operation<EnablePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
EnablePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EnablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceEnablePluginInstanceActionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
EnablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
EnablePluginInstanceActionAsync(EnablePluginInstanceActionRequest, CancellationToken)
public virtual Task<Operation<EnablePluginInstanceActionResponse, OperationMetadata>> EnablePluginInstanceActionAsync(EnablePluginInstanceActionRequest request, CancellationToken cancellationToken)
Enables a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
request |
EnablePluginInstanceActionRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEnablePluginInstanceActionResponseOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
EnablePluginInstanceActionRequest request = new EnablePluginInstanceActionRequest
{
PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
ActionId = "",
};
// Make the request
Operation<EnablePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.EnablePluginInstanceActionAsync(request);
// Poll until the returned long-running operation is complete
Operation<EnablePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
EnablePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EnablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceEnablePluginInstanceActionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
EnablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
EnablePluginInstanceActionAsync(PluginInstanceName, string, CallSettings)
public virtual Task<Operation<EnablePluginInstanceActionResponse, OperationMetadata>> EnablePluginInstanceActionAsync(PluginInstanceName name, string actionId, CallSettings callSettings = null)
Enables a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
name |
PluginInstanceName Required. The name of the plugin instance to enable.
Format:
|
actionId |
string Required. The action id to enable. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEnablePluginInstanceActionResponseOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
string actionId = "";
// Make the request
Operation<EnablePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.EnablePluginInstanceActionAsync(name, actionId);
// Poll until the returned long-running operation is complete
Operation<EnablePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
EnablePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EnablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceEnablePluginInstanceActionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
EnablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
EnablePluginInstanceActionAsync(PluginInstanceName, string, CancellationToken)
public virtual Task<Operation<EnablePluginInstanceActionResponse, OperationMetadata>> EnablePluginInstanceActionAsync(PluginInstanceName name, string actionId, CancellationToken cancellationToken)
Enables a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
name |
PluginInstanceName Required. The name of the plugin instance to enable.
Format:
|
actionId |
string Required. The action id to enable. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEnablePluginInstanceActionResponseOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
string actionId = "";
// Make the request
Operation<EnablePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.EnablePluginInstanceActionAsync(name, actionId);
// Poll until the returned long-running operation is complete
Operation<EnablePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
EnablePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EnablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceEnablePluginInstanceActionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
EnablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
EnablePluginInstanceActionAsync(string, string, CallSettings)
public virtual Task<Operation<EnablePluginInstanceActionResponse, OperationMetadata>> EnablePluginInstanceActionAsync(string name, string actionId, CallSettings callSettings = null)
Enables a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the plugin instance to enable.
Format:
|
actionId |
string Required. The action id to enable. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEnablePluginInstanceActionResponseOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
string actionId = "";
// Make the request
Operation<EnablePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.EnablePluginInstanceActionAsync(name, actionId);
// Poll until the returned long-running operation is complete
Operation<EnablePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
EnablePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EnablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceEnablePluginInstanceActionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
EnablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
EnablePluginInstanceActionAsync(string, string, CancellationToken)
public virtual Task<Operation<EnablePluginInstanceActionResponse, OperationMetadata>> EnablePluginInstanceActionAsync(string name, string actionId, CancellationToken cancellationToken)
Enables a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the plugin instance to enable.
Format:
|
actionId |
string Required. The action id to enable. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEnablePluginInstanceActionResponseOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
string actionId = "";
// Make the request
Operation<EnablePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.EnablePluginInstanceActionAsync(name, actionId);
// Poll until the returned long-running operation is complete
Operation<EnablePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
EnablePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EnablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceEnablePluginInstanceActionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
EnablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
ExecutePluginInstanceAction(ExecutePluginInstanceActionRequest, CallSettings)
public virtual Operation<ExecutePluginInstanceActionResponse, OperationMetadata> ExecutePluginInstanceAction(ExecutePluginInstanceActionRequest request, CallSettings callSettings = null)
Executes a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
request |
ExecutePluginInstanceActionRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationExecutePluginInstanceActionResponseOperationMetadata |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
ExecutePluginInstanceActionRequest request = new ExecutePluginInstanceActionRequest
{
PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
ActionExecutionDetail = new ActionExecutionDetail(),
};
// Make the request
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> response = apiHubPluginClient.ExecutePluginInstanceAction(request);
// Poll until the returned long-running operation is complete
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ExecutePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceExecutePluginInstanceAction(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ExecutePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
ExecutePluginInstanceAction(PluginInstanceName, ActionExecutionDetail, CallSettings)
public virtual Operation<ExecutePluginInstanceActionResponse, OperationMetadata> ExecutePluginInstanceAction(PluginInstanceName name, ActionExecutionDetail actionExecutionDetail, CallSettings callSettings = null)
Executes a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
name |
PluginInstanceName Required. The name of the plugin instance to execute.
Format:
|
actionExecutionDetail |
ActionExecutionDetail Required. The execution details for the action to execute. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationExecutePluginInstanceActionResponseOperationMetadata |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
ActionExecutionDetail actionExecutionDetail = new ActionExecutionDetail();
// Make the request
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> response = apiHubPluginClient.ExecutePluginInstanceAction(name, actionExecutionDetail);
// Poll until the returned long-running operation is complete
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ExecutePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceExecutePluginInstanceAction(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ExecutePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
ExecutePluginInstanceAction(string, ActionExecutionDetail, CallSettings)
public virtual Operation<ExecutePluginInstanceActionResponse, OperationMetadata> ExecutePluginInstanceAction(string name, ActionExecutionDetail actionExecutionDetail, CallSettings callSettings = null)
Executes a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the plugin instance to execute.
Format:
|
actionExecutionDetail |
ActionExecutionDetail Required. The execution details for the action to execute. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationExecutePluginInstanceActionResponseOperationMetadata |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
ActionExecutionDetail actionExecutionDetail = new ActionExecutionDetail();
// Make the request
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> response = apiHubPluginClient.ExecutePluginInstanceAction(name, actionExecutionDetail);
// Poll until the returned long-running operation is complete
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ExecutePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceExecutePluginInstanceAction(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ExecutePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
ExecutePluginInstanceActionAsync(ExecutePluginInstanceActionRequest, CallSettings)
public virtual Task<Operation<ExecutePluginInstanceActionResponse, OperationMetadata>> ExecutePluginInstanceActionAsync(ExecutePluginInstanceActionRequest request, CallSettings callSettings = null)
Executes a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
request |
ExecutePluginInstanceActionRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationExecutePluginInstanceActionResponseOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
ExecutePluginInstanceActionRequest request = new ExecutePluginInstanceActionRequest
{
PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
ActionExecutionDetail = new ActionExecutionDetail(),
};
// Make the request
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.ExecutePluginInstanceActionAsync(request);
// Poll until the returned long-running operation is complete
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ExecutePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceExecutePluginInstanceActionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ExecutePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
ExecutePluginInstanceActionAsync(ExecutePluginInstanceActionRequest, CancellationToken)
public virtual Task<Operation<ExecutePluginInstanceActionResponse, OperationMetadata>> ExecutePluginInstanceActionAsync(ExecutePluginInstanceActionRequest request, CancellationToken cancellationToken)
Executes a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
request |
ExecutePluginInstanceActionRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationExecutePluginInstanceActionResponseOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
ExecutePluginInstanceActionRequest request = new ExecutePluginInstanceActionRequest
{
PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
ActionExecutionDetail = new ActionExecutionDetail(),
};
// Make the request
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.ExecutePluginInstanceActionAsync(request);
// Poll until the returned long-running operation is complete
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ExecutePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceExecutePluginInstanceActionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ExecutePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
ExecutePluginInstanceActionAsync(PluginInstanceName, ActionExecutionDetail, CallSettings)
public virtual Task<Operation<ExecutePluginInstanceActionResponse, OperationMetadata>> ExecutePluginInstanceActionAsync(PluginInstanceName name, ActionExecutionDetail actionExecutionDetail, CallSettings callSettings = null)
Executes a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
name |
PluginInstanceName Required. The name of the plugin instance to execute.
Format:
|
actionExecutionDetail |
ActionExecutionDetail Required. The execution details for the action to execute. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationExecutePluginInstanceActionResponseOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
ActionExecutionDetail actionExecutionDetail = new ActionExecutionDetail();
// Make the request
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.ExecutePluginInstanceActionAsync(name, actionExecutionDetail);
// Poll until the returned long-running operation is complete
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ExecutePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceExecutePluginInstanceActionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ExecutePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
ExecutePluginInstanceActionAsync(PluginInstanceName, ActionExecutionDetail, CancellationToken)
public virtual Task<Operation<ExecutePluginInstanceActionResponse, OperationMetadata>> ExecutePluginInstanceActionAsync(PluginInstanceName name, ActionExecutionDetail actionExecutionDetail, CancellationToken cancellationToken)
Executes a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
name |
PluginInstanceName Required. The name of the plugin instance to execute.
Format:
|
actionExecutionDetail |
ActionExecutionDetail Required. The execution details for the action to execute. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationExecutePluginInstanceActionResponseOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
ActionExecutionDetail actionExecutionDetail = new ActionExecutionDetail();
// Make the request
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.ExecutePluginInstanceActionAsync(name, actionExecutionDetail);
// Poll until the returned long-running operation is complete
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ExecutePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceExecutePluginInstanceActionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ExecutePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
ExecutePluginInstanceActionAsync(string, ActionExecutionDetail, CallSettings)
public virtual Task<Operation<ExecutePluginInstanceActionResponse, OperationMetadata>> ExecutePluginInstanceActionAsync(string name, ActionExecutionDetail actionExecutionDetail, CallSettings callSettings = null)
Executes a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the plugin instance to execute.
Format:
|
actionExecutionDetail |
ActionExecutionDetail Required. The execution details for the action to execute. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationExecutePluginInstanceActionResponseOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
ActionExecutionDetail actionExecutionDetail = new ActionExecutionDetail();
// Make the request
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.ExecutePluginInstanceActionAsync(name, actionExecutionDetail);
// Poll until the returned long-running operation is complete
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ExecutePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceExecutePluginInstanceActionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ExecutePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
ExecutePluginInstanceActionAsync(string, ActionExecutionDetail, CancellationToken)
public virtual Task<Operation<ExecutePluginInstanceActionResponse, OperationMetadata>> ExecutePluginInstanceActionAsync(string name, ActionExecutionDetail actionExecutionDetail, CancellationToken cancellationToken)
Executes a plugin instance in the API hub.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the plugin instance to execute.
Format:
|
actionExecutionDetail |
ActionExecutionDetail Required. The execution details for the action to execute. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationExecutePluginInstanceActionResponseOperationMetadata |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
ActionExecutionDetail actionExecutionDetail = new ActionExecutionDetail();
// Make the request
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.ExecutePluginInstanceActionAsync(name, actionExecutionDetail);
// Poll until the returned long-running operation is complete
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ExecutePluginInstanceActionResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ExecutePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceExecutePluginInstanceActionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ExecutePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
}
GetPlugin(GetPluginRequest, CallSettings)
public virtual Plugin GetPlugin(GetPluginRequest request, CallSettings callSettings = null)
Get an API Hub plugin.
Parameters | |
---|---|
Name | Description |
request |
GetPluginRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Plugin |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
GetPluginRequest request = new GetPluginRequest
{
PluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
};
// Make the request
Plugin response = apiHubPluginClient.GetPlugin(request);
GetPlugin(PluginName, CallSettings)
public virtual Plugin GetPlugin(PluginName name, CallSettings callSettings = null)
Get an API Hub plugin.
Parameters | |
---|---|
Name | Description |
name |
PluginName Required. The name of the plugin to retrieve.
Format: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Plugin |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
PluginName name = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
// Make the request
Plugin response = apiHubPluginClient.GetPlugin(name);
GetPlugin(string, CallSettings)
public virtual Plugin GetPlugin(string name, CallSettings callSettings = null)
Get an API Hub plugin.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the plugin to retrieve.
Format: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Plugin |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
// Make the request
Plugin response = apiHubPluginClient.GetPlugin(name);
GetPluginAsync(GetPluginRequest, CallSettings)
public virtual Task<Plugin> GetPluginAsync(GetPluginRequest request, CallSettings callSettings = null)
Get an API Hub plugin.
Parameters | |
---|---|
Name | Description |
request |
GetPluginRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPlugin |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
GetPluginRequest request = new GetPluginRequest
{
PluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
};
// Make the request
Plugin response = await apiHubPluginClient.GetPluginAsync(request);
GetPluginAsync(GetPluginRequest, CancellationToken)
public virtual Task<Plugin> GetPluginAsync(GetPluginRequest request, CancellationToken cancellationToken)
Get an API Hub plugin.
Parameters | |
---|---|
Name | Description |
request |
GetPluginRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPlugin |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
GetPluginRequest request = new GetPluginRequest
{
PluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
};
// Make the request
Plugin response = await apiHubPluginClient.GetPluginAsync(request);
GetPluginAsync(PluginName, CallSettings)
public virtual Task<Plugin> GetPluginAsync(PluginName name, CallSettings callSettings = null)
Get an API Hub plugin.
Parameters | |
---|---|
Name | Description |
name |
PluginName Required. The name of the plugin to retrieve.
Format: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPlugin |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
PluginName name = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
// Make the request
Plugin response = await apiHubPluginClient.GetPluginAsync(name);
GetPluginAsync(PluginName, CancellationToken)
public virtual Task<Plugin> GetPluginAsync(PluginName name, CancellationToken cancellationToken)
Get an API Hub plugin.
Parameters | |
---|---|
Name | Description |
name |
PluginName Required. The name of the plugin to retrieve.
Format: |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPlugin |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
PluginName name = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
// Make the request
Plugin response = await apiHubPluginClient.GetPluginAsync(name);
GetPluginAsync(string, CallSettings)
public virtual Task<Plugin> GetPluginAsync(string name, CallSettings callSettings = null)
Get an API Hub plugin.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the plugin to retrieve.
Format: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPlugin |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
// Make the request
Plugin response = await apiHubPluginClient.GetPluginAsync(name);
GetPluginAsync(string, CancellationToken)
public virtual Task<Plugin> GetPluginAsync(string name, CancellationToken cancellationToken)
Get an API Hub plugin.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the plugin to retrieve.
Format: |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPlugin |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
// Make the request
Plugin response = await apiHubPluginClient.GetPluginAsync(name);
GetPluginInstance(GetPluginInstanceRequest, CallSettings)
public virtual PluginInstance GetPluginInstance(GetPluginInstanceRequest request, CallSettings callSettings = null)
Get an API Hub plugin instance.
Parameters | |
---|---|
Name | Description |
request |
GetPluginInstanceRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PluginInstance |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
GetPluginInstanceRequest request = new GetPluginInstanceRequest
{
PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
};
// Make the request
PluginInstance response = apiHubPluginClient.GetPluginInstance(request);
GetPluginInstance(PluginInstanceName, CallSettings)
public virtual PluginInstance GetPluginInstance(PluginInstanceName name, CallSettings callSettings = null)
Get an API Hub plugin instance.
Parameters | |
---|---|
Name | Description |
name |
PluginInstanceName Required. The name of the plugin instance to retrieve.
Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PluginInstance |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
// Make the request
PluginInstance response = apiHubPluginClient.GetPluginInstance(name);
GetPluginInstance(string, CallSettings)
public virtual PluginInstance GetPluginInstance(string name, CallSettings callSettings = null)
Get an API Hub plugin instance.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the plugin instance to retrieve.
Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PluginInstance |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
// Make the request
PluginInstance response = apiHubPluginClient.GetPluginInstance(name);
GetPluginInstanceAsync(GetPluginInstanceRequest, CallSettings)
public virtual Task<PluginInstance> GetPluginInstanceAsync(GetPluginInstanceRequest request, CallSettings callSettings = null)
Get an API Hub plugin instance.
Parameters | |
---|---|
Name | Description |
request |
GetPluginInstanceRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPluginInstance |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
GetPluginInstanceRequest request = new GetPluginInstanceRequest
{
PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
};
// Make the request
PluginInstance response = await apiHubPluginClient.GetPluginInstanceAsync(request);
GetPluginInstanceAsync(GetPluginInstanceRequest, CancellationToken)
public virtual Task<PluginInstance> GetPluginInstanceAsync(GetPluginInstanceRequest request, CancellationToken cancellationToken)
Get an API Hub plugin instance.
Parameters | |
---|---|
Name | Description |
request |
GetPluginInstanceRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPluginInstance |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
GetPluginInstanceRequest request = new GetPluginInstanceRequest
{
PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
};
// Make the request
PluginInstance response = await apiHubPluginClient.GetPluginInstanceAsync(request);
GetPluginInstanceAsync(PluginInstanceName, CallSettings)
public virtual Task<PluginInstance> GetPluginInstanceAsync(PluginInstanceName name, CallSettings callSettings = null)
Get an API Hub plugin instance.
Parameters | |
---|---|
Name | Description |
name |
PluginInstanceName Required. The name of the plugin instance to retrieve.
Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPluginInstance |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
// Make the request
PluginInstance response = await apiHubPluginClient.GetPluginInstanceAsync(name);
GetPluginInstanceAsync(PluginInstanceName, CancellationToken)
public virtual Task<PluginInstance> GetPluginInstanceAsync(PluginInstanceName name, CancellationToken cancellationToken)
Get an API Hub plugin instance.
Parameters | |
---|---|
Name | Description |
name |
PluginInstanceName Required. The name of the plugin instance to retrieve.
Format:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPluginInstance |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
// Make the request
PluginInstance response = await apiHubPluginClient.GetPluginInstanceAsync(name);
GetPluginInstanceAsync(string, CallSettings)
public virtual Task<PluginInstance> GetPluginInstanceAsync(string name, CallSettings callSettings = null)
Get an API Hub plugin instance.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the plugin instance to retrieve.
Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPluginInstance |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
// Make the request
PluginInstance response = await apiHubPluginClient.GetPluginInstanceAsync(name);
GetPluginInstanceAsync(string, CancellationToken)
public virtual Task<PluginInstance> GetPluginInstanceAsync(string name, CancellationToken cancellationToken)
Get an API Hub plugin instance.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the plugin instance to retrieve.
Format:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPluginInstance |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
// Make the request
PluginInstance response = await apiHubPluginClient.GetPluginInstanceAsync(name);
ListPluginInstances(ListPluginInstancesRequest, CallSettings)
public virtual PagedEnumerable<ListPluginInstancesResponse, PluginInstance> ListPluginInstances(ListPluginInstancesRequest request, CallSettings callSettings = null)
List all the plugins in a given project and location.
-
can be used as wildcard value for {plugin_id}
Parameters | |
---|---|
Name | Description |
request |
ListPluginInstancesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListPluginInstancesResponsePluginInstance |
A pageable sequence of PluginInstance resources. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
ListPluginInstancesRequest request = new ListPluginInstancesRequest
{
ParentAsPluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
Filter = "",
};
// Make the request
PagedEnumerable<ListPluginInstancesResponse, PluginInstance> response = apiHubPluginClient.ListPluginInstances(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (PluginInstance item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListPluginInstancesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (PluginInstance item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<PluginInstance> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (PluginInstance item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListPluginInstances(PluginName, string, int?, CallSettings)
public virtual PagedEnumerable<ListPluginInstancesResponse, PluginInstance> ListPluginInstances(PluginName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List all the plugins in a given project and location.
-
can be used as wildcard value for {plugin_id}
Parameters | |
---|---|
Name | Description |
parent |
PluginName Required. The parent resource where this plugin will be created.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListPluginInstancesResponsePluginInstance |
A pageable sequence of PluginInstance resources. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
PluginName parent = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
// Make the request
PagedEnumerable<ListPluginInstancesResponse, PluginInstance> response = apiHubPluginClient.ListPluginInstances(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (PluginInstance item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListPluginInstancesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (PluginInstance item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<PluginInstance> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (PluginInstance item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListPluginInstances(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListPluginInstancesResponse, PluginInstance> ListPluginInstances(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List all the plugins in a given project and location.
-
can be used as wildcard value for {plugin_id}
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent resource where this plugin will be created.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListPluginInstancesResponsePluginInstance |
A pageable sequence of PluginInstance resources. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
// Make the request
PagedEnumerable<ListPluginInstancesResponse, PluginInstance> response = apiHubPluginClient.ListPluginInstances(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (PluginInstance item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListPluginInstancesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (PluginInstance item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<PluginInstance> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (PluginInstance item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListPluginInstancesAsync(ListPluginInstancesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListPluginInstancesResponse, PluginInstance> ListPluginInstancesAsync(ListPluginInstancesRequest request, CallSettings callSettings = null)
List all the plugins in a given project and location.
-
can be used as wildcard value for {plugin_id}
Parameters | |
---|---|
Name | Description |
request |
ListPluginInstancesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListPluginInstancesResponsePluginInstance |
A pageable asynchronous sequence of PluginInstance resources. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
ListPluginInstancesRequest request = new ListPluginInstancesRequest
{
ParentAsPluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListPluginInstancesResponse, PluginInstance> response = apiHubPluginClient.ListPluginInstancesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((PluginInstance item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListPluginInstancesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (PluginInstance item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<PluginInstance> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (PluginInstance item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListPluginInstancesAsync(PluginName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListPluginInstancesResponse, PluginInstance> ListPluginInstancesAsync(PluginName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List all the plugins in a given project and location.
-
can be used as wildcard value for {plugin_id}
Parameters | |
---|---|
Name | Description |
parent |
PluginName Required. The parent resource where this plugin will be created.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListPluginInstancesResponsePluginInstance |
A pageable asynchronous sequence of PluginInstance resources. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
PluginName parent = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
// Make the request
PagedAsyncEnumerable<ListPluginInstancesResponse, PluginInstance> response = apiHubPluginClient.ListPluginInstancesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((PluginInstance item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListPluginInstancesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (PluginInstance item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<PluginInstance> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (PluginInstance item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListPluginInstancesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListPluginInstancesResponse, PluginInstance> ListPluginInstancesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List all the plugins in a given project and location.
-
can be used as wildcard value for {plugin_id}
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent resource where this plugin will be created.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListPluginInstancesResponsePluginInstance |
A pageable asynchronous sequence of PluginInstance resources. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
// Make the request
PagedAsyncEnumerable<ListPluginInstancesResponse, PluginInstance> response = apiHubPluginClient.ListPluginInstancesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((PluginInstance item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListPluginInstancesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (PluginInstance item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<PluginInstance> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (PluginInstance item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListPlugins(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListPluginsResponse, Plugin> ListPlugins(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List all the plugins in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource where this plugin will be created.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListPluginsResponsePlugin |
A pageable sequence of Plugin resources. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListPluginsResponse, Plugin> response = apiHubPluginClient.ListPlugins(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Plugin item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListPluginsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Plugin item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Plugin> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Plugin item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListPlugins(ListPluginsRequest, CallSettings)
public virtual PagedEnumerable<ListPluginsResponse, Plugin> ListPlugins(ListPluginsRequest request, CallSettings callSettings = null)
List all the plugins in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListPluginsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListPluginsResponsePlugin |
A pageable sequence of Plugin resources. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
ListPluginsRequest request = new ListPluginsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
};
// Make the request
PagedEnumerable<ListPluginsResponse, Plugin> response = apiHubPluginClient.ListPlugins(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Plugin item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListPluginsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Plugin item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Plugin> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Plugin item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListPlugins(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListPluginsResponse, Plugin> ListPlugins(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List all the plugins in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent resource where this plugin will be created.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListPluginsResponsePlugin |
A pageable sequence of Plugin resources. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListPluginsResponse, Plugin> response = apiHubPluginClient.ListPlugins(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Plugin item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListPluginsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Plugin item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Plugin> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Plugin item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListPluginsAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListPluginsResponse, Plugin> ListPluginsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List all the plugins in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource where this plugin will be created.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListPluginsResponsePlugin |
A pageable asynchronous sequence of Plugin resources. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListPluginsResponse, Plugin> response = apiHubPluginClient.ListPluginsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Plugin item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListPluginsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Plugin item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Plugin> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Plugin item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListPluginsAsync(ListPluginsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListPluginsResponse, Plugin> ListPluginsAsync(ListPluginsRequest request, CallSettings callSettings = null)
List all the plugins in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListPluginsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListPluginsResponsePlugin |
A pageable asynchronous sequence of Plugin resources. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
ListPluginsRequest request = new ListPluginsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListPluginsResponse, Plugin> response = apiHubPluginClient.ListPluginsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Plugin item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListPluginsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Plugin item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Plugin> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Plugin item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListPluginsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListPluginsResponse, Plugin> ListPluginsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List all the plugins in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent resource where this plugin will be created.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListPluginsResponsePlugin |
A pageable asynchronous sequence of Plugin resources. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListPluginsResponse, Plugin> response = apiHubPluginClient.ListPluginsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Plugin item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListPluginsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Plugin item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Plugin> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Plugin item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
PollOnceCreatePluginInstance(string, CallSettings)
public virtual Operation<PluginInstance, OperationMetadata> PollOnceCreatePluginInstance(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreatePluginInstance
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPluginInstanceOperationMetadata |
The result of polling the operation. |
PollOnceCreatePluginInstanceAsync(string, CallSettings)
public virtual Task<Operation<PluginInstance, OperationMetadata>> PollOnceCreatePluginInstanceAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreatePluginInstance
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPluginInstanceOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeletePlugin(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeletePlugin(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeletePlugin
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeletePluginAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeletePluginAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeletePlugin
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeletePluginInstance(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeletePluginInstance(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeletePluginInstance
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeletePluginInstanceAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeletePluginInstanceAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeletePluginInstance
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDisablePluginInstanceAction(string, CallSettings)
public virtual Operation<DisablePluginInstanceActionResponse, OperationMetadata> PollOnceDisablePluginInstanceAction(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
DisablePluginInstanceAction
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationDisablePluginInstanceActionResponseOperationMetadata |
The result of polling the operation. |
PollOnceDisablePluginInstanceActionAsync(string, CallSettings)
public virtual Task<Operation<DisablePluginInstanceActionResponse, OperationMetadata>> PollOnceDisablePluginInstanceActionAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DisablePluginInstanceAction
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationDisablePluginInstanceActionResponseOperationMetadata |
A task representing the result of polling the operation. |
PollOnceEnablePluginInstanceAction(string, CallSettings)
public virtual Operation<EnablePluginInstanceActionResponse, OperationMetadata> PollOnceEnablePluginInstanceAction(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
EnablePluginInstanceAction
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEnablePluginInstanceActionResponseOperationMetadata |
The result of polling the operation. |
PollOnceEnablePluginInstanceActionAsync(string, CallSettings)
public virtual Task<Operation<EnablePluginInstanceActionResponse, OperationMetadata>> PollOnceEnablePluginInstanceActionAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
EnablePluginInstanceAction
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEnablePluginInstanceActionResponseOperationMetadata |
A task representing the result of polling the operation. |
PollOnceExecutePluginInstanceAction(string, CallSettings)
public virtual Operation<ExecutePluginInstanceActionResponse, OperationMetadata> PollOnceExecutePluginInstanceAction(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
ExecutePluginInstanceAction
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationExecutePluginInstanceActionResponseOperationMetadata |
The result of polling the operation. |
PollOnceExecutePluginInstanceActionAsync(string, CallSettings)
public virtual Task<Operation<ExecutePluginInstanceActionResponse, OperationMetadata>> PollOnceExecutePluginInstanceActionAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
ExecutePluginInstanceAction
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationExecutePluginInstanceActionResponseOperationMetadata |
A task representing the result of polling the operation. |
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()
Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
Returns | |
---|---|
Type | Description |
Task |
A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
UpdatePluginInstance(PluginInstance, FieldMask, CallSettings)
public virtual PluginInstance UpdatePluginInstance(PluginInstance pluginInstance, FieldMask updateMask, CallSettings callSettings = null)
Updates a plugin instance in the API hub. The following fields in the [plugin_instance][google.cloud.apihub.v1.PluginInstance] can be updated currently:
- [display_name][google.cloud.apihub.v1.PluginInstance.display_name]
- [schedule_cron_expression][PluginInstance.actions.schedule_cron_expression]
The [update_mask][google.cloud.apihub.v1.UpdatePluginInstanceRequest.update_mask] should be used to specify the fields being updated.
To update the [auth_config][google.cloud.apihub.v1.PluginInstance.auth_config] and [additional_config][google.cloud.apihub.v1.PluginInstance.additional_config] of the plugin instance, use the [ApplyPluginInstanceConfig][google.cloud.apihub.v1.ApiHubPlugin.ApplyPluginInstanceConfig] method.
Parameters | |
---|---|
Name | Description |
pluginInstance |
PluginInstance Required. The plugin instance to update. |
updateMask |
FieldMask Optional. The list of fields to update. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PluginInstance |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
PluginInstance pluginInstance = new PluginInstance();
FieldMask updateMask = new FieldMask();
// Make the request
PluginInstance response = apiHubPluginClient.UpdatePluginInstance(pluginInstance, updateMask);
UpdatePluginInstance(UpdatePluginInstanceRequest, CallSettings)
public virtual PluginInstance UpdatePluginInstance(UpdatePluginInstanceRequest request, CallSettings callSettings = null)
Updates a plugin instance in the API hub. The following fields in the [plugin_instance][google.cloud.apihub.v1.PluginInstance] can be updated currently:
- [display_name][google.cloud.apihub.v1.PluginInstance.display_name]
- [schedule_cron_expression][PluginInstance.actions.schedule_cron_expression]
The [update_mask][google.cloud.apihub.v1.UpdatePluginInstanceRequest.update_mask] should be used to specify the fields being updated.
To update the [auth_config][google.cloud.apihub.v1.PluginInstance.auth_config] and [additional_config][google.cloud.apihub.v1.PluginInstance.additional_config] of the plugin instance, use the [ApplyPluginInstanceConfig][google.cloud.apihub.v1.ApiHubPlugin.ApplyPluginInstanceConfig] method.
Parameters | |
---|---|
Name | Description |
request |
UpdatePluginInstanceRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PluginInstance |
The RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
// Initialize request argument(s)
UpdatePluginInstanceRequest request = new UpdatePluginInstanceRequest
{
PluginInstance = new PluginInstance(),
UpdateMask = new FieldMask(),
};
// Make the request
PluginInstance response = apiHubPluginClient.UpdatePluginInstance(request);
UpdatePluginInstanceAsync(PluginInstance, FieldMask, CallSettings)
public virtual Task<PluginInstance> UpdatePluginInstanceAsync(PluginInstance pluginInstance, FieldMask updateMask, CallSettings callSettings = null)
Updates a plugin instance in the API hub. The following fields in the [plugin_instance][google.cloud.apihub.v1.PluginInstance] can be updated currently:
- [display_name][google.cloud.apihub.v1.PluginInstance.display_name]
- [schedule_cron_expression][PluginInstance.actions.schedule_cron_expression]
The [update_mask][google.cloud.apihub.v1.UpdatePluginInstanceRequest.update_mask] should be used to specify the fields being updated.
To update the [auth_config][google.cloud.apihub.v1.PluginInstance.auth_config] and [additional_config][google.cloud.apihub.v1.PluginInstance.additional_config] of the plugin instance, use the [ApplyPluginInstanceConfig][google.cloud.apihub.v1.ApiHubPlugin.ApplyPluginInstanceConfig] method.
Parameters | |
---|---|
Name | Description |
pluginInstance |
PluginInstance Required. The plugin instance to update. |
updateMask |
FieldMask Optional. The list of fields to update. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPluginInstance |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
PluginInstance pluginInstance = new PluginInstance();
FieldMask updateMask = new FieldMask();
// Make the request
PluginInstance response = await apiHubPluginClient.UpdatePluginInstanceAsync(pluginInstance, updateMask);
UpdatePluginInstanceAsync(PluginInstance, FieldMask, CancellationToken)
public virtual Task<PluginInstance> UpdatePluginInstanceAsync(PluginInstance pluginInstance, FieldMask updateMask, CancellationToken cancellationToken)
Updates a plugin instance in the API hub. The following fields in the [plugin_instance][google.cloud.apihub.v1.PluginInstance] can be updated currently:
- [display_name][google.cloud.apihub.v1.PluginInstance.display_name]
- [schedule_cron_expression][PluginInstance.actions.schedule_cron_expression]
The [update_mask][google.cloud.apihub.v1.UpdatePluginInstanceRequest.update_mask] should be used to specify the fields being updated.
To update the [auth_config][google.cloud.apihub.v1.PluginInstance.auth_config] and [additional_config][google.cloud.apihub.v1.PluginInstance.additional_config] of the plugin instance, use the [ApplyPluginInstanceConfig][google.cloud.apihub.v1.ApiHubPlugin.ApplyPluginInstanceConfig] method.
Parameters | |
---|---|
Name | Description |
pluginInstance |
PluginInstance Required. The plugin instance to update. |
updateMask |
FieldMask Optional. The list of fields to update. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPluginInstance |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
PluginInstance pluginInstance = new PluginInstance();
FieldMask updateMask = new FieldMask();
// Make the request
PluginInstance response = await apiHubPluginClient.UpdatePluginInstanceAsync(pluginInstance, updateMask);
UpdatePluginInstanceAsync(UpdatePluginInstanceRequest, CallSettings)
public virtual Task<PluginInstance> UpdatePluginInstanceAsync(UpdatePluginInstanceRequest request, CallSettings callSettings = null)
Updates a plugin instance in the API hub. The following fields in the [plugin_instance][google.cloud.apihub.v1.PluginInstance] can be updated currently:
- [display_name][google.cloud.apihub.v1.PluginInstance.display_name]
- [schedule_cron_expression][PluginInstance.actions.schedule_cron_expression]
The [update_mask][google.cloud.apihub.v1.UpdatePluginInstanceRequest.update_mask] should be used to specify the fields being updated.
To update the [auth_config][google.cloud.apihub.v1.PluginInstance.auth_config] and [additional_config][google.cloud.apihub.v1.PluginInstance.additional_config] of the plugin instance, use the [ApplyPluginInstanceConfig][google.cloud.apihub.v1.ApiHubPlugin.ApplyPluginInstanceConfig] method.
Parameters | |
---|---|
Name | Description |
request |
UpdatePluginInstanceRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPluginInstance |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
UpdatePluginInstanceRequest request = new UpdatePluginInstanceRequest
{
PluginInstance = new PluginInstance(),
UpdateMask = new FieldMask(),
};
// Make the request
PluginInstance response = await apiHubPluginClient.UpdatePluginInstanceAsync(request);
UpdatePluginInstanceAsync(UpdatePluginInstanceRequest, CancellationToken)
public virtual Task<PluginInstance> UpdatePluginInstanceAsync(UpdatePluginInstanceRequest request, CancellationToken cancellationToken)
Updates a plugin instance in the API hub. The following fields in the [plugin_instance][google.cloud.apihub.v1.PluginInstance] can be updated currently:
- [display_name][google.cloud.apihub.v1.PluginInstance.display_name]
- [schedule_cron_expression][PluginInstance.actions.schedule_cron_expression]
The [update_mask][google.cloud.apihub.v1.UpdatePluginInstanceRequest.update_mask] should be used to specify the fields being updated.
To update the [auth_config][google.cloud.apihub.v1.PluginInstance.auth_config] and [additional_config][google.cloud.apihub.v1.PluginInstance.additional_config] of the plugin instance, use the [ApplyPluginInstanceConfig][google.cloud.apihub.v1.ApiHubPlugin.ApplyPluginInstanceConfig] method.
Parameters | |
---|---|
Name | Description |
request |
UpdatePluginInstanceRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPluginInstance |
A Task containing the RPC response. |
// Create client
ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
// Initialize request argument(s)
UpdatePluginInstanceRequest request = new UpdatePluginInstanceRequest
{
PluginInstance = new PluginInstance(),
UpdateMask = new FieldMask(),
};
// Make the request
PluginInstance response = await apiHubPluginClient.UpdatePluginInstanceAsync(request);