class IamPolicies extends Resource (View source)

The "iamPolicies" collection of methods.

Typical usage is:

 $iamService = new Google\Service\Iam(...);
 $iamPolicies = $iamService->iamPolicies;

Methods

lintPolicy(LintPolicyRequest $postBody, array $optParams = [])

Lints, or validates, an IAM policy. Currently checks the google.iam.v1.Binding.condition field, which contains a condition expression for a role binding. Successful calls to this method always return an HTTP 200 OK status code, even if the linter detects an issue in the IAM policy.

queryAuditableServices(QueryAuditableServicesRequest $postBody, array $optParams = [])

Returns a list of services that allow you to opt into audit logs that are not generated by default. To learn more about audit logs, see the Logging documentation.

Details

LintPolicyResponse lintPolicy(LintPolicyRequest $postBody, array $optParams = [])

Lints, or validates, an IAM policy. Currently checks the google.iam.v1.Binding.condition field, which contains a condition expression for a role binding. Successful calls to this method always return an HTTP 200 OK status code, even if the linter detects an issue in the IAM policy.

(iamPolicies.lintPolicy)

Parameters

LintPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

LintPolicyResponse

QueryAuditableServicesResponse queryAuditableServices(QueryAuditableServicesRequest $postBody, array $optParams = [])

Returns a list of services that allow you to opt into audit logs that are not generated by default. To learn more about audit logs, see the Logging documentation.

(iamPolicies.queryAuditableServices)

Parameters

QueryAuditableServicesRequest $postBody
array $optParams

Optional parameters.

Return Value

QueryAuditableServicesResponse