class ProjectsPlatformsGkePolicies extends Resource (View source)

The "policies" collection of methods.

Typical usage is:

 $binaryauthorizationService = new Google\Service\BinaryAuthorization(...);
 $policies = $binaryauthorizationService->projects_platforms_gke_policies;

Methods

evaluate(string $name, EvaluateGkePolicyRequest $postBody, array $optParams = [])

Evaluates a Kubernetes object versus a GKE platform policy. Returns NOT_FOUND if the policy doesn't exist, INVALID_ARGUMENT if the policy or request is malformed and PERMISSION_DENIED if the client does not have sufficient permissions. (policies.evaluate)

Details

EvaluateGkePolicyResponse evaluate(string $name, EvaluateGkePolicyRequest $postBody, array $optParams = [])

Evaluates a Kubernetes object versus a GKE platform policy. Returns NOT_FOUND if the policy doesn't exist, INVALID_ARGUMENT if the policy or request is malformed and PERMISSION_DENIED if the client does not have sufficient permissions. (policies.evaluate)

Parameters

string $name

Required. The name of the platform policy to evaluate in the format projects/platforms/policies.

EvaluateGkePolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

EvaluateGkePolicyResponse

Exceptions

Exception