Class OrganizationsResource.LocationsResource.WorkloadsResource.ViolationsResource
The "violations" collection of methods.
Inherited Members
Namespace: Google.Apis.Assuredworkloads.v1beta1
Assembly: Google.Apis.Assuredworkloads.v1beta1.dll
Syntax
public class OrganizationsResource.LocationsResource.WorkloadsResource.ViolationsResource
Constructors
ViolationsResource(IClientService)
Constructs a new resource.
Declaration
public ViolationsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Acknowledge(GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest, string)
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.
Declaration
public virtual OrganizationsResource.LocationsResource.WorkloadsResource.ViolationsResource.AcknowledgeRequest Acknowledge(GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest | body | The body of the request. |
| string | name | Required. The resource name of the violation to acknowledge. Format:
|
Returns
| Type | Description |
|---|---|
| OrganizationsResource.LocationsResource.WorkloadsResource.ViolationsResource.AcknowledgeRequest |
Get(string)
Retrieves an Assured Workloads violation by its resource name.
Declaration
public virtual OrganizationsResource.LocationsResource.WorkloadsResource.ViolationsResource.GetRequest Get(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The resource name of the violation to retrieve (that is, the value of
|
Returns
| Type | Description |
|---|---|
| OrganizationsResource.LocationsResource.WorkloadsResource.ViolationsResource.GetRequest |
List(string)
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/-
Declaration
public virtual OrganizationsResource.LocationsResource.WorkloadsResource.ViolationsResource.ListRequest List(string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The workload to list violations for. To list violations across all workloads in an
organization, use |
Returns
| Type | Description |
|---|---|
| OrganizationsResource.LocationsResource.WorkloadsResource.ViolationsResource.ListRequest |