public abstract class OnlineEvaluatorServiceClientReference documentation and code samples for the Vertex AI v1beta1 API class OnlineEvaluatorServiceClient.
OnlineEvaluatorService client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.AIPlatform.V1Beta1Assembly
Google.Cloud.AIPlatform.V1Beta1.dll
Remarks
This service is used to create and manage Vertex AI OnlineEvaluators.
Properties
ActivateOnlineEvaluatorOperationsClient
public virtual OperationsClient ActivateOnlineEvaluatorOperationsClient { get; }The long-running operations client for ActivateOnlineEvaluator.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
CreateOnlineEvaluatorOperationsClient
public virtual OperationsClient CreateOnlineEvaluatorOperationsClient { get; }The long-running operations client for CreateOnlineEvaluator.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DefaultEndpoint
public static string DefaultEndpoint { get; }The default endpoint for the OnlineEvaluatorService service, which is a host of "aiplatform.googleapis.com" and a port of 443.
| Property Value | |
|---|---|
| Type | Description |
string |
|
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }The default OnlineEvaluatorService scopes.
| Property Value | |
|---|---|
| Type | Description |
IReadOnlyListstring |
|
The default OnlineEvaluatorService scopes are:
DeleteOnlineEvaluatorOperationsClient
public virtual OperationsClient DeleteOnlineEvaluatorOperationsClient { get; }The long-running operations client for DeleteOnlineEvaluator.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public virtual OnlineEvaluatorService.OnlineEvaluatorServiceClient GrpcClient { get; }The underlying gRPC OnlineEvaluatorService client
| Property Value | |
|---|---|
| Type | Description |
OnlineEvaluatorServiceOnlineEvaluatorServiceClient |
|
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 |
|
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }The service metadata associated with this client type.
| Property Value | |
|---|---|
| Type | Description |
ServiceMetadata |
|
SuspendOnlineEvaluatorOperationsClient
public virtual OperationsClient SuspendOnlineEvaluatorOperationsClient { get; }The long-running operations client for SuspendOnlineEvaluator.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
UpdateOnlineEvaluatorOperationsClient
public virtual OperationsClient UpdateOnlineEvaluatorOperationsClient { get; }The long-running operations client for UpdateOnlineEvaluator.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
Methods
ActivateOnlineEvaluator(ActivateOnlineEvaluatorRequest, CallSettings)
public virtual Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> ActivateOnlineEvaluator(ActivateOnlineEvaluatorRequest request, CallSettings callSettings = null)Activates an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
request |
ActivateOnlineEvaluatorRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOnlineEvaluatorActivateOnlineEvaluatorOperationMetadata |
The RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
// Initialize request argument(s)
ActivateOnlineEvaluatorRequest request = new ActivateOnlineEvaluatorRequest
{
OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
};
// Make the request
Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> response = onlineEvaluatorServiceClient.ActivateOnlineEvaluator(request);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> retrievedResponse = onlineEvaluatorServiceClient.PollOnceActivateOnlineEvaluator(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
ActivateOnlineEvaluator(OnlineEvaluatorName, CallSettings)
public virtual Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> ActivateOnlineEvaluator(OnlineEvaluatorName name, CallSettings callSettings = null)Activates an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
name |
OnlineEvaluatorNameRequired. The name of the OnlineEvaluator to activate. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOnlineEvaluatorActivateOnlineEvaluatorOperationMetadata |
The RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
// Initialize request argument(s)
OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
// Make the request
Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> response = onlineEvaluatorServiceClient.ActivateOnlineEvaluator(name);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> retrievedResponse = onlineEvaluatorServiceClient.PollOnceActivateOnlineEvaluator(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
ActivateOnlineEvaluator(string, CallSettings)
public virtual Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> ActivateOnlineEvaluator(string name, CallSettings callSettings = null)Activates an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the OnlineEvaluator to activate. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOnlineEvaluatorActivateOnlineEvaluatorOperationMetadata |
The RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
// Make the request
Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> response = onlineEvaluatorServiceClient.ActivateOnlineEvaluator(name);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> retrievedResponse = onlineEvaluatorServiceClient.PollOnceActivateOnlineEvaluator(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
ActivateOnlineEvaluatorAsync(ActivateOnlineEvaluatorRequest, CallSettings)
public virtual Task<Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata>> ActivateOnlineEvaluatorAsync(ActivateOnlineEvaluatorRequest request, CallSettings callSettings = null)Activates an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
request |
ActivateOnlineEvaluatorRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOnlineEvaluatorActivateOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
ActivateOnlineEvaluatorRequest request = new ActivateOnlineEvaluatorRequest
{
OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
};
// Make the request
Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.ActivateOnlineEvaluatorAsync(request);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceActivateOnlineEvaluatorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
ActivateOnlineEvaluatorAsync(ActivateOnlineEvaluatorRequest, CancellationToken)
public virtual Task<Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata>> ActivateOnlineEvaluatorAsync(ActivateOnlineEvaluatorRequest request, CancellationToken cancellationToken)Activates an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
request |
ActivateOnlineEvaluatorRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOnlineEvaluatorActivateOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
ActivateOnlineEvaluatorRequest request = new ActivateOnlineEvaluatorRequest
{
OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
};
// Make the request
Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.ActivateOnlineEvaluatorAsync(request);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceActivateOnlineEvaluatorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
ActivateOnlineEvaluatorAsync(OnlineEvaluatorName, CallSettings)
public virtual Task<Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata>> ActivateOnlineEvaluatorAsync(OnlineEvaluatorName name, CallSettings callSettings = null)Activates an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
name |
OnlineEvaluatorNameRequired. The name of the OnlineEvaluator to activate. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOnlineEvaluatorActivateOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
// Make the request
Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.ActivateOnlineEvaluatorAsync(name);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceActivateOnlineEvaluatorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
ActivateOnlineEvaluatorAsync(OnlineEvaluatorName, CancellationToken)
public virtual Task<Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata>> ActivateOnlineEvaluatorAsync(OnlineEvaluatorName name, CancellationToken cancellationToken)Activates an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
name |
OnlineEvaluatorNameRequired. The name of the OnlineEvaluator to activate. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOnlineEvaluatorActivateOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
// Make the request
Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.ActivateOnlineEvaluatorAsync(name);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceActivateOnlineEvaluatorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
ActivateOnlineEvaluatorAsync(string, CallSettings)
public virtual Task<Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata>> ActivateOnlineEvaluatorAsync(string name, CallSettings callSettings = null)Activates an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the OnlineEvaluator to activate. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOnlineEvaluatorActivateOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
// Make the request
Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.ActivateOnlineEvaluatorAsync(name);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceActivateOnlineEvaluatorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
ActivateOnlineEvaluatorAsync(string, CancellationToken)
public virtual Task<Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata>> ActivateOnlineEvaluatorAsync(string name, CancellationToken cancellationToken)Activates an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the OnlineEvaluator to activate. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOnlineEvaluatorActivateOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
// Make the request
Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.ActivateOnlineEvaluatorAsync(name);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceActivateOnlineEvaluatorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
Create()
public static OnlineEvaluatorServiceClient Create()Synchronously creates a OnlineEvaluatorServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use OnlineEvaluatorServiceClientBuilder.
| Returns | |
|---|---|
| Type | Description |
OnlineEvaluatorServiceClient |
The created OnlineEvaluatorServiceClient. |
CreateAsync(CancellationToken)
public static Task<OnlineEvaluatorServiceClient> CreateAsync(CancellationToken cancellationToken = default)Asynchronously creates a OnlineEvaluatorServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use OnlineEvaluatorServiceClientBuilder.
| Parameter | |
|---|---|
| Name | Description |
cancellationToken |
CancellationTokenThe CancellationToken to use while creating the client. |
| Returns | |
|---|---|
| Type | Description |
TaskOnlineEvaluatorServiceClient |
The task representing the created OnlineEvaluatorServiceClient. |
CreateOnlineEvaluator(LocationName, OnlineEvaluator, CallSettings)
public virtual Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> CreateOnlineEvaluator(LocationName parent, OnlineEvaluator onlineEvaluator, CallSettings callSettings = null)Creates an OnlineEvaluator in the given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent resource where the OnlineEvaluator will be created. Format: projects/{project}/locations/{location}. |
onlineEvaluator |
OnlineEvaluatorRequired. The OnlineEvaluator to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOnlineEvaluatorCreateOnlineEvaluatorOperationMetadata |
The RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
OnlineEvaluator onlineEvaluator = new OnlineEvaluator();
// Make the request
Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> response = onlineEvaluatorServiceClient.CreateOnlineEvaluator(parent, onlineEvaluator);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> retrievedResponse = onlineEvaluatorServiceClient.PollOnceCreateOnlineEvaluator(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
CreateOnlineEvaluator(CreateOnlineEvaluatorRequest, CallSettings)
public virtual Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> CreateOnlineEvaluator(CreateOnlineEvaluatorRequest request, CallSettings callSettings = null)Creates an OnlineEvaluator in the given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateOnlineEvaluatorRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOnlineEvaluatorCreateOnlineEvaluatorOperationMetadata |
The RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
// Initialize request argument(s)
CreateOnlineEvaluatorRequest request = new CreateOnlineEvaluatorRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
OnlineEvaluator = new OnlineEvaluator(),
};
// Make the request
Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> response = onlineEvaluatorServiceClient.CreateOnlineEvaluator(request);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> retrievedResponse = onlineEvaluatorServiceClient.PollOnceCreateOnlineEvaluator(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
CreateOnlineEvaluator(string, OnlineEvaluator, CallSettings)
public virtual Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> CreateOnlineEvaluator(string parent, OnlineEvaluator onlineEvaluator, CallSettings callSettings = null)Creates an OnlineEvaluator in the given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource where the OnlineEvaluator will be created. Format: projects/{project}/locations/{location}. |
onlineEvaluator |
OnlineEvaluatorRequired. The OnlineEvaluator to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOnlineEvaluatorCreateOnlineEvaluatorOperationMetadata |
The RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
OnlineEvaluator onlineEvaluator = new OnlineEvaluator();
// Make the request
Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> response = onlineEvaluatorServiceClient.CreateOnlineEvaluator(parent, onlineEvaluator);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> retrievedResponse = onlineEvaluatorServiceClient.PollOnceCreateOnlineEvaluator(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
CreateOnlineEvaluatorAsync(LocationName, OnlineEvaluator, CallSettings)
public virtual Task<Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata>> CreateOnlineEvaluatorAsync(LocationName parent, OnlineEvaluator onlineEvaluator, CallSettings callSettings = null)Creates an OnlineEvaluator in the given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent resource where the OnlineEvaluator will be created. Format: projects/{project}/locations/{location}. |
onlineEvaluator |
OnlineEvaluatorRequired. The OnlineEvaluator to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOnlineEvaluatorCreateOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
OnlineEvaluator onlineEvaluator = new OnlineEvaluator();
// Make the request
Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.CreateOnlineEvaluatorAsync(parent, onlineEvaluator);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceCreateOnlineEvaluatorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
CreateOnlineEvaluatorAsync(LocationName, OnlineEvaluator, CancellationToken)
public virtual Task<Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata>> CreateOnlineEvaluatorAsync(LocationName parent, OnlineEvaluator onlineEvaluator, CancellationToken cancellationToken)Creates an OnlineEvaluator in the given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent resource where the OnlineEvaluator will be created. Format: projects/{project}/locations/{location}. |
onlineEvaluator |
OnlineEvaluatorRequired. The OnlineEvaluator to create. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOnlineEvaluatorCreateOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
OnlineEvaluator onlineEvaluator = new OnlineEvaluator();
// Make the request
Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.CreateOnlineEvaluatorAsync(parent, onlineEvaluator);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceCreateOnlineEvaluatorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
CreateOnlineEvaluatorAsync(CreateOnlineEvaluatorRequest, CallSettings)
public virtual Task<Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata>> CreateOnlineEvaluatorAsync(CreateOnlineEvaluatorRequest request, CallSettings callSettings = null)Creates an OnlineEvaluator in the given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateOnlineEvaluatorRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOnlineEvaluatorCreateOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
CreateOnlineEvaluatorRequest request = new CreateOnlineEvaluatorRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
OnlineEvaluator = new OnlineEvaluator(),
};
// Make the request
Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.CreateOnlineEvaluatorAsync(request);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceCreateOnlineEvaluatorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
CreateOnlineEvaluatorAsync(CreateOnlineEvaluatorRequest, CancellationToken)
public virtual Task<Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata>> CreateOnlineEvaluatorAsync(CreateOnlineEvaluatorRequest request, CancellationToken cancellationToken)Creates an OnlineEvaluator in the given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateOnlineEvaluatorRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOnlineEvaluatorCreateOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
CreateOnlineEvaluatorRequest request = new CreateOnlineEvaluatorRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
OnlineEvaluator = new OnlineEvaluator(),
};
// Make the request
Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.CreateOnlineEvaluatorAsync(request);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceCreateOnlineEvaluatorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
CreateOnlineEvaluatorAsync(string, OnlineEvaluator, CallSettings)
public virtual Task<Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata>> CreateOnlineEvaluatorAsync(string parent, OnlineEvaluator onlineEvaluator, CallSettings callSettings = null)Creates an OnlineEvaluator in the given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource where the OnlineEvaluator will be created. Format: projects/{project}/locations/{location}. |
onlineEvaluator |
OnlineEvaluatorRequired. The OnlineEvaluator to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOnlineEvaluatorCreateOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
OnlineEvaluator onlineEvaluator = new OnlineEvaluator();
// Make the request
Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.CreateOnlineEvaluatorAsync(parent, onlineEvaluator);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceCreateOnlineEvaluatorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
CreateOnlineEvaluatorAsync(string, OnlineEvaluator, CancellationToken)
public virtual Task<Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata>> CreateOnlineEvaluatorAsync(string parent, OnlineEvaluator onlineEvaluator, CancellationToken cancellationToken)Creates an OnlineEvaluator in the given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource where the OnlineEvaluator will be created. Format: projects/{project}/locations/{location}. |
onlineEvaluator |
OnlineEvaluatorRequired. The OnlineEvaluator to create. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOnlineEvaluatorCreateOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
OnlineEvaluator onlineEvaluator = new OnlineEvaluator();
// Make the request
Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.CreateOnlineEvaluatorAsync(parent, onlineEvaluator);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceCreateOnlineEvaluatorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
DeleteOnlineEvaluator(DeleteOnlineEvaluatorRequest, CallSettings)
public virtual Operation<Empty, DeleteOnlineEvaluatorOperationMetadata> DeleteOnlineEvaluator(DeleteOnlineEvaluatorRequest request, CallSettings callSettings = null)Deletes an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteOnlineEvaluatorRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyDeleteOnlineEvaluatorOperationMetadata |
The RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
// Initialize request argument(s)
DeleteOnlineEvaluatorRequest request = new DeleteOnlineEvaluatorRequest
{
OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
};
// Make the request
Operation<Empty, DeleteOnlineEvaluatorOperationMetadata> response = onlineEvaluatorServiceClient.DeleteOnlineEvaluator(request);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOnlineEvaluatorOperationMetadata> 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, DeleteOnlineEvaluatorOperationMetadata> retrievedResponse = onlineEvaluatorServiceClient.PollOnceDeleteOnlineEvaluator(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;
}
DeleteOnlineEvaluator(OnlineEvaluatorName, CallSettings)
public virtual Operation<Empty, DeleteOnlineEvaluatorOperationMetadata> DeleteOnlineEvaluator(OnlineEvaluatorName name, CallSettings callSettings = null)Deletes an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
name |
OnlineEvaluatorNameRequired. The name of the OnlineEvaluator to delete. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyDeleteOnlineEvaluatorOperationMetadata |
The RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
// Initialize request argument(s)
OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
// Make the request
Operation<Empty, DeleteOnlineEvaluatorOperationMetadata> response = onlineEvaluatorServiceClient.DeleteOnlineEvaluator(name);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOnlineEvaluatorOperationMetadata> 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, DeleteOnlineEvaluatorOperationMetadata> retrievedResponse = onlineEvaluatorServiceClient.PollOnceDeleteOnlineEvaluator(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;
}
DeleteOnlineEvaluator(string, CallSettings)
public virtual Operation<Empty, DeleteOnlineEvaluatorOperationMetadata> DeleteOnlineEvaluator(string name, CallSettings callSettings = null)Deletes an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the OnlineEvaluator to delete. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyDeleteOnlineEvaluatorOperationMetadata |
The RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
// Make the request
Operation<Empty, DeleteOnlineEvaluatorOperationMetadata> response = onlineEvaluatorServiceClient.DeleteOnlineEvaluator(name);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOnlineEvaluatorOperationMetadata> 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, DeleteOnlineEvaluatorOperationMetadata> retrievedResponse = onlineEvaluatorServiceClient.PollOnceDeleteOnlineEvaluator(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;
}
DeleteOnlineEvaluatorAsync(DeleteOnlineEvaluatorRequest, CallSettings)
public virtual Task<Operation<Empty, DeleteOnlineEvaluatorOperationMetadata>> DeleteOnlineEvaluatorAsync(DeleteOnlineEvaluatorRequest request, CallSettings callSettings = null)Deletes an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteOnlineEvaluatorRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteOnlineEvaluatorRequest request = new DeleteOnlineEvaluatorRequest
{
OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
};
// Make the request
Operation<Empty, DeleteOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.DeleteOnlineEvaluatorAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOnlineEvaluatorOperationMetadata> 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, DeleteOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceDeleteOnlineEvaluatorAsync(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;
}
DeleteOnlineEvaluatorAsync(DeleteOnlineEvaluatorRequest, CancellationToken)
public virtual Task<Operation<Empty, DeleteOnlineEvaluatorOperationMetadata>> DeleteOnlineEvaluatorAsync(DeleteOnlineEvaluatorRequest request, CancellationToken cancellationToken)Deletes an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteOnlineEvaluatorRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteOnlineEvaluatorRequest request = new DeleteOnlineEvaluatorRequest
{
OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
};
// Make the request
Operation<Empty, DeleteOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.DeleteOnlineEvaluatorAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOnlineEvaluatorOperationMetadata> 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, DeleteOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceDeleteOnlineEvaluatorAsync(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;
}
DeleteOnlineEvaluatorAsync(OnlineEvaluatorName, CallSettings)
public virtual Task<Operation<Empty, DeleteOnlineEvaluatorOperationMetadata>> DeleteOnlineEvaluatorAsync(OnlineEvaluatorName name, CallSettings callSettings = null)Deletes an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
name |
OnlineEvaluatorNameRequired. The name of the OnlineEvaluator to delete. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
// Make the request
Operation<Empty, DeleteOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.DeleteOnlineEvaluatorAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOnlineEvaluatorOperationMetadata> 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, DeleteOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceDeleteOnlineEvaluatorAsync(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;
}
DeleteOnlineEvaluatorAsync(OnlineEvaluatorName, CancellationToken)
public virtual Task<Operation<Empty, DeleteOnlineEvaluatorOperationMetadata>> DeleteOnlineEvaluatorAsync(OnlineEvaluatorName name, CancellationToken cancellationToken)Deletes an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
name |
OnlineEvaluatorNameRequired. The name of the OnlineEvaluator to delete. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
// Make the request
Operation<Empty, DeleteOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.DeleteOnlineEvaluatorAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOnlineEvaluatorOperationMetadata> 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, DeleteOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceDeleteOnlineEvaluatorAsync(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;
}
DeleteOnlineEvaluatorAsync(string, CallSettings)
public virtual Task<Operation<Empty, DeleteOnlineEvaluatorOperationMetadata>> DeleteOnlineEvaluatorAsync(string name, CallSettings callSettings = null)Deletes an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the OnlineEvaluator to delete. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
// Make the request
Operation<Empty, DeleteOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.DeleteOnlineEvaluatorAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOnlineEvaluatorOperationMetadata> 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, DeleteOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceDeleteOnlineEvaluatorAsync(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;
}
DeleteOnlineEvaluatorAsync(string, CancellationToken)
public virtual Task<Operation<Empty, DeleteOnlineEvaluatorOperationMetadata>> DeleteOnlineEvaluatorAsync(string name, CancellationToken cancellationToken)Deletes an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the OnlineEvaluator to delete. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
// Make the request
Operation<Empty, DeleteOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.DeleteOnlineEvaluatorAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOnlineEvaluatorOperationMetadata> 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, DeleteOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceDeleteOnlineEvaluatorAsync(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;
}
GetOnlineEvaluator(GetOnlineEvaluatorRequest, CallSettings)
public virtual OnlineEvaluator GetOnlineEvaluator(GetOnlineEvaluatorRequest request, CallSettings callSettings = null)Gets details of an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
request |
GetOnlineEvaluatorRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OnlineEvaluator |
The RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
// Initialize request argument(s)
GetOnlineEvaluatorRequest request = new GetOnlineEvaluatorRequest
{
OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
};
// Make the request
OnlineEvaluator response = onlineEvaluatorServiceClient.GetOnlineEvaluator(request);
GetOnlineEvaluator(OnlineEvaluatorName, CallSettings)
public virtual OnlineEvaluator GetOnlineEvaluator(OnlineEvaluatorName name, CallSettings callSettings = null)Gets details of an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
name |
OnlineEvaluatorNameRequired. The name of the OnlineEvaluator to retrieve. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OnlineEvaluator |
The RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
// Initialize request argument(s)
OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
// Make the request
OnlineEvaluator response = onlineEvaluatorServiceClient.GetOnlineEvaluator(name);
GetOnlineEvaluator(string, CallSettings)
public virtual OnlineEvaluator GetOnlineEvaluator(string name, CallSettings callSettings = null)Gets details of an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the OnlineEvaluator to retrieve. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OnlineEvaluator |
The RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
// Make the request
OnlineEvaluator response = onlineEvaluatorServiceClient.GetOnlineEvaluator(name);
GetOnlineEvaluatorAsync(GetOnlineEvaluatorRequest, CallSettings)
public virtual Task<OnlineEvaluator> GetOnlineEvaluatorAsync(GetOnlineEvaluatorRequest request, CallSettings callSettings = null)Gets details of an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
request |
GetOnlineEvaluatorRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOnlineEvaluator |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
GetOnlineEvaluatorRequest request = new GetOnlineEvaluatorRequest
{
OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
};
// Make the request
OnlineEvaluator response = await onlineEvaluatorServiceClient.GetOnlineEvaluatorAsync(request);
GetOnlineEvaluatorAsync(GetOnlineEvaluatorRequest, CancellationToken)
public virtual Task<OnlineEvaluator> GetOnlineEvaluatorAsync(GetOnlineEvaluatorRequest request, CancellationToken cancellationToken)Gets details of an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
request |
GetOnlineEvaluatorRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOnlineEvaluator |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
GetOnlineEvaluatorRequest request = new GetOnlineEvaluatorRequest
{
OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
};
// Make the request
OnlineEvaluator response = await onlineEvaluatorServiceClient.GetOnlineEvaluatorAsync(request);
GetOnlineEvaluatorAsync(OnlineEvaluatorName, CallSettings)
public virtual Task<OnlineEvaluator> GetOnlineEvaluatorAsync(OnlineEvaluatorName name, CallSettings callSettings = null)Gets details of an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
name |
OnlineEvaluatorNameRequired. The name of the OnlineEvaluator to retrieve. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOnlineEvaluator |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
// Make the request
OnlineEvaluator response = await onlineEvaluatorServiceClient.GetOnlineEvaluatorAsync(name);
GetOnlineEvaluatorAsync(OnlineEvaluatorName, CancellationToken)
public virtual Task<OnlineEvaluator> GetOnlineEvaluatorAsync(OnlineEvaluatorName name, CancellationToken cancellationToken)Gets details of an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
name |
OnlineEvaluatorNameRequired. The name of the OnlineEvaluator to retrieve. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOnlineEvaluator |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
// Make the request
OnlineEvaluator response = await onlineEvaluatorServiceClient.GetOnlineEvaluatorAsync(name);
GetOnlineEvaluatorAsync(string, CallSettings)
public virtual Task<OnlineEvaluator> GetOnlineEvaluatorAsync(string name, CallSettings callSettings = null)Gets details of an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the OnlineEvaluator to retrieve. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOnlineEvaluator |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
// Make the request
OnlineEvaluator response = await onlineEvaluatorServiceClient.GetOnlineEvaluatorAsync(name);
GetOnlineEvaluatorAsync(string, CancellationToken)
public virtual Task<OnlineEvaluator> GetOnlineEvaluatorAsync(string name, CancellationToken cancellationToken)Gets details of an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the OnlineEvaluator to retrieve. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOnlineEvaluator |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
// Make the request
OnlineEvaluator response = await onlineEvaluatorServiceClient.GetOnlineEvaluatorAsync(name);
ListOnlineEvaluators(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListOnlineEvaluatorsResponse, OnlineEvaluator> ListOnlineEvaluators(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the OnlineEvaluators for the given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent resource of the OnlineEvaluators to list. Format: projects/{project}/locations/{location}. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListOnlineEvaluatorsResponseOnlineEvaluator |
A pageable sequence of OnlineEvaluator resources. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListOnlineEvaluatorsResponse, OnlineEvaluator> response = onlineEvaluatorServiceClient.ListOnlineEvaluators(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (OnlineEvaluator 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 (ListOnlineEvaluatorsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (OnlineEvaluator 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<OnlineEvaluator> 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 (OnlineEvaluator 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;
ListOnlineEvaluators(ListOnlineEvaluatorsRequest, CallSettings)
public virtual PagedEnumerable<ListOnlineEvaluatorsResponse, OnlineEvaluator> ListOnlineEvaluators(ListOnlineEvaluatorsRequest request, CallSettings callSettings = null)Lists the OnlineEvaluators for the given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListOnlineEvaluatorsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListOnlineEvaluatorsResponseOnlineEvaluator |
A pageable sequence of OnlineEvaluator resources. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
// Initialize request argument(s)
ListOnlineEvaluatorsRequest request = new ListOnlineEvaluatorsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListOnlineEvaluatorsResponse, OnlineEvaluator> response = onlineEvaluatorServiceClient.ListOnlineEvaluators(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (OnlineEvaluator 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 (ListOnlineEvaluatorsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (OnlineEvaluator 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<OnlineEvaluator> 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 (OnlineEvaluator 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;
ListOnlineEvaluators(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListOnlineEvaluatorsResponse, OnlineEvaluator> ListOnlineEvaluators(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the OnlineEvaluators for the given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource of the OnlineEvaluators to list. Format: projects/{project}/locations/{location}. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListOnlineEvaluatorsResponseOnlineEvaluator |
A pageable sequence of OnlineEvaluator resources. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListOnlineEvaluatorsResponse, OnlineEvaluator> response = onlineEvaluatorServiceClient.ListOnlineEvaluators(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (OnlineEvaluator 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 (ListOnlineEvaluatorsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (OnlineEvaluator 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<OnlineEvaluator> 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 (OnlineEvaluator 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;
ListOnlineEvaluatorsAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListOnlineEvaluatorsResponse, OnlineEvaluator> ListOnlineEvaluatorsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the OnlineEvaluators for the given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent resource of the OnlineEvaluators to list. Format: projects/{project}/locations/{location}. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListOnlineEvaluatorsResponseOnlineEvaluator |
A pageable asynchronous sequence of OnlineEvaluator resources. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListOnlineEvaluatorsResponse, OnlineEvaluator> response = onlineEvaluatorServiceClient.ListOnlineEvaluatorsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (OnlineEvaluator item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListOnlineEvaluatorsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (OnlineEvaluator 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<OnlineEvaluator> 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 (OnlineEvaluator 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;
ListOnlineEvaluatorsAsync(ListOnlineEvaluatorsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListOnlineEvaluatorsResponse, OnlineEvaluator> ListOnlineEvaluatorsAsync(ListOnlineEvaluatorsRequest request, CallSettings callSettings = null)Lists the OnlineEvaluators for the given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListOnlineEvaluatorsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListOnlineEvaluatorsResponseOnlineEvaluator |
A pageable asynchronous sequence of OnlineEvaluator resources. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
ListOnlineEvaluatorsRequest request = new ListOnlineEvaluatorsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListOnlineEvaluatorsResponse, OnlineEvaluator> response = onlineEvaluatorServiceClient.ListOnlineEvaluatorsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (OnlineEvaluator item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListOnlineEvaluatorsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (OnlineEvaluator 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<OnlineEvaluator> 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 (OnlineEvaluator 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;
ListOnlineEvaluatorsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListOnlineEvaluatorsResponse, OnlineEvaluator> ListOnlineEvaluatorsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the OnlineEvaluators for the given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource of the OnlineEvaluators to list. Format: projects/{project}/locations/{location}. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListOnlineEvaluatorsResponseOnlineEvaluator |
A pageable asynchronous sequence of OnlineEvaluator resources. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListOnlineEvaluatorsResponse, OnlineEvaluator> response = onlineEvaluatorServiceClient.ListOnlineEvaluatorsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (OnlineEvaluator item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListOnlineEvaluatorsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (OnlineEvaluator 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<OnlineEvaluator> 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 (OnlineEvaluator 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;
PollOnceActivateOnlineEvaluator(string, CallSettings)
public virtual Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> PollOnceActivateOnlineEvaluator(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of
ActivateOnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOnlineEvaluatorActivateOnlineEvaluatorOperationMetadata |
The result of polling the operation. |
PollOnceActivateOnlineEvaluatorAsync(string, CallSettings)
public virtual Task<Operation<OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata>> PollOnceActivateOnlineEvaluatorAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
ActivateOnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOnlineEvaluatorActivateOnlineEvaluatorOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateOnlineEvaluator(string, CallSettings)
public virtual Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> PollOnceCreateOnlineEvaluator(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of CreateOnlineEvaluator
.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOnlineEvaluatorCreateOnlineEvaluatorOperationMetadata |
The result of polling the operation. |
PollOnceCreateOnlineEvaluatorAsync(string, CallSettings)
public virtual Task<Operation<OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata>> PollOnceCreateOnlineEvaluatorAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
CreateOnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOnlineEvaluatorCreateOnlineEvaluatorOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteOnlineEvaluator(string, CallSettings)
public virtual Operation<Empty, DeleteOnlineEvaluatorOperationMetadata> PollOnceDeleteOnlineEvaluator(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of DeleteOnlineEvaluator
.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyDeleteOnlineEvaluatorOperationMetadata |
The result of polling the operation. |
PollOnceDeleteOnlineEvaluatorAsync(string, CallSettings)
public virtual Task<Operation<Empty, DeleteOnlineEvaluatorOperationMetadata>> PollOnceDeleteOnlineEvaluatorAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
DeleteOnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteOnlineEvaluatorOperationMetadata |
A task representing the result of polling the operation. |
PollOnceSuspendOnlineEvaluator(string, CallSettings)
public virtual Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> PollOnceSuspendOnlineEvaluator(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of
SuspendOnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOnlineEvaluatorSuspendOnlineEvaluatorOperationMetadata |
The result of polling the operation. |
PollOnceSuspendOnlineEvaluatorAsync(string, CallSettings)
public virtual Task<Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata>> PollOnceSuspendOnlineEvaluatorAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
SuspendOnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOnlineEvaluatorSuspendOnlineEvaluatorOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateOnlineEvaluator(string, CallSettings)
public virtual Operation<OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> PollOnceUpdateOnlineEvaluator(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of UpdateOnlineEvaluator
.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOnlineEvaluatorUpdateOnlineEvaluatorOperationMetadata |
The result of polling the operation. |
PollOnceUpdateOnlineEvaluatorAsync(string, CallSettings)
public virtual Task<Operation<OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata>> PollOnceUpdateOnlineEvaluatorAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
UpdateOnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOnlineEvaluatorUpdateOnlineEvaluatorOperationMetadata |
A task representing the result of polling the operation. |
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
| Returns | |
|---|---|
| Type | Description |
Task |
A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
SuspendOnlineEvaluator(OnlineEvaluatorName, CallSettings)
public virtual Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> SuspendOnlineEvaluator(OnlineEvaluatorName name, CallSettings callSettings = null)Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't run any evaluations until it is activated again.
| Parameters | |
|---|---|
| Name | Description |
name |
OnlineEvaluatorNameRequired. The name of the OnlineEvaluator to suspend. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOnlineEvaluatorSuspendOnlineEvaluatorOperationMetadata |
The RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
// Initialize request argument(s)
OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
// Make the request
Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> response = onlineEvaluatorServiceClient.SuspendOnlineEvaluator(name);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> retrievedResponse = onlineEvaluatorServiceClient.PollOnceSuspendOnlineEvaluator(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
SuspendOnlineEvaluator(SuspendOnlineEvaluatorRequest, CallSettings)
public virtual Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> SuspendOnlineEvaluator(SuspendOnlineEvaluatorRequest request, CallSettings callSettings = null)Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't run any evaluations until it is activated again.
| Parameters | |
|---|---|
| Name | Description |
request |
SuspendOnlineEvaluatorRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOnlineEvaluatorSuspendOnlineEvaluatorOperationMetadata |
The RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
// Initialize request argument(s)
SuspendOnlineEvaluatorRequest request = new SuspendOnlineEvaluatorRequest
{
OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
};
// Make the request
Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> response = onlineEvaluatorServiceClient.SuspendOnlineEvaluator(request);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> retrievedResponse = onlineEvaluatorServiceClient.PollOnceSuspendOnlineEvaluator(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
SuspendOnlineEvaluator(string, CallSettings)
public virtual Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> SuspendOnlineEvaluator(string name, CallSettings callSettings = null)Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't run any evaluations until it is activated again.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the OnlineEvaluator to suspend. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOnlineEvaluatorSuspendOnlineEvaluatorOperationMetadata |
The RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
// Make the request
Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> response = onlineEvaluatorServiceClient.SuspendOnlineEvaluator(name);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> retrievedResponse = onlineEvaluatorServiceClient.PollOnceSuspendOnlineEvaluator(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
SuspendOnlineEvaluatorAsync(OnlineEvaluatorName, CallSettings)
public virtual Task<Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata>> SuspendOnlineEvaluatorAsync(OnlineEvaluatorName name, CallSettings callSettings = null)Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't run any evaluations until it is activated again.
| Parameters | |
|---|---|
| Name | Description |
name |
OnlineEvaluatorNameRequired. The name of the OnlineEvaluator to suspend. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOnlineEvaluatorSuspendOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
// Make the request
Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.SuspendOnlineEvaluatorAsync(name);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceSuspendOnlineEvaluatorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
SuspendOnlineEvaluatorAsync(OnlineEvaluatorName, CancellationToken)
public virtual Task<Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata>> SuspendOnlineEvaluatorAsync(OnlineEvaluatorName name, CancellationToken cancellationToken)Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't run any evaluations until it is activated again.
| Parameters | |
|---|---|
| Name | Description |
name |
OnlineEvaluatorNameRequired. The name of the OnlineEvaluator to suspend. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOnlineEvaluatorSuspendOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
// Make the request
Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.SuspendOnlineEvaluatorAsync(name);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceSuspendOnlineEvaluatorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
SuspendOnlineEvaluatorAsync(SuspendOnlineEvaluatorRequest, CallSettings)
public virtual Task<Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata>> SuspendOnlineEvaluatorAsync(SuspendOnlineEvaluatorRequest request, CallSettings callSettings = null)Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't run any evaluations until it is activated again.
| Parameters | |
|---|---|
| Name | Description |
request |
SuspendOnlineEvaluatorRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOnlineEvaluatorSuspendOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
SuspendOnlineEvaluatorRequest request = new SuspendOnlineEvaluatorRequest
{
OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
};
// Make the request
Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.SuspendOnlineEvaluatorAsync(request);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceSuspendOnlineEvaluatorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
SuspendOnlineEvaluatorAsync(SuspendOnlineEvaluatorRequest, CancellationToken)
public virtual Task<Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata>> SuspendOnlineEvaluatorAsync(SuspendOnlineEvaluatorRequest request, CancellationToken cancellationToken)Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't run any evaluations until it is activated again.
| Parameters | |
|---|---|
| Name | Description |
request |
SuspendOnlineEvaluatorRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOnlineEvaluatorSuspendOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
SuspendOnlineEvaluatorRequest request = new SuspendOnlineEvaluatorRequest
{
OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
};
// Make the request
Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.SuspendOnlineEvaluatorAsync(request);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceSuspendOnlineEvaluatorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
SuspendOnlineEvaluatorAsync(string, CallSettings)
public virtual Task<Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata>> SuspendOnlineEvaluatorAsync(string name, CallSettings callSettings = null)Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't run any evaluations until it is activated again.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the OnlineEvaluator to suspend. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOnlineEvaluatorSuspendOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
// Make the request
Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.SuspendOnlineEvaluatorAsync(name);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceSuspendOnlineEvaluatorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
SuspendOnlineEvaluatorAsync(string, CancellationToken)
public virtual Task<Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata>> SuspendOnlineEvaluatorAsync(string name, CancellationToken cancellationToken)Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't run any evaluations until it is activated again.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the OnlineEvaluator to suspend. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOnlineEvaluatorSuspendOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
// Make the request
Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.SuspendOnlineEvaluatorAsync(name);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceSuspendOnlineEvaluatorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
UpdateOnlineEvaluator(OnlineEvaluator, FieldMask, CallSettings)
public virtual Operation<OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> UpdateOnlineEvaluator(OnlineEvaluator onlineEvaluator, FieldMask updateMask, CallSettings callSettings = null)Updates the fields of an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
onlineEvaluator |
OnlineEvaluatorRequired. The OnlineEvaluator to update. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
updateMask |
FieldMaskOptional. Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOnlineEvaluatorUpdateOnlineEvaluatorOperationMetadata |
The RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
// Initialize request argument(s)
OnlineEvaluator onlineEvaluator = new OnlineEvaluator();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> response = onlineEvaluatorServiceClient.UpdateOnlineEvaluator(onlineEvaluator, updateMask);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> retrievedResponse = onlineEvaluatorServiceClient.PollOnceUpdateOnlineEvaluator(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
UpdateOnlineEvaluator(UpdateOnlineEvaluatorRequest, CallSettings)
public virtual Operation<OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> UpdateOnlineEvaluator(UpdateOnlineEvaluatorRequest request, CallSettings callSettings = null)Updates the fields of an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateOnlineEvaluatorRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOnlineEvaluatorUpdateOnlineEvaluatorOperationMetadata |
The RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
// Initialize request argument(s)
UpdateOnlineEvaluatorRequest request = new UpdateOnlineEvaluatorRequest
{
OnlineEvaluator = new OnlineEvaluator(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> response = onlineEvaluatorServiceClient.UpdateOnlineEvaluator(request);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> retrievedResponse = onlineEvaluatorServiceClient.PollOnceUpdateOnlineEvaluator(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
UpdateOnlineEvaluatorAsync(OnlineEvaluator, FieldMask, CallSettings)
public virtual Task<Operation<OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata>> UpdateOnlineEvaluatorAsync(OnlineEvaluator onlineEvaluator, FieldMask updateMask, CallSettings callSettings = null)Updates the fields of an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
onlineEvaluator |
OnlineEvaluatorRequired. The OnlineEvaluator to update. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
updateMask |
FieldMaskOptional. Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOnlineEvaluatorUpdateOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
OnlineEvaluator onlineEvaluator = new OnlineEvaluator();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.UpdateOnlineEvaluatorAsync(onlineEvaluator, updateMask);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceUpdateOnlineEvaluatorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
UpdateOnlineEvaluatorAsync(OnlineEvaluator, FieldMask, CancellationToken)
public virtual Task<Operation<OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata>> UpdateOnlineEvaluatorAsync(OnlineEvaluator onlineEvaluator, FieldMask updateMask, CancellationToken cancellationToken)Updates the fields of an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
onlineEvaluator |
OnlineEvaluatorRequired. The OnlineEvaluator to update. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. |
updateMask |
FieldMaskOptional. Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOnlineEvaluatorUpdateOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
OnlineEvaluator onlineEvaluator = new OnlineEvaluator();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.UpdateOnlineEvaluatorAsync(onlineEvaluator, updateMask);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceUpdateOnlineEvaluatorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
UpdateOnlineEvaluatorAsync(UpdateOnlineEvaluatorRequest, CallSettings)
public virtual Task<Operation<OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata>> UpdateOnlineEvaluatorAsync(UpdateOnlineEvaluatorRequest request, CallSettings callSettings = null)Updates the fields of an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateOnlineEvaluatorRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOnlineEvaluatorUpdateOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateOnlineEvaluatorRequest request = new UpdateOnlineEvaluatorRequest
{
OnlineEvaluator = new OnlineEvaluator(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.UpdateOnlineEvaluatorAsync(request);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceUpdateOnlineEvaluatorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}
UpdateOnlineEvaluatorAsync(UpdateOnlineEvaluatorRequest, CancellationToken)
public virtual Task<Operation<OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata>> UpdateOnlineEvaluatorAsync(UpdateOnlineEvaluatorRequest request, CancellationToken cancellationToken)Updates the fields of an OnlineEvaluator.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateOnlineEvaluatorRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOnlineEvaluatorUpdateOnlineEvaluatorOperationMetadata |
A Task containing the RPC response. |
// Create client
OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateOnlineEvaluatorRequest request = new UpdateOnlineEvaluatorRequest
{
OnlineEvaluator = new OnlineEvaluator(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> response = await onlineEvaluatorServiceClient.UpdateOnlineEvaluatorAsync(request);
// Poll until the returned long-running operation is complete
Operation<OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
OnlineEvaluator 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<OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> retrievedResponse = await onlineEvaluatorServiceClient.PollOnceUpdateOnlineEvaluatorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
OnlineEvaluator retrievedResult = retrievedResponse.Result;
}