public sealed class WorkloadManagerClientImpl : WorkloadManagerClientReference documentation and code samples for the Workload Manager v1 API class WorkloadManagerClientImpl.
WorkloadManager client wrapper implementation, for convenient use.
Namespace
Google.Cloud.WorkloadManager.V1Assembly
Google.Cloud.WorkloadManager.V1.dll
Remarks
The Workload Manager provides various tools to deploy, validate and observe your workloads running on Google Cloud.
Constructors
WorkloadManagerClientImpl(WorkloadManagerClient, WorkloadManagerSettings, ILogger)
public WorkloadManagerClientImpl(WorkloadManager.WorkloadManagerClient grpcClient, WorkloadManagerSettings settings, ILogger logger)Constructs a client wrapper for the WorkloadManager service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
WorkloadManagerWorkloadManagerClientThe underlying gRPC client. |
settings |
WorkloadManagerSettingsThe base WorkloadManagerSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
CreateEvaluationOperationsClient
public override OperationsClient CreateEvaluationOperationsClient { get; }The long-running operations client for CreateEvaluation.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DeleteEvaluationOperationsClient
public override OperationsClient DeleteEvaluationOperationsClient { get; }The long-running operations client for DeleteEvaluation.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DeleteExecutionOperationsClient
public override OperationsClient DeleteExecutionOperationsClient { get; }The long-running operations client for DeleteExecution.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public override WorkloadManager.WorkloadManagerClient GrpcClient { get; }The underlying gRPC WorkloadManager client
| Property Value | |
|---|---|
| Type | Description |
WorkloadManagerWorkloadManagerClient |
|
LocationsClient
public override LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
RunEvaluationOperationsClient
public override OperationsClient RunEvaluationOperationsClient { get; }The long-running operations client for RunEvaluation.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
UpdateEvaluationOperationsClient
public override OperationsClient UpdateEvaluationOperationsClient { get; }The long-running operations client for UpdateEvaluation.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
Methods
CreateEvaluation(CreateEvaluationRequest, CallSettings)
public override Operation<Evaluation, OperationMetadata> CreateEvaluation(CreateEvaluationRequest request, CallSettings callSettings = null)Creates a new Evaluation in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateEvaluationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEvaluationOperationMetadata |
The RPC response. |
CreateEvaluationAsync(CreateEvaluationRequest, CallSettings)
public override Task<Operation<Evaluation, OperationMetadata>> CreateEvaluationAsync(CreateEvaluationRequest request, CallSettings callSettings = null)Creates a new Evaluation in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateEvaluationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEvaluationOperationMetadata |
A Task containing the RPC response. |
DeleteEvaluation(DeleteEvaluationRequest, CallSettings)
public override Operation<Empty, OperationMetadata> DeleteEvaluation(DeleteEvaluationRequest request, CallSettings callSettings = null)Deletes a single Evaluation.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteEvaluationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
DeleteEvaluationAsync(DeleteEvaluationRequest, CallSettings)
public override Task<Operation<Empty, OperationMetadata>> DeleteEvaluationAsync(DeleteEvaluationRequest request, CallSettings callSettings = null)Deletes a single Evaluation.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteEvaluationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
DeleteExecution(DeleteExecutionRequest, CallSettings)
public override Operation<Empty, OperationMetadata> DeleteExecution(DeleteExecutionRequest request, CallSettings callSettings = null)Deletes a single Execution.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteExecutionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
DeleteExecutionAsync(DeleteExecutionRequest, CallSettings)
public override Task<Operation<Empty, OperationMetadata>> DeleteExecutionAsync(DeleteExecutionRequest request, CallSettings callSettings = null)Deletes a single Execution.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteExecutionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
GetEvaluation(GetEvaluationRequest, CallSettings)
public override Evaluation GetEvaluation(GetEvaluationRequest request, CallSettings callSettings = null)Gets details of a single Evaluation.
| Parameters | |
|---|---|
| Name | Description |
request |
GetEvaluationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Evaluation |
The RPC response. |
GetEvaluationAsync(GetEvaluationRequest, CallSettings)
public override Task<Evaluation> GetEvaluationAsync(GetEvaluationRequest request, CallSettings callSettings = null)Gets details of a single Evaluation.
| Parameters | |
|---|---|
| Name | Description |
request |
GetEvaluationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluation |
A Task containing the RPC response. |
GetExecution(GetExecutionRequest, CallSettings)
public override Execution GetExecution(GetExecutionRequest request, CallSettings callSettings = null)Gets details of a single Execution.
| Parameters | |
|---|---|
| Name | Description |
request |
GetExecutionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Execution |
The RPC response. |
GetExecutionAsync(GetExecutionRequest, CallSettings)
public override Task<Execution> GetExecutionAsync(GetExecutionRequest request, CallSettings callSettings = null)Gets details of a single Execution.
| Parameters | |
|---|---|
| Name | Description |
request |
GetExecutionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskExecution |
A Task containing the RPC response. |
ListEvaluations(ListEvaluationsRequest, CallSettings)
public override PagedEnumerable<ListEvaluationsResponse, Evaluation> ListEvaluations(ListEvaluationsRequest request, CallSettings callSettings = null)Lists Evaluations in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListEvaluationsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListEvaluationsResponseEvaluation |
A pageable sequence of Evaluation resources. |
ListEvaluationsAsync(ListEvaluationsRequest, CallSettings)
public override PagedAsyncEnumerable<ListEvaluationsResponse, Evaluation> ListEvaluationsAsync(ListEvaluationsRequest request, CallSettings callSettings = null)Lists Evaluations in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListEvaluationsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListEvaluationsResponseEvaluation |
A pageable asynchronous sequence of Evaluation resources. |
ListExecutionResults(ListExecutionResultsRequest, CallSettings)
public override PagedEnumerable<ListExecutionResultsResponse, ExecutionResult> ListExecutionResults(ListExecutionResultsRequest request, CallSettings callSettings = null)Lists the result of a single evaluation.
| Parameters | |
|---|---|
| Name | Description |
request |
ListExecutionResultsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListExecutionResultsResponseExecutionResult |
A pageable sequence of ExecutionResult resources. |
ListExecutionResultsAsync(ListExecutionResultsRequest, CallSettings)
public override PagedAsyncEnumerable<ListExecutionResultsResponse, ExecutionResult> ListExecutionResultsAsync(ListExecutionResultsRequest request, CallSettings callSettings = null)Lists the result of a single evaluation.
| Parameters | |
|---|---|
| Name | Description |
request |
ListExecutionResultsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListExecutionResultsResponseExecutionResult |
A pageable asynchronous sequence of ExecutionResult resources. |
ListExecutions(ListExecutionsRequest, CallSettings)
public override PagedEnumerable<ListExecutionsResponse, Execution> ListExecutions(ListExecutionsRequest request, CallSettings callSettings = null)Lists Executions in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListExecutionsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListExecutionsResponseExecution |
A pageable sequence of Execution resources. |
ListExecutionsAsync(ListExecutionsRequest, CallSettings)
public override PagedAsyncEnumerable<ListExecutionsResponse, Execution> ListExecutionsAsync(ListExecutionsRequest request, CallSettings callSettings = null)Lists Executions in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListExecutionsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListExecutionsResponseExecution |
A pageable asynchronous sequence of Execution resources. |
ListRules(ListRulesRequest, CallSettings)
public override ListRulesResponse ListRules(ListRulesRequest request, CallSettings callSettings = null)Lists rules in a given project.
| Parameters | |
|---|---|
| Name | Description |
request |
ListRulesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ListRulesResponse |
The RPC response. |
ListRulesAsync(ListRulesRequest, CallSettings)
public override Task<ListRulesResponse> ListRulesAsync(ListRulesRequest request, CallSettings callSettings = null)Lists rules in a given project.
| Parameters | |
|---|---|
| Name | Description |
request |
ListRulesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskListRulesResponse |
A Task containing the RPC response. |
ListScannedResources(ListScannedResourcesRequest, CallSettings)
public override PagedEnumerable<ListScannedResourcesResponse, ScannedResource> ListScannedResources(ListScannedResourcesRequest request, CallSettings callSettings = null)List all scanned resources for a single Execution.
| Parameters | |
|---|---|
| Name | Description |
request |
ListScannedResourcesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListScannedResourcesResponseScannedResource |
A pageable sequence of ScannedResource resources. |
ListScannedResourcesAsync(ListScannedResourcesRequest, CallSettings)
public override PagedAsyncEnumerable<ListScannedResourcesResponse, ScannedResource> ListScannedResourcesAsync(ListScannedResourcesRequest request, CallSettings callSettings = null)List all scanned resources for a single Execution.
| Parameters | |
|---|---|
| Name | Description |
request |
ListScannedResourcesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListScannedResourcesResponseScannedResource |
A pageable asynchronous sequence of ScannedResource resources. |
RunEvaluation(RunEvaluationRequest, CallSettings)
public override Operation<Execution, OperationMetadata> RunEvaluation(RunEvaluationRequest request, CallSettings callSettings = null)Creates a new Execution in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
RunEvaluationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationExecutionOperationMetadata |
The RPC response. |
RunEvaluationAsync(RunEvaluationRequest, CallSettings)
public override Task<Operation<Execution, OperationMetadata>> RunEvaluationAsync(RunEvaluationRequest request, CallSettings callSettings = null)Creates a new Execution in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
RunEvaluationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationExecutionOperationMetadata |
A Task containing the RPC response. |
UpdateEvaluation(UpdateEvaluationRequest, CallSettings)
public override Operation<Evaluation, OperationMetadata> UpdateEvaluation(UpdateEvaluationRequest request, CallSettings callSettings = null)Updates the parameters of a single Evaluation.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateEvaluationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEvaluationOperationMetadata |
The RPC response. |
UpdateEvaluationAsync(UpdateEvaluationRequest, CallSettings)
public override Task<Operation<Evaluation, OperationMetadata>> UpdateEvaluationAsync(UpdateEvaluationRequest request, CallSettings callSettings = null)Updates the parameters of a single Evaluation.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateEvaluationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEvaluationOperationMetadata |
A Task containing the RPC response. |