class ProjectsLocationsRules extends Resource (View source)

The "rules" collection of methods.

Typical usage is:

 $workloadmanagerService = new Google\Service\WorkloadManager(...);
 $rules = $workloadmanagerService->projects_locations_rules;

Methods

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

Lists rules in a given project. (rules.listProjectsLocationsRules)

Details

ListRulesResponse listProjectsLocationsRules(string $parent, array $optParams = [])

Lists rules in a given project. (rules.listProjectsLocationsRules)

Parameters

string $parent

Required. The [project] on which to execute the request. The format is: projects/{project_id}/locations/{location} Currently, the pre-defined rules are global available to all projects and all regions

array $optParams

Optional parameters.

Return Value

ListRulesResponse

Exceptions

Exception