Assured Workloads v1beta1 API - Class AssuredWorkloadsServiceClientImpl (2.0.0-beta08)

public sealed class AssuredWorkloadsServiceClientImpl : AssuredWorkloadsServiceClient

Reference documentation and code samples for the Assured Workloads v1beta1 API class AssuredWorkloadsServiceClientImpl.

AssuredWorkloadsService client wrapper implementation, for convenient use.

Inheritance

object > AssuredWorkloadsServiceClient > AssuredWorkloadsServiceClientImpl

Namespace

Google.Cloud.AssuredWorkloads.V1Beta1

Assembly

Google.Cloud.AssuredWorkloads.V1Beta1.dll

Remarks

Service to manage AssuredWorkloads.

Constructors

AssuredWorkloadsServiceClientImpl(AssuredWorkloadsServiceClient, AssuredWorkloadsServiceSettings, ILogger)

public AssuredWorkloadsServiceClientImpl(AssuredWorkloadsService.AssuredWorkloadsServiceClient grpcClient, AssuredWorkloadsServiceSettings settings, ILogger logger)

Constructs a client wrapper for the AssuredWorkloadsService service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient AssuredWorkloadsServiceAssuredWorkloadsServiceClient

The underlying gRPC client.

settings AssuredWorkloadsServiceSettings

The base AssuredWorkloadsServiceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

CreateWorkloadOperationsClient

public override OperationsClient CreateWorkloadOperationsClient { get; }

The long-running operations client for CreateWorkload.

Property Value
Type Description
OperationsClient
Overrides

GrpcClient

public override AssuredWorkloadsService.AssuredWorkloadsServiceClient GrpcClient { get; }

The underlying gRPC AssuredWorkloadsService client

Property Value
Type Description
AssuredWorkloadsServiceAssuredWorkloadsServiceClient
Overrides

Methods

AnalyzeWorkloadMove(AnalyzeWorkloadMoveRequest, CallSettings)

public override AnalyzeWorkloadMoveResponse AnalyzeWorkloadMove(AnalyzeWorkloadMoveRequest request, CallSettings callSettings = null)

Analyze if the source Assured Workloads can be moved to the target Assured Workload

Parameters
Name Description
request AnalyzeWorkloadMoveRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AnalyzeWorkloadMoveResponse

The RPC response.

Overrides

AnalyzeWorkloadMoveAsync(AnalyzeWorkloadMoveRequest, CallSettings)

public override Task<AnalyzeWorkloadMoveResponse> AnalyzeWorkloadMoveAsync(AnalyzeWorkloadMoveRequest request, CallSettings callSettings = null)

Analyze if the source Assured Workloads can be moved to the target Assured Workload

Parameters
Name Description
request AnalyzeWorkloadMoveRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskAnalyzeWorkloadMoveResponse

A Task containing the RPC response.

Overrides

CreateWorkload(CreateWorkloadRequest, CallSettings)

public override Operation<Workload, CreateWorkloadOperationMetadata> CreateWorkload(CreateWorkloadRequest request, CallSettings callSettings = null)

Creates Assured Workload.

Parameters
Name Description
request CreateWorkloadRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationWorkloadCreateWorkloadOperationMetadata

The RPC response.

Overrides

CreateWorkloadAsync(CreateWorkloadRequest, CallSettings)

public override Task<Operation<Workload, CreateWorkloadOperationMetadata>> CreateWorkloadAsync(CreateWorkloadRequest request, CallSettings callSettings = null)

Creates Assured Workload.

Parameters
Name Description
request CreateWorkloadRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationWorkloadCreateWorkloadOperationMetadata

A Task containing the RPC response.

Overrides

DeleteWorkload(DeleteWorkloadRequest, CallSettings)

public override void DeleteWorkload(DeleteWorkloadRequest request, CallSettings callSettings = null)

Deletes the workload. Make sure that workload's direct children are already in a deleted state, otherwise the request will fail with a FAILED_PRECONDITION error. In addition to assuredworkloads.workload.delete permission, the user should also have orgpolicy.policy.set permission on the deleted folder to remove Assured Workloads OrgPolicies.

Parameters
Name Description
request DeleteWorkloadRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteWorkloadAsync(DeleteWorkloadRequest, CallSettings)

