class OrganizationsLocationsCustomersWorkloadsViolations extends Resource (View source)

The "violations" collection of methods.

Typical usage is:

 $cloudcontrolspartnerService = new Google\Service\CloudControlsPartnerService(...);
 $violations = $cloudcontrolspartnerService->organizations_locations_customers_workloads_violations;

Methods

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

Gets details of a single Violation. (violations.get)

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

Lists Violations for a workload Callers may also choose to read across multiple Customers or for a single customer as per AIP-159 by using '-' (the hyphen or dash character) as a wildcard character instead of {customer} & {workload}.

Details

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

Gets details of a single Violation. (violations.get)

Parameters

string $name

Required. Format: organizations/{organization}/locations /{location}/customers/{customer}/workloads/{workload}/violations/{violation}

array $optParams

Optional parameters.

Return Value

Violation

Exceptions

Exception

ListViolationsResponse listOrganizationsLocationsCustomersWorkloadsViolations(string $parent, array $optParams = [])

Lists Violations for a workload Callers may also choose to read across multiple Customers or for a single customer as per AIP-159 by using '-' (the hyphen or dash character) as a wildcard character instead of {customer} & {workload}.

Format: organizations/{organization}/locations/{location}/customers/{custome r}/workloads/{workload} (violations.listOrganizationsLocationsCustomersWorkloadsViolations)

Parameters

string $parent

Required. Parent resource Format organizations/{organi zation}/locations/{location}/customers/{customer}/workloads/{workload}

array $optParams

Optional parameters.

Return Value

ListViolationsResponse

Exceptions

Exception