class OrganizationsLocationsWorkloadsViolations extends Resource (View source)

The "violations" collection of methods.

Typical usage is:

 $assuredworkloadsService = new Google\Service\Assuredworkloads(...);
 $violations = $assuredworkloadsService->organizations_locations_workloads_violations;

Methods

acknowledge(string $name, GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest $postBody, array $optParams = [])

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. (violations.acknowledge)

get(string $name, array $optParams = [])

Retrieves Assured Workload Violation based on ID. (violations.get)

listOrganizationsLocationsWorkloadsViolations(string $parent, array $optParams = [])

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.

Details

GoogleCloudAssuredworkloadsV1AcknowledgeViolationResponse acknowledge(string $name, GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest $postBody, array $optParams = [])

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. (violations.acknowledge)

Parameters

string $name

Required. The resource name of the Violation to acknowledge. Format: organizations/{organization}/locations/{location}/worklo ads/{workload}/violations/{violation}

GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudAssuredworkloadsV1AcknowledgeViolationResponse

Exceptions

Exception

GoogleCloudAssuredworkloadsV1Violation get(string $name, array $optParams = [])

Retrieves Assured Workload Violation based on ID. (violations.get)

Parameters

string $name

Required. The resource name of the Violation to fetch (ie. Violation.name). Format: organizations/{organization}/locations/{locatio n}/workloads/{workload}/violations/{violation}

array $optParams

Optional parameters.

Return Value

GoogleCloudAssuredworkloadsV1Violation

Exceptions

Exception

GoogleCloudAssuredworkloadsV1ListViolationsResponse listOrganizationsLocationsWorkloadsViolations(string $parent, array $optParams = [])

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/- (violations.listOrganizationsLocationsWorkloadsViolations)

Parameters

string $parent

Required. The Workload name. Format organizations/{org_id}/locations/{location}/workloads/{workload}.

array $optParams

Optional parameters.

Return Value

GoogleCloudAssuredworkloadsV1ListViolationsResponse

Exceptions

Exception