public override Task DeleteWorkloadAsync(DeleteWorkloadRequest request, CallSettings callSettings = null)

Deletes the workload. Make sure that workload's direct children are already in a deleted state, otherwise the request will fail with a FAILED_PRECONDITION error. In addition to assuredworkloads.workload.delete permission, the user should also have orgpolicy.policy.set permission on the deleted folder to remove Assured Workloads OrgPolicies.

Parameters
Name Description
request DeleteWorkloadRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Overrides

GetWorkload(GetWorkloadRequest, CallSettings)

public override Workload GetWorkload(GetWorkloadRequest request, CallSettings callSettings = null)

Gets Assured Workload associated with a CRM Node

Parameters
Name Description
request GetWorkloadRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Workload

The RPC response.

Overrides

GetWorkloadAsync(GetWorkloadRequest, CallSettings)

public override Task<Workload> GetWorkloadAsync(GetWorkloadRequest request, CallSettings callSettings = null)

Gets Assured Workload associated with a CRM Node

Parameters
Name Description
request GetWorkloadRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskWorkload

A Task containing the RPC response.

Overrides

ListWorkloads(ListWorkloadsRequest, CallSettings)

public override PagedEnumerable<ListWorkloadsResponse, Workload> ListWorkloads(ListWorkloadsRequest request, CallSettings callSettings = null)

Lists Assured Workloads under a CRM Node.

Parameters
Name Description
request ListWorkloadsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListWorkloadsResponseWorkload

A pageable sequence of Workload resources.

Overrides

ListWorkloadsAsync(ListWorkloadsRequest, CallSettings)

public override PagedAsyncEnumerable<ListWorkloadsResponse, Workload> ListWorkloadsAsync(ListWorkloadsRequest request, CallSettings callSettings = null)

Lists Assured Workloads under a CRM Node.

Parameters
Name Description
request ListWorkloadsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListWorkloadsResponseWorkload

A pageable asynchronous sequence of Workload resources.

Overrides

RestrictAllowedResources(RestrictAllowedResourcesRequest, CallSettings)

public override RestrictAllowedResourcesResponse RestrictAllowedResources(RestrictAllowedResourcesRequest request, CallSettings callSettings = null)

Restrict the list of resources allowed in the Workload environment. The current list of allowed products can be found at https://cloud.google.com/assured-workloads/docs/supported-products In addition to assuredworkloads.workload.update permission, the user should also have orgpolicy.policy.set permission on the folder resource to use this functionality.

Parameters
Name Description
request RestrictAllowedResourcesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RestrictAllowedResourcesResponse

The RPC response.

Overrides

RestrictAllowedResourcesAsync(RestrictAllowedResourcesRequest, CallSettings)

public override Task<RestrictAllowedResourcesResponse> RestrictAllowedResourcesAsync(RestrictAllowedResourcesRequest request, CallSettings callSettings = null)

Restrict the list of resources allowed in the Workload environment. The current list of allowed products can be found at https://cloud.google.com/assured-workloads/docs/supported-products In addition to assuredworkloads.workload.update permission, the user should also have orgpolicy.policy.set permission on the folder resource to use this functionality.

Parameters
Name Description
request RestrictAllowedResourcesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRestrictAllowedResourcesResponse

A Task containing the RPC response.

Overrides

UpdateWorkload(UpdateWorkloadRequest, CallSettings)

public override Workload UpdateWorkload(UpdateWorkloadRequest request, CallSettings callSettings = null)

Updates an existing workload. Currently allows updating of workload display_name and labels. For force updates don't set etag field in the Workload. Only one update operation per workload can be in progress.

Parameters
Name Description
request UpdateWorkloadRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Workload

The RPC response.

Overrides

UpdateWorkloadAsync(UpdateWorkloadRequest, CallSettings)

public override Task<Workload> UpdateWorkloadAsync(UpdateWorkloadRequest request, CallSettings callSettings = null)

Updates an existing workload. Currently allows updating of workload display_name and labels. For force updates don't set etag field in the Workload. Only one update operation per workload can be in progress.

Parameters
Name Description
request UpdateWorkloadRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskWorkload

A Task containing the RPC response.

Overrides