public abstract class AppConnectorsServiceClient
Reference documentation and code samples for the Google.Cloud.BeyondCorp.AppConnectors.V1 class AppConnectorsServiceClient.
AppConnectorsService client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.BeyondCorp.AppConnectors.V1Assembly
Google.Cloud.BeyondCorp.AppConnectors.V1.dll
Remarks
API Overview
The beyondcorp.googleapis.com
service implements the Google Cloud
BeyondCorp API.
Data Model
The AppConnectorsService exposes the following resource:
- AppConnectors, named as follows:
projects/{project_id}/locations/{location_id}/appConnectors/{app_connector_id}
.
The AppConnectorsService provides methods to manage (create/read/update/delete) BeyondCorp AppConnectors.
Properties
CreateAppConnectorOperationsClient
public virtual OperationsClient CreateAppConnectorOperationsClient { get; }
The long-running operations client for CreateAppConnector
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the AppConnectorsService service, which is a host of "beyondcorp.googleapis.com" and a port of 443.
Property Value | |
---|---|
Type | Description |
String |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default AppConnectorsService scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyList<String> |
The default AppConnectorsService scopes are:
DeleteAppConnectorOperationsClient
public virtual OperationsClient DeleteAppConnectorOperationsClient { get; }
The long-running operations client for DeleteAppConnector
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public virtual AppConnectorsService.AppConnectorsServiceClient GrpcClient { get; }
The underlying gRPC AppConnectorsService client
Property Value | |
---|---|
Type | Description |
AppConnectorsService.AppConnectorsServiceClient |
IAMPolicyClient
public virtual IAMPolicyClient IAMPolicyClient { get; }
The IAMPolicyClient associated with this client.
Property Value | |
---|---|
Type | Description |
IAMPolicyClient |
LocationsClient
public virtual LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
ReportStatusOperationsClient
public virtual OperationsClient ReportStatusOperationsClient { get; }
The long-running operations client for ReportStatus
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
UpdateAppConnectorOperationsClient
public virtual OperationsClient UpdateAppConnectorOperationsClient { get; }
The long-running operations client for UpdateAppConnector
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
Create()
public static AppConnectorsServiceClient Create()
Synchronously creates a AppConnectorsServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use AppConnectorsServiceClientBuilder.
Returns | |
---|---|
Type | Description |
AppConnectorsServiceClient | The created AppConnectorsServiceClient. |
CreateAppConnector(LocationName, AppConnector, String, CallSettings)
public virtual Operation<AppConnector, AppConnectorOperationMetadata> CreateAppConnector(LocationName parent, AppConnector appConnector, string appConnectorId, CallSettings callSettings = null)
Creates a new AppConnector in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The resource project name of the AppConnector location using the
form: |
appConnector | AppConnector Required. A BeyondCorp AppConnector resource. |
appConnectorId | String Optional. User-settable AppConnector resource ID.
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<AppConnector, AppConnectorOperationMetadata> | The RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = AppConnectorsServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
AppConnector appConnector = new AppConnector();
string appConnectorId = "";
// Make the request
Operation<AppConnector, AppConnectorOperationMetadata> response = appConnectorsServiceClient.CreateAppConnector(parent, appConnector, appConnectorId);
// Poll until the returned long-running operation is complete
Operation<AppConnector, AppConnectorOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AppConnector 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<AppConnector, AppConnectorOperationMetadata> retrievedResponse = appConnectorsServiceClient.PollOnceCreateAppConnector(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
AppConnector retrievedResult = retrievedResponse.Result;
}
CreateAppConnector(CreateAppConnectorRequest, CallSettings)
public virtual Operation<AppConnector, AppConnectorOperationMetadata> CreateAppConnector(CreateAppConnectorRequest request, CallSettings callSettings = null)
Creates a new AppConnector in a given project and location.
Parameters | |
---|---|
Name | Description |
request | CreateAppConnectorRequest 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 |
Operation<AppConnector, AppConnectorOperationMetadata> | The RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = AppConnectorsServiceClient.Create();
// Initialize request argument(s)
CreateAppConnectorRequest request = new CreateAppConnectorRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
AppConnectorId = "",
AppConnector = new AppConnector(),
RequestId = "",
ValidateOnly = false,
};
// Make the request
Operation<AppConnector, AppConnectorOperationMetadata> response = appConnectorsServiceClient.CreateAppConnector(request);
// Poll until the returned long-running operation is complete
Operation<AppConnector, AppConnectorOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AppConnector 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<AppConnector, AppConnectorOperationMetadata> retrievedResponse = appConnectorsServiceClient.PollOnceCreateAppConnector(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
AppConnector retrievedResult = retrievedResponse.Result;
}
CreateAppConnector(String, AppConnector, String, CallSettings)
public virtual Operation<AppConnector, AppConnectorOperationMetadata> CreateAppConnector(string parent, AppConnector appConnector, string appConnectorId, CallSettings callSettings = null)
Creates a new AppConnector in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The resource project name of the AppConnector location using the
form: |
appConnector | AppConnector Required. A BeyondCorp AppConnector resource. |
appConnectorId | String Optional. User-settable AppConnector resource ID.
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<AppConnector, AppConnectorOperationMetadata> | The RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = AppConnectorsServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
AppConnector appConnector = new AppConnector();
string appConnectorId = "";
// Make the request
Operation<AppConnector, AppConnectorOperationMetadata> response = appConnectorsServiceClient.CreateAppConnector(parent, appConnector, appConnectorId);
// Poll until the returned long-running operation is complete
Operation<AppConnector, AppConnectorOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AppConnector 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<AppConnector, AppConnectorOperationMetadata> retrievedResponse = appConnectorsServiceClient.PollOnceCreateAppConnector(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
AppConnector retrievedResult = retrievedResponse.Result;
}
CreateAppConnectorAsync(LocationName, AppConnector, String, CallSettings)
public virtual Task<Operation<AppConnector, AppConnectorOperationMetadata>> CreateAppConnectorAsync(LocationName parent, AppConnector appConnector, string appConnectorId, CallSettings callSettings = null)
Creates a new AppConnector in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The resource project name of the AppConnector location using the
form: |
appConnector | AppConnector Required. A BeyondCorp AppConnector resource. |
appConnectorId | String Optional. User-settable AppConnector resource ID.
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<AppConnector, AppConnectorOperationMetadata>> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
AppConnector appConnector = new AppConnector();
string appConnectorId = "";
// Make the request
Operation<AppConnector, AppConnectorOperationMetadata> response = await appConnectorsServiceClient.CreateAppConnectorAsync(parent, appConnector, appConnectorId);
// Poll until the returned long-running operation is complete
Operation<AppConnector, AppConnectorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AppConnector 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<AppConnector, AppConnectorOperationMetadata> retrievedResponse = await appConnectorsServiceClient.PollOnceCreateAppConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
AppConnector retrievedResult = retrievedResponse.Result;
}
CreateAppConnectorAsync(LocationName, AppConnector, String, CancellationToken)
public virtual Task<Operation<AppConnector, AppConnectorOperationMetadata>> CreateAppConnectorAsync(LocationName parent, AppConnector appConnector, string appConnectorId, CancellationToken cancellationToken)
Creates a new AppConnector in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The resource project name of the AppConnector location using the
form: |
appConnector | AppConnector Required. A BeyondCorp AppConnector resource. |
appConnectorId | String Optional. User-settable AppConnector resource ID.
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<AppConnector, AppConnectorOperationMetadata>> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
AppConnector appConnector = new AppConnector();
string appConnectorId = "";
// Make the request
Operation<AppConnector, AppConnectorOperationMetadata> response = await appConnectorsServiceClient.CreateAppConnectorAsync(parent, appConnector, appConnectorId);
// Poll until the returned long-running operation is complete
Operation<AppConnector, AppConnectorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AppConnector 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<AppConnector, AppConnectorOperationMetadata> retrievedResponse = await appConnectorsServiceClient.PollOnceCreateAppConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
AppConnector retrievedResult = retrievedResponse.Result;
}
CreateAppConnectorAsync(CreateAppConnectorRequest, CallSettings)
public virtual Task<Operation<AppConnector, AppConnectorOperationMetadata>> CreateAppConnectorAsync(CreateAppConnectorRequest request, CallSettings callSettings = null)
Creates a new AppConnector in a given project and location.
Parameters | |
---|---|
Name | Description |
request | CreateAppConnectorRequest 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 |
Task<Operation<AppConnector, AppConnectorOperationMetadata>> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
CreateAppConnectorRequest request = new CreateAppConnectorRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
AppConnectorId = "",
AppConnector = new AppConnector(),
RequestId = "",
ValidateOnly = false,
};
// Make the request
Operation<AppConnector, AppConnectorOperationMetadata> response = await appConnectorsServiceClient.CreateAppConnectorAsync(request);
// Poll until the returned long-running operation is complete
Operation<AppConnector, AppConnectorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AppConnector 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<AppConnector, AppConnectorOperationMetadata> retrievedResponse = await appConnectorsServiceClient.PollOnceCreateAppConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
AppConnector retrievedResult = retrievedResponse.Result;
}
CreateAppConnectorAsync(CreateAppConnectorRequest, CancellationToken)
public virtual Task<Operation<AppConnector, AppConnectorOperationMetadata>> CreateAppConnectorAsync(CreateAppConnectorRequest request, CancellationToken cancellationToken)
Creates a new AppConnector in a given project and location.
Parameters | |
---|---|
Name | Description |
request | CreateAppConnectorRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<AppConnector, AppConnectorOperationMetadata>> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
CreateAppConnectorRequest request = new CreateAppConnectorRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
AppConnectorId = "",
AppConnector = new AppConnector(),
RequestId = "",
ValidateOnly = false,
};
// Make the request
Operation<AppConnector, AppConnectorOperationMetadata> response = await appConnectorsServiceClient.CreateAppConnectorAsync(request);
// Poll until the returned long-running operation is complete
Operation<AppConnector, AppConnectorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AppConnector 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<AppConnector, AppConnectorOperationMetadata> retrievedResponse = await appConnectorsServiceClient.PollOnceCreateAppConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
AppConnector retrievedResult = retrievedResponse.Result;
}
CreateAppConnectorAsync(String, AppConnector, String, CallSettings)
public virtual Task<Operation<AppConnector, AppConnectorOperationMetadata>> CreateAppConnectorAsync(string parent, AppConnector appConnector, string appConnectorId, CallSettings callSettings = null)
Creates a new AppConnector in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The resource project name of the AppConnector location using the
form: |
appConnector | AppConnector Required. A BeyondCorp AppConnector resource. |
appConnectorId | String Optional. User-settable AppConnector resource ID.
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<AppConnector, AppConnectorOperationMetadata>> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
AppConnector appConnector = new AppConnector();
string appConnectorId = "";
// Make the request
Operation<AppConnector, AppConnectorOperationMetadata> response = await appConnectorsServiceClient.CreateAppConnectorAsync(parent, appConnector, appConnectorId);
// Poll until the returned long-running operation is complete
Operation<AppConnector, AppConnectorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AppConnector 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<AppConnector, AppConnectorOperationMetadata> retrievedResponse = await appConnectorsServiceClient.PollOnceCreateAppConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
AppConnector retrievedResult = retrievedResponse.Result;
}
CreateAppConnectorAsync(String, AppConnector, String, CancellationToken)
public virtual Task<Operation<AppConnector, AppConnectorOperationMetadata>> CreateAppConnectorAsync(string parent, AppConnector appConnector, string appConnectorId, CancellationToken cancellationToken)
Creates a new AppConnector in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The resource project name of the AppConnector location using the
form: |
appConnector | AppConnector Required. A BeyondCorp AppConnector resource. |
appConnectorId | String Optional. User-settable AppConnector resource ID.
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<AppConnector, AppConnectorOperationMetadata>> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
AppConnector appConnector = new AppConnector();
string appConnectorId = "";
// Make the request
Operation<AppConnector, AppConnectorOperationMetadata> response = await appConnectorsServiceClient.CreateAppConnectorAsync(parent, appConnector, appConnectorId);
// Poll until the returned long-running operation is complete
Operation<AppConnector, AppConnectorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AppConnector 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<AppConnector, AppConnectorOperationMetadata> retrievedResponse = await appConnectorsServiceClient.PollOnceCreateAppConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
AppConnector retrievedResult = retrievedResponse.Result;
}
CreateAsync(CancellationToken)
public static Task<AppConnectorsServiceClient> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))
Asynchronously creates a AppConnectorsServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use AppConnectorsServiceClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
Task<AppConnectorsServiceClient> | The task representing the created AppConnectorsServiceClient. |
DeleteAppConnector(AppConnectorName, CallSettings)
public virtual Operation<Empty, AppConnectorOperationMetadata> DeleteAppConnector(AppConnectorName name, CallSettings callSettings = null)
Deletes a single AppConnector.
Parameters | |
---|---|
Name | Description |
name | AppConnectorName Required. BeyondCorp AppConnector name using the form:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, AppConnectorOperationMetadata> | The RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = AppConnectorsServiceClient.Create();
// Initialize request argument(s)
AppConnectorName name = AppConnectorName.FromProjectLocationAppConnector("[PROJECT]", "[LOCATION]", "[APP_CONNECTOR]");
// Make the request
Operation<Empty, AppConnectorOperationMetadata> response = appConnectorsServiceClient.DeleteAppConnector(name);
// Poll until the returned long-running operation is complete
Operation<Empty, AppConnectorOperationMetadata> 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, AppConnectorOperationMetadata> retrievedResponse = appConnectorsServiceClient.PollOnceDeleteAppConnector(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;
}
DeleteAppConnector(DeleteAppConnectorRequest, CallSettings)
public virtual Operation<Empty, AppConnectorOperationMetadata> DeleteAppConnector(DeleteAppConnectorRequest request, CallSettings callSettings = null)
Deletes a single AppConnector.
Parameters | |
---|---|
Name | Description |
request | DeleteAppConnectorRequest 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 |
Operation<Empty, AppConnectorOperationMetadata> | The RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = AppConnectorsServiceClient.Create();
// Initialize request argument(s)
DeleteAppConnectorRequest request = new DeleteAppConnectorRequest
{
AppConnectorName = AppConnectorName.FromProjectLocationAppConnector("[PROJECT]", "[LOCATION]", "[APP_CONNECTOR]"),
RequestId = "",
ValidateOnly = false,
};
// Make the request
Operation<Empty, AppConnectorOperationMetadata> response = appConnectorsServiceClient.DeleteAppConnector(request);
// Poll until the returned long-running operation is complete
Operation<Empty, AppConnectorOperationMetadata> 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, AppConnectorOperationMetadata> retrievedResponse = appConnectorsServiceClient.PollOnceDeleteAppConnector(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;
}
DeleteAppConnector(String, CallSettings)
public virtual Operation<Empty, AppConnectorOperationMetadata> DeleteAppConnector(string name, CallSettings callSettings = null)
Deletes a single AppConnector.
Parameters | |
---|---|
Name | Description |
name | String Required. BeyondCorp AppConnector name using the form:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, AppConnectorOperationMetadata> | The RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = AppConnectorsServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/appConnectors/[APP_CONNECTOR]";
// Make the request
Operation<Empty, AppConnectorOperationMetadata> response = appConnectorsServiceClient.DeleteAppConnector(name);
// Poll until the returned long-running operation is complete
Operation<Empty, AppConnectorOperationMetadata> 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, AppConnectorOperationMetadata> retrievedResponse = appConnectorsServiceClient.PollOnceDeleteAppConnector(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;
}
DeleteAppConnectorAsync(AppConnectorName, CallSettings)
public virtual Task<Operation<Empty, AppConnectorOperationMetadata>> DeleteAppConnectorAsync(AppConnectorName name, CallSettings callSettings = null)
Deletes a single AppConnector.
Parameters | |
---|---|
Name | Description |
name | AppConnectorName Required. BeyondCorp AppConnector name using the form:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, AppConnectorOperationMetadata>> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
AppConnectorName name = AppConnectorName.FromProjectLocationAppConnector("[PROJECT]", "[LOCATION]", "[APP_CONNECTOR]");
// Make the request
Operation<Empty, AppConnectorOperationMetadata> response = await appConnectorsServiceClient.DeleteAppConnectorAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, AppConnectorOperationMetadata> 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, AppConnectorOperationMetadata> retrievedResponse = await appConnectorsServiceClient.PollOnceDeleteAppConnectorAsync(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;
}
DeleteAppConnectorAsync(AppConnectorName, CancellationToken)
public virtual Task<Operation<Empty, AppConnectorOperationMetadata>> DeleteAppConnectorAsync(AppConnectorName name, CancellationToken cancellationToken)
Deletes a single AppConnector.
Parameters | |
---|---|
Name | Description |
name | AppConnectorName Required. BeyondCorp AppConnector name using the form:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, AppConnectorOperationMetadata>> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
AppConnectorName name = AppConnectorName.FromProjectLocationAppConnector("[PROJECT]", "[LOCATION]", "[APP_CONNECTOR]");
// Make the request
Operation<Empty, AppConnectorOperationMetadata> response = await appConnectorsServiceClient.DeleteAppConnectorAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, AppConnectorOperationMetadata> 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, AppConnectorOperationMetadata> retrievedResponse = await appConnectorsServiceClient.PollOnceDeleteAppConnectorAsync(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;
}
DeleteAppConnectorAsync(DeleteAppConnectorRequest, CallSettings)
public virtual Task<Operation<Empty, AppConnectorOperationMetadata>> DeleteAppConnectorAsync(DeleteAppConnectorRequest request, CallSettings callSettings = null)
Deletes a single AppConnector.
Parameters | |
---|---|
Name | Description |
request | DeleteAppConnectorRequest 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 |
Task<Operation<Empty, AppConnectorOperationMetadata>> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteAppConnectorRequest request = new DeleteAppConnectorRequest
{
AppConnectorName = AppConnectorName.FromProjectLocationAppConnector("[PROJECT]", "[LOCATION]", "[APP_CONNECTOR]"),
RequestId = "",
ValidateOnly = false,
};
// Make the request
Operation<Empty, AppConnectorOperationMetadata> response = await appConnectorsServiceClient.DeleteAppConnectorAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, AppConnectorOperationMetadata> 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, AppConnectorOperationMetadata> retrievedResponse = await appConnectorsServiceClient.PollOnceDeleteAppConnectorAsync(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;
}
DeleteAppConnectorAsync(DeleteAppConnectorRequest, CancellationToken)
public virtual Task<Operation<Empty, AppConnectorOperationMetadata>> DeleteAppConnectorAsync(DeleteAppConnectorRequest request, CancellationToken cancellationToken)
Deletes a single AppConnector.
Parameters | |
---|---|
Name | Description |
request | DeleteAppConnectorRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, AppConnectorOperationMetadata>> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteAppConnectorRequest request = new DeleteAppConnectorRequest
{
AppConnectorName = AppConnectorName.FromProjectLocationAppConnector("[PROJECT]", "[LOCATION]", "[APP_CONNECTOR]"),
RequestId = "",
ValidateOnly = false,
};
// Make the request
Operation<Empty, AppConnectorOperationMetadata> response = await appConnectorsServiceClient.DeleteAppConnectorAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, AppConnectorOperationMetadata> 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, AppConnectorOperationMetadata> retrievedResponse = await appConnectorsServiceClient.PollOnceDeleteAppConnectorAsync(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;
}
DeleteAppConnectorAsync(String, CallSettings)
public virtual Task<Operation<Empty, AppConnectorOperationMetadata>> DeleteAppConnectorAsync(string name, CallSettings callSettings = null)
Deletes a single AppConnector.
Parameters | |
---|---|
Name | Description |
name | String Required. BeyondCorp AppConnector name using the form:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, AppConnectorOperationMetadata>> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/appConnectors/[APP_CONNECTOR]";
// Make the request
Operation<Empty, AppConnectorOperationMetadata> response = await appConnectorsServiceClient.DeleteAppConnectorAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, AppConnectorOperationMetadata> 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, AppConnectorOperationMetadata> retrievedResponse = await appConnectorsServiceClient.PollOnceDeleteAppConnectorAsync(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;
}
DeleteAppConnectorAsync(String, CancellationToken)
public virtual Task<Operation<Empty, AppConnectorOperationMetadata>> DeleteAppConnectorAsync(string name, CancellationToken cancellationToken)
Deletes a single AppConnector.
Parameters | |
---|---|
Name | Description |
name | String Required. BeyondCorp AppConnector name using the form:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, AppConnectorOperationMetadata>> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/appConnectors/[APP_CONNECTOR]";
// Make the request
Operation<Empty, AppConnectorOperationMetadata> response = await appConnectorsServiceClient.DeleteAppConnectorAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, AppConnectorOperationMetadata> 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, AppConnectorOperationMetadata> retrievedResponse = await appConnectorsServiceClient.PollOnceDeleteAppConnectorAsync(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;
}
GetAppConnector(AppConnectorName, CallSettings)
public virtual AppConnector GetAppConnector(AppConnectorName name, CallSettings callSettings = null)
Gets details of a single AppConnector.
Parameters | |
---|---|
Name | Description |
name | AppConnectorName Required. BeyondCorp AppConnector name using the form:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
AppConnector | The RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = AppConnectorsServiceClient.Create();
// Initialize request argument(s)
AppConnectorName name = AppConnectorName.FromProjectLocationAppConnector("[PROJECT]", "[LOCATION]", "[APP_CONNECTOR]");
// Make the request
AppConnector response = appConnectorsServiceClient.GetAppConnector(name);
GetAppConnector(GetAppConnectorRequest, CallSettings)
public virtual AppConnector GetAppConnector(GetAppConnectorRequest request, CallSettings callSettings = null)
Gets details of a single AppConnector.
Parameters | |
---|---|
Name | Description |
request | GetAppConnectorRequest 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 |
AppConnector | The RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = AppConnectorsServiceClient.Create();
// Initialize request argument(s)
GetAppConnectorRequest request = new GetAppConnectorRequest
{
AppConnectorName = AppConnectorName.FromProjectLocationAppConnector("[PROJECT]", "[LOCATION]", "[APP_CONNECTOR]"),
};
// Make the request
AppConnector response = appConnectorsServiceClient.GetAppConnector(request);
GetAppConnector(String, CallSettings)
public virtual AppConnector GetAppConnector(string name, CallSettings callSettings = null)
Gets details of a single AppConnector.
Parameters | |
---|---|
Name | Description |
name | String Required. BeyondCorp AppConnector name using the form:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
AppConnector | The RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = AppConnectorsServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/appConnectors/[APP_CONNECTOR]";
// Make the request
AppConnector response = appConnectorsServiceClient.GetAppConnector(name);
GetAppConnectorAsync(AppConnectorName, CallSettings)
public virtual Task<AppConnector> GetAppConnectorAsync(AppConnectorName name, CallSettings callSettings = null)
Gets details of a single AppConnector.
Parameters | |
---|---|
Name | Description |
name | AppConnectorName Required. BeyondCorp AppConnector name using the form:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<AppConnector> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
AppConnectorName name = AppConnectorName.FromProjectLocationAppConnector("[PROJECT]", "[LOCATION]", "[APP_CONNECTOR]");
// Make the request
AppConnector response = await appConnectorsServiceClient.GetAppConnectorAsync(name);
GetAppConnectorAsync(AppConnectorName, CancellationToken)
public virtual Task<AppConnector> GetAppConnectorAsync(AppConnectorName name, CancellationToken cancellationToken)
Gets details of a single AppConnector.
Parameters | |
---|---|
Name | Description |
name | AppConnectorName Required. BeyondCorp AppConnector name using the form:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<AppConnector> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
AppConnectorName name = AppConnectorName.FromProjectLocationAppConnector("[PROJECT]", "[LOCATION]", "[APP_CONNECTOR]");
// Make the request
AppConnector response = await appConnectorsServiceClient.GetAppConnectorAsync(name);
GetAppConnectorAsync(GetAppConnectorRequest, CallSettings)
public virtual Task<AppConnector> GetAppConnectorAsync(GetAppConnectorRequest request, CallSettings callSettings = null)
Gets details of a single AppConnector.
Parameters | |
---|---|
Name | Description |
request | GetAppConnectorRequest 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 |
Task<AppConnector> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
GetAppConnectorRequest request = new GetAppConnectorRequest
{
AppConnectorName = AppConnectorName.FromProjectLocationAppConnector("[PROJECT]", "[LOCATION]", "[APP_CONNECTOR]"),
};
// Make the request
AppConnector response = await appConnectorsServiceClient.GetAppConnectorAsync(request);
GetAppConnectorAsync(GetAppConnectorRequest, CancellationToken)
public virtual Task<AppConnector> GetAppConnectorAsync(GetAppConnectorRequest request, CancellationToken cancellationToken)
Gets details of a single AppConnector.
Parameters | |
---|---|
Name | Description |
request | GetAppConnectorRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<AppConnector> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
GetAppConnectorRequest request = new GetAppConnectorRequest
{
AppConnectorName = AppConnectorName.FromProjectLocationAppConnector("[PROJECT]", "[LOCATION]", "[APP_CONNECTOR]"),
};
// Make the request
AppConnector response = await appConnectorsServiceClient.GetAppConnectorAsync(request);
GetAppConnectorAsync(String, CallSettings)
public virtual Task<AppConnector> GetAppConnectorAsync(string name, CallSettings callSettings = null)
Gets details of a single AppConnector.
Parameters | |
---|---|
Name | Description |
name | String Required. BeyondCorp AppConnector name using the form:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<AppConnector> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/appConnectors/[APP_CONNECTOR]";
// Make the request
AppConnector response = await appConnectorsServiceClient.GetAppConnectorAsync(name);
GetAppConnectorAsync(String, CancellationToken)
public virtual Task<AppConnector> GetAppConnectorAsync(string name, CancellationToken cancellationToken)
Gets details of a single AppConnector.
Parameters | |
---|---|
Name | Description |
name | String Required. BeyondCorp AppConnector name using the form:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<AppConnector> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/appConnectors/[APP_CONNECTOR]";
// Make the request
AppConnector response = await appConnectorsServiceClient.GetAppConnectorAsync(name);
ListAppConnectors(LocationName, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListAppConnectorsResponse, AppConnector> ListAppConnectors(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists AppConnectors in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The resource name of the AppConnector location using the form:
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> 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 |
PagedEnumerable<ListAppConnectorsResponse, AppConnector> | A pageable sequence of AppConnector resources. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = AppConnectorsServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListAppConnectorsResponse, AppConnector> response = appConnectorsServiceClient.ListAppConnectors(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (AppConnector 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 (ListAppConnectorsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AppConnector 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<AppConnector> 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 (AppConnector 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;
ListAppConnectors(ListAppConnectorsRequest, CallSettings)
public virtual PagedEnumerable<ListAppConnectorsResponse, AppConnector> ListAppConnectors(ListAppConnectorsRequest request, CallSettings callSettings = null)
Lists AppConnectors in a given project and location.
Parameters | |
---|---|
Name | Description |
request | ListAppConnectorsRequest 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 |
PagedEnumerable<ListAppConnectorsResponse, AppConnector> | A pageable sequence of AppConnector resources. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = AppConnectorsServiceClient.Create();
// Initialize request argument(s)
ListAppConnectorsRequest request = new ListAppConnectorsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListAppConnectorsResponse, AppConnector> response = appConnectorsServiceClient.ListAppConnectors(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (AppConnector 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 (ListAppConnectorsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AppConnector 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<AppConnector> 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 (AppConnector 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;
ListAppConnectors(String, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListAppConnectorsResponse, AppConnector> ListAppConnectors(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists AppConnectors in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The resource name of the AppConnector location using the form:
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> 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 |
PagedEnumerable<ListAppConnectorsResponse, AppConnector> | A pageable sequence of AppConnector resources. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = AppConnectorsServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListAppConnectorsResponse, AppConnector> response = appConnectorsServiceClient.ListAppConnectors(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (AppConnector 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 (ListAppConnectorsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AppConnector 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<AppConnector> 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 (AppConnector 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;
ListAppConnectorsAsync(LocationName, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListAppConnectorsResponse, AppConnector> ListAppConnectorsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists AppConnectors in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The resource name of the AppConnector location using the form:
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> 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 |
PagedAsyncEnumerable<ListAppConnectorsResponse, AppConnector> | A pageable asynchronous sequence of AppConnector resources. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListAppConnectorsResponse, AppConnector> response = appConnectorsServiceClient.ListAppConnectorsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AppConnector 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((ListAppConnectorsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AppConnector 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<AppConnector> 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 (AppConnector 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;
ListAppConnectorsAsync(ListAppConnectorsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListAppConnectorsResponse, AppConnector> ListAppConnectorsAsync(ListAppConnectorsRequest request, CallSettings callSettings = null)
Lists AppConnectors in a given project and location.
Parameters | |
---|---|
Name | Description |
request | ListAppConnectorsRequest 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 |
PagedAsyncEnumerable<ListAppConnectorsResponse, AppConnector> | A pageable asynchronous sequence of AppConnector resources. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
ListAppConnectorsRequest request = new ListAppConnectorsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListAppConnectorsResponse, AppConnector> response = appConnectorsServiceClient.ListAppConnectorsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AppConnector 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((ListAppConnectorsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AppConnector 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<AppConnector> 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 (AppConnector 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;
ListAppConnectorsAsync(String, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListAppConnectorsResponse, AppConnector> ListAppConnectorsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists AppConnectors in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The resource name of the AppConnector location using the form:
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> 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 |
PagedAsyncEnumerable<ListAppConnectorsResponse, AppConnector> | A pageable asynchronous sequence of AppConnector resources. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListAppConnectorsResponse, AppConnector> response = appConnectorsServiceClient.ListAppConnectorsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AppConnector 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((ListAppConnectorsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AppConnector 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<AppConnector> 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 (AppConnector 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;
PollOnceCreateAppConnector(String, CallSettings)
public virtual Operation<AppConnector, AppConnectorOperationMetadata> PollOnceCreateAppConnector(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateAppConnector
.
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 |
Operation<AppConnector, AppConnectorOperationMetadata> | The result of polling the operation. |
PollOnceCreateAppConnectorAsync(String, CallSettings)
public virtual Task<Operation<AppConnector, AppConnectorOperationMetadata>> PollOnceCreateAppConnectorAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateAppConnector
.
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 |
Task<Operation<AppConnector, AppConnectorOperationMetadata>> | A task representing the result of polling the operation. |
PollOnceDeleteAppConnector(String, CallSettings)
public virtual Operation<Empty, AppConnectorOperationMetadata> PollOnceDeleteAppConnector(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteAppConnector
.
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 |
Operation<Empty, AppConnectorOperationMetadata> | The result of polling the operation. |
PollOnceDeleteAppConnectorAsync(String, CallSettings)
public virtual Task<Operation<Empty, AppConnectorOperationMetadata>> PollOnceDeleteAppConnectorAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteAppConnector
.
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 |
Task<Operation<Empty, AppConnectorOperationMetadata>> | A task representing the result of polling the operation. |
PollOnceReportStatus(String, CallSettings)
public virtual Operation<AppConnector, AppConnectorOperationMetadata> PollOnceReportStatus(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of ReportStatus
.
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 |
Operation<AppConnector, AppConnectorOperationMetadata> | The result of polling the operation. |
PollOnceReportStatusAsync(String, CallSettings)
public virtual Task<Operation<AppConnector, AppConnectorOperationMetadata>> PollOnceReportStatusAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
ReportStatus
.
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 |
Task<Operation<AppConnector, AppConnectorOperationMetadata>> | A task representing the result of polling the operation. |
PollOnceUpdateAppConnector(String, CallSettings)
public virtual Operation<AppConnector, AppConnectorOperationMetadata> PollOnceUpdateAppConnector(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdateAppConnector
.
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 |
Operation<AppConnector, AppConnectorOperationMetadata> | The result of polling the operation. |
PollOnceUpdateAppConnectorAsync(String, CallSettings)
public virtual Task<Operation<AppConnector, AppConnectorOperationMetadata>> PollOnceUpdateAppConnectorAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateAppConnector
.
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 |
Task<Operation<AppConnector, AppConnectorOperationMetadata>> | A task representing the result of polling the operation. |
ReportStatus(AppConnectorName, ResourceInfo, CallSettings)
public virtual Operation<AppConnector, AppConnectorOperationMetadata> ReportStatus(AppConnectorName appConnector, ResourceInfo resourceInfo, CallSettings callSettings = null)
Report status for a given connector.
Parameters | |
---|---|
Name | Description |
appConnector | AppConnectorName Required. BeyondCorp Connector name using the form:
|
resourceInfo | ResourceInfo Required. Resource info of the connector. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<AppConnector, AppConnectorOperationMetadata> | The RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = AppConnectorsServiceClient.Create();
// Initialize request argument(s)
AppConnectorName appConnector = AppConnectorName.FromProjectLocationAppConnector("[PROJECT]", "[LOCATION]", "[APP_CONNECTOR]");
ResourceInfo resourceInfo = new ResourceInfo();
// Make the request
Operation<AppConnector, AppConnectorOperationMetadata> response = appConnectorsServiceClient.ReportStatus(appConnector, resourceInfo);
// Poll until the returned long-running operation is complete
Operation<AppConnector, AppConnectorOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AppConnector 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<AppConnector, AppConnectorOperationMetadata> retrievedResponse = appConnectorsServiceClient.PollOnceReportStatus(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
AppConnector retrievedResult = retrievedResponse.Result;
}
ReportStatus(ReportStatusRequest, CallSettings)
public virtual Operation<AppConnector, AppConnectorOperationMetadata> ReportStatus(ReportStatusRequest request, CallSettings callSettings = null)
Report status for a given connector.
Parameters | |
---|---|
Name | Description |
request | ReportStatusRequest 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 |
Operation<AppConnector, AppConnectorOperationMetadata> | The RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = AppConnectorsServiceClient.Create();
// Initialize request argument(s)
ReportStatusRequest request = new ReportStatusRequest
{
AppConnectorAsAppConnectorName = AppConnectorName.FromProjectLocationAppConnector("[PROJECT]", "[LOCATION]", "[APP_CONNECTOR]"),
ResourceInfo = new ResourceInfo(),
RequestId = "",
ValidateOnly = false,
};
// Make the request
Operation<AppConnector, AppConnectorOperationMetadata> response = appConnectorsServiceClient.ReportStatus(request);
// Poll until the returned long-running operation is complete
Operation<AppConnector, AppConnectorOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AppConnector 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<AppConnector, AppConnectorOperationMetadata> retrievedResponse = appConnectorsServiceClient.PollOnceReportStatus(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
AppConnector retrievedResult = retrievedResponse.Result;
}
ReportStatus(String, ResourceInfo, CallSettings)
public virtual Operation<AppConnector, AppConnectorOperationMetadata> ReportStatus(string appConnector, ResourceInfo resourceInfo, CallSettings callSettings = null)
Report status for a given connector.
Parameters | |
---|---|
Name | Description |
appConnector | String Required. BeyondCorp Connector name using the form:
|
resourceInfo | ResourceInfo Required. Resource info of the connector. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<AppConnector, AppConnectorOperationMetadata> | The RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = AppConnectorsServiceClient.Create();
// Initialize request argument(s)
string appConnector = "projects/[PROJECT]/locations/[LOCATION]/appConnectors/[APP_CONNECTOR]";
ResourceInfo resourceInfo = new ResourceInfo();
// Make the request
Operation<AppConnector, AppConnectorOperationMetadata> response = appConnectorsServiceClient.ReportStatus(appConnector, resourceInfo);
// Poll until the returned long-running operation is complete
Operation<AppConnector, AppConnectorOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AppConnector 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<AppConnector, AppConnectorOperationMetadata> retrievedResponse = appConnectorsServiceClient.PollOnceReportStatus(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
AppConnector retrievedResult = retrievedResponse.Result;
}
ReportStatusAsync(AppConnectorName, ResourceInfo, CallSettings)
public virtual Task<Operation<AppConnector, AppConnectorOperationMetadata>> ReportStatusAsync(AppConnectorName appConnector, ResourceInfo resourceInfo, CallSettings callSettings = null)
Report status for a given connector.
Parameters | |
---|---|
Name | Description |
appConnector | AppConnectorName Required. BeyondCorp Connector name using the form:
|
resourceInfo | ResourceInfo Required. Resource info of the connector. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<AppConnector, AppConnectorOperationMetadata>> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
AppConnectorName appConnector = AppConnectorName.FromProjectLocationAppConnector("[PROJECT]", "[LOCATION]", "[APP_CONNECTOR]");
ResourceInfo resourceInfo = new ResourceInfo();
// Make the request
Operation<AppConnector, AppConnectorOperationMetadata> response = await appConnectorsServiceClient.ReportStatusAsync(appConnector, resourceInfo);
// Poll until the returned long-running operation is complete
Operation<AppConnector, AppConnectorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AppConnector 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<AppConnector, AppConnectorOperationMetadata> retrievedResponse = await appConnectorsServiceClient.PollOnceReportStatusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
AppConnector retrievedResult = retrievedResponse.Result;
}
ReportStatusAsync(AppConnectorName, ResourceInfo, CancellationToken)
public virtual Task<Operation<AppConnector, AppConnectorOperationMetadata>> ReportStatusAsync(AppConnectorName appConnector, ResourceInfo resourceInfo, CancellationToken cancellationToken)
Report status for a given connector.
Parameters | |
---|---|
Name | Description |
appConnector | AppConnectorName Required. BeyondCorp Connector name using the form:
|
resourceInfo | ResourceInfo Required. Resource info of the connector. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<AppConnector, AppConnectorOperationMetadata>> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
AppConnectorName appConnector = AppConnectorName.FromProjectLocationAppConnector("[PROJECT]", "[LOCATION]", "[APP_CONNECTOR]");
ResourceInfo resourceInfo = new ResourceInfo();
// Make the request
Operation<AppConnector, AppConnectorOperationMetadata> response = await appConnectorsServiceClient.ReportStatusAsync(appConnector, resourceInfo);
// Poll until the returned long-running operation is complete
Operation<AppConnector, AppConnectorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AppConnector 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<AppConnector, AppConnectorOperationMetadata> retrievedResponse = await appConnectorsServiceClient.PollOnceReportStatusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
AppConnector retrievedResult = retrievedResponse.Result;
}
ReportStatusAsync(ReportStatusRequest, CallSettings)
public virtual Task<Operation<AppConnector, AppConnectorOperationMetadata>> ReportStatusAsync(ReportStatusRequest request, CallSettings callSettings = null)
Report status for a given connector.
Parameters | |
---|---|
Name | Description |
request | ReportStatusRequest 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 |
Task<Operation<AppConnector, AppConnectorOperationMetadata>> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
ReportStatusRequest request = new ReportStatusRequest
{
AppConnectorAsAppConnectorName = AppConnectorName.FromProjectLocationAppConnector("[PROJECT]", "[LOCATION]", "[APP_CONNECTOR]"),
ResourceInfo = new ResourceInfo(),
RequestId = "",
ValidateOnly = false,
};
// Make the request
Operation<AppConnector, AppConnectorOperationMetadata> response = await appConnectorsServiceClient.ReportStatusAsync(request);
// Poll until the returned long-running operation is complete
Operation<AppConnector, AppConnectorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AppConnector 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<AppConnector, AppConnectorOperationMetadata> retrievedResponse = await appConnectorsServiceClient.PollOnceReportStatusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
AppConnector retrievedResult = retrievedResponse.Result;
}
ReportStatusAsync(ReportStatusRequest, CancellationToken)
public virtual Task<Operation<AppConnector, AppConnectorOperationMetadata>> ReportStatusAsync(ReportStatusRequest request, CancellationToken cancellationToken)
Report status for a given connector.
Parameters | |
---|---|
Name | Description |
request | ReportStatusRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<AppConnector, AppConnectorOperationMetadata>> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
ReportStatusRequest request = new ReportStatusRequest
{
AppConnectorAsAppConnectorName = AppConnectorName.FromProjectLocationAppConnector("[PROJECT]", "[LOCATION]", "[APP_CONNECTOR]"),
ResourceInfo = new ResourceInfo(),
RequestId = "",
ValidateOnly = false,
};
// Make the request
Operation<AppConnector, AppConnectorOperationMetadata> response = await appConnectorsServiceClient.ReportStatusAsync(request);
// Poll until the returned long-running operation is complete
Operation<AppConnector, AppConnectorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AppConnector 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<AppConnector, AppConnectorOperationMetadata> retrievedResponse = await appConnectorsServiceClient.PollOnceReportStatusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
AppConnector retrievedResult = retrievedResponse.Result;
}
ReportStatusAsync(String, ResourceInfo, CallSettings)
public virtual Task<Operation<AppConnector, AppConnectorOperationMetadata>> ReportStatusAsync(string appConnector, ResourceInfo resourceInfo, CallSettings callSettings = null)
Report status for a given connector.
Parameters | |
---|---|
Name | Description |
appConnector | String Required. BeyondCorp Connector name using the form:
|
resourceInfo | ResourceInfo Required. Resource info of the connector. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<AppConnector, AppConnectorOperationMetadata>> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
string appConnector = "projects/[PROJECT]/locations/[LOCATION]/appConnectors/[APP_CONNECTOR]";
ResourceInfo resourceInfo = new ResourceInfo();
// Make the request
Operation<AppConnector, AppConnectorOperationMetadata> response = await appConnectorsServiceClient.ReportStatusAsync(appConnector, resourceInfo);
// Poll until the returned long-running operation is complete
Operation<AppConnector, AppConnectorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AppConnector 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<AppConnector, AppConnectorOperationMetadata> retrievedResponse = await appConnectorsServiceClient.PollOnceReportStatusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
AppConnector retrievedResult = retrievedResponse.Result;
}
ReportStatusAsync(String, ResourceInfo, CancellationToken)
public virtual Task<Operation<AppConnector, AppConnectorOperationMetadata>> ReportStatusAsync(string appConnector, ResourceInfo resourceInfo, CancellationToken cancellationToken)
Report status for a given connector.
Parameters | |
---|---|
Name | Description |
appConnector | String Required. BeyondCorp Connector name using the form:
|
resourceInfo | ResourceInfo Required. Resource info of the connector. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<AppConnector, AppConnectorOperationMetadata>> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
string appConnector = "projects/[PROJECT]/locations/[LOCATION]/appConnectors/[APP_CONNECTOR]";
ResourceInfo resourceInfo = new ResourceInfo();
// Make the request
Operation<AppConnector, AppConnectorOperationMetadata> response = await appConnectorsServiceClient.ReportStatusAsync(appConnector, resourceInfo);
// Poll until the returned long-running operation is complete
Operation<AppConnector, AppConnectorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AppConnector 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<AppConnector, AppConnectorOperationMetadata> retrievedResponse = await appConnectorsServiceClient.PollOnceReportStatusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
AppConnector retrievedResult = retrievedResponse.Result;
}
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.
UpdateAppConnector(AppConnector, FieldMask, CallSettings)
public virtual Operation<AppConnector, AppConnectorOperationMetadata> UpdateAppConnector(AppConnector appConnector, FieldMask updateMask, CallSettings callSettings = null)
Updates the parameters of a single AppConnector.
Parameters | |
---|---|
Name | Description |
appConnector | AppConnector Required. AppConnector message with updated fields. Only supported fields specified in update_mask are updated. |
updateMask | FieldMask Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from [BeyondCorp.AppConnector]:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<AppConnector, AppConnectorOperationMetadata> | The RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = AppConnectorsServiceClient.Create();
// Initialize request argument(s)
AppConnector appConnector = new AppConnector();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<AppConnector, AppConnectorOperationMetadata> response = appConnectorsServiceClient.UpdateAppConnector(appConnector, updateMask);
// Poll until the returned long-running operation is complete
Operation<AppConnector, AppConnectorOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AppConnector 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<AppConnector, AppConnectorOperationMetadata> retrievedResponse = appConnectorsServiceClient.PollOnceUpdateAppConnector(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
AppConnector retrievedResult = retrievedResponse.Result;
}
UpdateAppConnector(UpdateAppConnectorRequest, CallSettings)
public virtual Operation<AppConnector, AppConnectorOperationMetadata> UpdateAppConnector(UpdateAppConnectorRequest request, CallSettings callSettings = null)
Updates the parameters of a single AppConnector.
Parameters | |
---|---|
Name | Description |
request | UpdateAppConnectorRequest 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 |
Operation<AppConnector, AppConnectorOperationMetadata> | The RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = AppConnectorsServiceClient.Create();
// Initialize request argument(s)
UpdateAppConnectorRequest request = new UpdateAppConnectorRequest
{
UpdateMask = new FieldMask(),
AppConnector = new AppConnector(),
RequestId = "",
ValidateOnly = false,
};
// Make the request
Operation<AppConnector, AppConnectorOperationMetadata> response = appConnectorsServiceClient.UpdateAppConnector(request);
// Poll until the returned long-running operation is complete
Operation<AppConnector, AppConnectorOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AppConnector 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<AppConnector, AppConnectorOperationMetadata> retrievedResponse = appConnectorsServiceClient.PollOnceUpdateAppConnector(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
AppConnector retrievedResult = retrievedResponse.Result;
}
UpdateAppConnectorAsync(AppConnector, FieldMask, CallSettings)
public virtual Task<Operation<AppConnector, AppConnectorOperationMetadata>> UpdateAppConnectorAsync(AppConnector appConnector, FieldMask updateMask, CallSettings callSettings = null)
Updates the parameters of a single AppConnector.
Parameters | |
---|---|
Name | Description |
appConnector | AppConnector Required. AppConnector message with updated fields. Only supported fields specified in update_mask are updated. |
updateMask | FieldMask Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from [BeyondCorp.AppConnector]:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<AppConnector, AppConnectorOperationMetadata>> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
AppConnector appConnector = new AppConnector();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<AppConnector, AppConnectorOperationMetadata> response = await appConnectorsServiceClient.UpdateAppConnectorAsync(appConnector, updateMask);
// Poll until the returned long-running operation is complete
Operation<AppConnector, AppConnectorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AppConnector 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<AppConnector, AppConnectorOperationMetadata> retrievedResponse = await appConnectorsServiceClient.PollOnceUpdateAppConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
AppConnector retrievedResult = retrievedResponse.Result;
}
UpdateAppConnectorAsync(AppConnector, FieldMask, CancellationToken)
public virtual Task<Operation<AppConnector, AppConnectorOperationMetadata>> UpdateAppConnectorAsync(AppConnector appConnector, FieldMask updateMask, CancellationToken cancellationToken)
Updates the parameters of a single AppConnector.
Parameters | |
---|---|
Name | Description |
appConnector | AppConnector Required. AppConnector message with updated fields. Only supported fields specified in update_mask are updated. |
updateMask | FieldMask Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from [BeyondCorp.AppConnector]:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<AppConnector, AppConnectorOperationMetadata>> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
AppConnector appConnector = new AppConnector();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<AppConnector, AppConnectorOperationMetadata> response = await appConnectorsServiceClient.UpdateAppConnectorAsync(appConnector, updateMask);
// Poll until the returned long-running operation is complete
Operation<AppConnector, AppConnectorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AppConnector 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<AppConnector, AppConnectorOperationMetadata> retrievedResponse = await appConnectorsServiceClient.PollOnceUpdateAppConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
AppConnector retrievedResult = retrievedResponse.Result;
}
UpdateAppConnectorAsync(UpdateAppConnectorRequest, CallSettings)
public virtual Task<Operation<AppConnector, AppConnectorOperationMetadata>> UpdateAppConnectorAsync(UpdateAppConnectorRequest request, CallSettings callSettings = null)
Updates the parameters of a single AppConnector.
Parameters | |
---|---|
Name | Description |
request | UpdateAppConnectorRequest 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 |
Task<Operation<AppConnector, AppConnectorOperationMetadata>> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateAppConnectorRequest request = new UpdateAppConnectorRequest
{
UpdateMask = new FieldMask(),
AppConnector = new AppConnector(),
RequestId = "",
ValidateOnly = false,
};
// Make the request
Operation<AppConnector, AppConnectorOperationMetadata> response = await appConnectorsServiceClient.UpdateAppConnectorAsync(request);
// Poll until the returned long-running operation is complete
Operation<AppConnector, AppConnectorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AppConnector 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<AppConnector, AppConnectorOperationMetadata> retrievedResponse = await appConnectorsServiceClient.PollOnceUpdateAppConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
AppConnector retrievedResult = retrievedResponse.Result;
}
UpdateAppConnectorAsync(UpdateAppConnectorRequest, CancellationToken)
public virtual Task<Operation<AppConnector, AppConnectorOperationMetadata>> UpdateAppConnectorAsync(UpdateAppConnectorRequest request, CancellationToken cancellationToken)
Updates the parameters of a single AppConnector.
Parameters | |
---|---|
Name | Description |
request | UpdateAppConnectorRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<AppConnector, AppConnectorOperationMetadata>> | A Task containing the RPC response. |
// Create client
AppConnectorsServiceClient appConnectorsServiceClient = await AppConnectorsServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateAppConnectorRequest request = new UpdateAppConnectorRequest
{
UpdateMask = new FieldMask(),
AppConnector = new AppConnector(),
RequestId = "",
ValidateOnly = false,
};
// Make the request
Operation<AppConnector, AppConnectorOperationMetadata> response = await appConnectorsServiceClient.UpdateAppConnectorAsync(request);
// Poll until the returned long-running operation is complete
Operation<AppConnector, AppConnectorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AppConnector 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<AppConnector, AppConnectorOperationMetadata> retrievedResponse = await appConnectorsServiceClient.PollOnceUpdateAppConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
AppConnector retrievedResult = retrievedResponse.Result;
}