public class AssuredWorkloadsServiceClient : ClientBase<AssuredWorkloadsService.AssuredWorkloadsServiceClient>
Reference documentation and code samples for the Assured Workloads v1 API class AssuredWorkloadsService.AssuredWorkloadsServiceClient.
Client for AssuredWorkloadsService
Inheritance
Object > ClientBase > ClientBase<AssuredWorkloadsService.AssuredWorkloadsServiceClient> > AssuredWorkloadsService.AssuredWorkloadsServiceClientNamespace
Google.Cloud.AssuredWorkloads.V1Assembly
Google.Cloud.AssuredWorkloads.V1.dll
Constructors
AssuredWorkloadsServiceClient()
protected AssuredWorkloadsServiceClient()
Protected parameterless constructor to allow creation of test doubles.
AssuredWorkloadsServiceClient(CallInvoker)
public AssuredWorkloadsServiceClient(CallInvoker callInvoker)
Creates a new client for AssuredWorkloadsService that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker | CallInvoker The callInvoker to use to make remote calls. |
AssuredWorkloadsServiceClient(ChannelBase)
public AssuredWorkloadsServiceClient(ChannelBase channel)
Creates a new client for AssuredWorkloadsService
Parameter | |
---|---|
Name | Description |
channel | ChannelBase The channel to use to make remote calls. |
AssuredWorkloadsServiceClient(ClientBase.ClientBaseConfiguration)
protected AssuredWorkloadsServiceClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration The client configuration. |
Methods
AcknowledgeViolation(AcknowledgeViolationRequest, CallOptions)
public virtual AcknowledgeViolationResponse AcknowledgeViolation(AcknowledgeViolationRequest request, CallOptions options)
Acknowledges an existing violation. By acknowledging a violation, users acknowledge the existence of a compliance violation in their workload and decide to ignore it due to a valid business justification. Acknowledgement is a permanent operation and it cannot be reverted.
Parameters | |
---|---|
Name | Description |
request | AcknowledgeViolationRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AcknowledgeViolationResponse | The response received from the server. |
AcknowledgeViolation(AcknowledgeViolationRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AcknowledgeViolationResponse AcknowledgeViolation(AcknowledgeViolationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Acknowledges an existing violation. By acknowledging a violation, users acknowledge the existence of a compliance violation in their workload and decide to ignore it due to a valid business justification. Acknowledgement is a permanent operation and it cannot be reverted.
Parameters | |
---|---|
Name | Description |
request | AcknowledgeViolationRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AcknowledgeViolationResponse | The response received from the server. |
AcknowledgeViolationAsync(AcknowledgeViolationRequest, CallOptions)
public virtual AsyncUnaryCall<AcknowledgeViolationResponse> AcknowledgeViolationAsync(AcknowledgeViolationRequest request, CallOptions options)
Acknowledges an existing violation. By acknowledging a violation, users acknowledge the existence of a compliance violation in their workload and decide to ignore it due to a valid business justification. Acknowledgement is a permanent operation and it cannot be reverted.
Parameters | |
---|---|
Name | Description |
request | AcknowledgeViolationRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<AcknowledgeViolationResponse> | The call object. |
AcknowledgeViolationAsync(AcknowledgeViolationRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<AcknowledgeViolationResponse> AcknowledgeViolationAsync(AcknowledgeViolationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Acknowledges an existing violation. By acknowledging a violation, users acknowledge the existence of a compliance violation in their workload and decide to ignore it due to a valid business justification. Acknowledgement is a permanent operation and it cannot be reverted.
Parameters | |
---|---|
Name | Description |
request | AcknowledgeViolationRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<AcknowledgeViolationResponse> | The call object. |
CreateOperationsClient()
public virtual Operations.OperationsClient CreateOperationsClient()
Creates a new instance of Operations.OperationsClient using the same call invoker as this client.
Returns | |
---|---|
Type | Description |
Operations.OperationsClient | A new Operations client for the same target as this client. |
CreateWorkload(CreateWorkloadRequest, CallOptions)
public virtual Operation CreateWorkload(CreateWorkloadRequest request, CallOptions options)
Creates Assured Workload.
Parameters | |
---|---|
Name | Description |
request | CreateWorkloadRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
CreateWorkload(CreateWorkloadRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation CreateWorkload(CreateWorkloadRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Creates Assured Workload.
Parameters | |
---|---|
Name | Description |
request | CreateWorkloadRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
CreateWorkloadAsync(CreateWorkloadRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> CreateWorkloadAsync(CreateWorkloadRequest request, CallOptions options)
Creates Assured Workload.
Parameters | |
---|---|
Name | Description |
request | CreateWorkloadRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
CreateWorkloadAsync(CreateWorkloadRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> CreateWorkloadAsync(CreateWorkloadRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Creates Assured Workload.
Parameters | |
---|---|
Name | Description |
request | CreateWorkloadRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
DeleteWorkload(DeleteWorkloadRequest, CallOptions)
public virtual Empty DeleteWorkload(DeleteWorkloadRequest request, CallOptions options)
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.
Parameters | |
---|---|
Name | Description |
request | DeleteWorkloadRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Empty | The response received from the server. |
DeleteWorkload(DeleteWorkloadRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Empty DeleteWorkload(DeleteWorkloadRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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.
Parameters | |
---|---|
Name | Description |
request | DeleteWorkloadRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Empty | The response received from the server. |
DeleteWorkloadAsync(DeleteWorkloadRequest, CallOptions)
public virtual AsyncUnaryCall<Empty> DeleteWorkloadAsync(DeleteWorkloadRequest request, CallOptions options)
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.
Parameters | |
---|---|
Name | Description |
request | DeleteWorkloadRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Empty> | The call object. |
DeleteWorkloadAsync(DeleteWorkloadRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Empty> DeleteWorkloadAsync(DeleteWorkloadRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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.
Parameters | |
---|---|
Name | Description |
request | DeleteWorkloadRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Empty> | The call object. |
GetViolation(GetViolationRequest, CallOptions)
public virtual Violation GetViolation(GetViolationRequest request, CallOptions options)
Retrieves Assured Workload Violation based on ID.
Parameters | |
---|---|
Name | Description |
request | GetViolationRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Violation | The response received from the server. |
GetViolation(GetViolationRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Violation GetViolation(GetViolationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Retrieves Assured Workload Violation based on ID.
Parameters | |
---|---|
Name | Description |
request | GetViolationRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Violation | The response received from the server. |
GetViolationAsync(GetViolationRequest, CallOptions)
public virtual AsyncUnaryCall<Violation> GetViolationAsync(GetViolationRequest request, CallOptions options)
Retrieves Assured Workload Violation based on ID.
Parameters | |
---|---|
Name | Description |
request | GetViolationRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Violation> | The call object. |
GetViolationAsync(GetViolationRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Violation> GetViolationAsync(GetViolationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Retrieves Assured Workload Violation based on ID.
Parameters | |
---|---|
Name | Description |
request | GetViolationRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Violation> | The call object. |
GetWorkload(GetWorkloadRequest, CallOptions)
public virtual Workload GetWorkload(GetWorkloadRequest request, CallOptions options)
Gets Assured Workload associated with a CRM Node
Parameters | |
---|---|
Name | Description |
request | GetWorkloadRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Workload | The response received from the server. |
GetWorkload(GetWorkloadRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Workload GetWorkload(GetWorkloadRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Gets Assured Workload associated with a CRM Node
Parameters | |
---|---|
Name | Description |
request | GetWorkloadRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Workload | The response received from the server. |
GetWorkloadAsync(GetWorkloadRequest, CallOptions)
public virtual AsyncUnaryCall<Workload> GetWorkloadAsync(GetWorkloadRequest request, CallOptions options)
Gets Assured Workload associated with a CRM Node
Parameters | |
---|---|
Name | Description |
request | GetWorkloadRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Workload> | The call object. |
GetWorkloadAsync(GetWorkloadRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Workload> GetWorkloadAsync(GetWorkloadRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Gets Assured Workload associated with a CRM Node
Parameters | |
---|---|
Name | Description |
request | GetWorkloadRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Workload> | The call object. |
ListViolations(ListViolationsRequest, CallOptions)
public virtual ListViolationsResponse ListViolations(ListViolationsRequest request, CallOptions options)
Lists the Violations in the AssuredWorkload Environment.
Callers may also choose to read across multiple Workloads as per
AIP-159 by using '-' (the hyphen or dash
character) as a wildcard character instead of workload-id in the parent.
Format organizations/{org_id}/locations/{location}/workloads/-
Parameters | |
---|---|
Name | Description |
request | ListViolationsRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
ListViolationsResponse | The response received from the server. |
ListViolations(ListViolationsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual ListViolationsResponse ListViolations(ListViolationsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Lists the Violations in the AssuredWorkload Environment.
Callers may also choose to read across multiple Workloads as per
AIP-159 by using '-' (the hyphen or dash
character) as a wildcard character instead of workload-id in the parent.
Format organizations/{org_id}/locations/{location}/workloads/-
Parameters | |
---|---|
Name | Description |
request | ListViolationsRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
ListViolationsResponse | The response received from the server. |
ListViolationsAsync(ListViolationsRequest, CallOptions)
public virtual AsyncUnaryCall<ListViolationsResponse> ListViolationsAsync(ListViolationsRequest request, CallOptions options)
Lists the Violations in the AssuredWorkload Environment.
Callers may also choose to read across multiple Workloads as per
AIP-159 by using '-' (the hyphen or dash
character) as a wildcard character instead of workload-id in the parent.
Format organizations/{org_id}/locations/{location}/workloads/-
Parameters | |
---|---|
Name | Description |
request | ListViolationsRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<ListViolationsResponse> | The call object. |
ListViolationsAsync(ListViolationsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<ListViolationsResponse> ListViolationsAsync(ListViolationsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Lists the Violations in the AssuredWorkload Environment.
Callers may also choose to read across multiple Workloads as per
AIP-159 by using '-' (the hyphen or dash
character) as a wildcard character instead of workload-id in the parent.
Format organizations/{org_id}/locations/{location}/workloads/-
Parameters | |
---|---|
Name | Description |
request | ListViolationsRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<ListViolationsResponse> | The call object. |
ListWorkloads(ListWorkloadsRequest, CallOptions)
public virtual ListWorkloadsResponse ListWorkloads(ListWorkloadsRequest request, CallOptions options)
Lists Assured Workloads under a CRM Node.
Parameters | |
---|---|
Name | Description |
request | ListWorkloadsRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
ListWorkloadsResponse | The response received from the server. |
ListWorkloads(ListWorkloadsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual ListWorkloadsResponse ListWorkloads(ListWorkloadsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Lists Assured Workloads under a CRM Node.
Parameters | |
---|---|
Name | Description |
request | ListWorkloadsRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
ListWorkloadsResponse | The response received from the server. |
ListWorkloadsAsync(ListWorkloadsRequest, CallOptions)
public virtual AsyncUnaryCall<ListWorkloadsResponse> ListWorkloadsAsync(ListWorkloadsRequest request, CallOptions options)
Lists Assured Workloads under a CRM Node.
Parameters | |
---|---|
Name | Description |
request | ListWorkloadsRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<ListWorkloadsResponse> | The call object. |
ListWorkloadsAsync(ListWorkloadsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<ListWorkloadsResponse> ListWorkloadsAsync(ListWorkloadsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Lists Assured Workloads under a CRM Node.
Parameters | |
---|---|
Name | Description |
request | ListWorkloadsRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<ListWorkloadsResponse> | The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override AssuredWorkloadsService.AssuredWorkloadsServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
AssuredWorkloadsService.AssuredWorkloadsServiceClient |
RestrictAllowedResources(RestrictAllowedResourcesRequest, CallOptions)
public virtual RestrictAllowedResourcesResponse RestrictAllowedResources(RestrictAllowedResourcesRequest request, CallOptions options)
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 to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
RestrictAllowedResourcesResponse | The response received from the server. |
RestrictAllowedResources(RestrictAllowedResourcesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual RestrictAllowedResourcesResponse RestrictAllowedResources(RestrictAllowedResourcesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
RestrictAllowedResourcesResponse | The response received from the server. |
RestrictAllowedResourcesAsync(RestrictAllowedResourcesRequest, CallOptions)
public virtual AsyncUnaryCall<RestrictAllowedResourcesResponse> RestrictAllowedResourcesAsync(RestrictAllowedResourcesRequest request, CallOptions options)
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 to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<RestrictAllowedResourcesResponse> | The call object. |
RestrictAllowedResourcesAsync(RestrictAllowedResourcesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<RestrictAllowedResourcesResponse> RestrictAllowedResourcesAsync(RestrictAllowedResourcesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<RestrictAllowedResourcesResponse> | The call object. |
UpdateWorkload(UpdateWorkloadRequest, CallOptions)
public virtual Workload UpdateWorkload(UpdateWorkloadRequest request, CallOptions options)
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 to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Workload | The response received from the server. |
UpdateWorkload(UpdateWorkloadRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Workload UpdateWorkload(UpdateWorkloadRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Workload | The response received from the server. |
UpdateWorkloadAsync(UpdateWorkloadRequest, CallOptions)
public virtual AsyncUnaryCall<Workload> UpdateWorkloadAsync(UpdateWorkloadRequest request, CallOptions options)
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 to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Workload> | The call object. |
UpdateWorkloadAsync(UpdateWorkloadRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Workload> UpdateWorkloadAsync(UpdateWorkloadRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Workload> | The call object. |