ProjectsPlatformsPolicies
class ProjectsPlatformsPolicies extends Resource (View source)
The "policies" collection of methods.
Typical usage is:
$binaryauthorizationService = new Google\Service\BinaryAuthorization(...);
$policies = $binaryauthorizationService->projects_platforms_policies;
Methods
Creates a platform policy, and returns a copy of it. Returns NOT_FOUND
if
the project or platform doesn't exist, INVALID_ARGUMENT
if the request is
malformed, ALREADY_EXISTS
if the policy already exists, and
INVALID_ARGUMENT
if the policy contains a platform-specific policy that
does not match the platform value specified in the URL. (policies.create)
Deletes a platform policy. Returns NOT_FOUND
if the policy doesn't exist.
Gets a platform policy. Returns NOT_FOUND
if the policy doesn't exist.
Lists platform policies owned by a project in the specified platform. Returns
INVALID_ARGUMENT
if the project or the platform doesn't exist.
Replaces a platform policy. Returns NOT_FOUND
if the policy doesn't exist.
Details
PlatformPolicy
create(string $parent, PlatformPolicy $postBody, array $optParams = [])
Creates a platform policy, and returns a copy of it. Returns NOT_FOUND
if
the project or platform doesn't exist, INVALID_ARGUMENT
if the request is
malformed, ALREADY_EXISTS
if the policy already exists, and
INVALID_ARGUMENT
if the policy contains a platform-specific policy that
does not match the platform value specified in the URL. (policies.create)
BinaryauthorizationEmpty
delete(string $name, array $optParams = [])
Deletes a platform policy. Returns NOT_FOUND
if the policy doesn't exist.
(policies.delete)
PlatformPolicy
get(string $name, array $optParams = [])
Gets a platform policy. Returns NOT_FOUND
if the policy doesn't exist.
(policies.get)
ListPlatformPoliciesResponse
listProjectsPlatformsPolicies(string $parent, array $optParams = [])
Lists platform policies owned by a project in the specified platform. Returns
INVALID_ARGUMENT
if the project or the platform doesn't exist.
(policies.listProjectsPlatformsPolicies)
PlatformPolicy
replacePlatformPolicy(string $name, PlatformPolicy $postBody, array $optParams = [])
Replaces a platform policy. Returns NOT_FOUND
if the policy doesn't exist.
(policies.replacePlatformPolicy)