OrganizationsCustomConstraints
class OrganizationsCustomConstraints extends Resource (View source)
The "customConstraints" collection of methods.
Typical usage is:
$orgpolicyService = new Google\Service\OrgPolicyAPI(...);
$customConstraints = $orgpolicyService->organizations_customConstraints;
Methods
Creates a custom constraint. Returns a google.rpc.Status
with
google.rpc.Code.NOT_FOUND
if the organization does not exist. Returns a
google.rpc.Status
with google.rpc.Code.ALREADY_EXISTS
if the constraint
already exists on the given organization. (customConstraints.create)
Deletes a custom constraint. Returns a google.rpc.Status
with
google.rpc.Code.NOT_FOUND
if the constraint does not exist.
Gets a custom constraint. Returns a google.rpc.Status
with
google.rpc.Code.NOT_FOUND
if the custom constraint does not exist.
Retrieves all of the custom constraints that exist on a particular organization resource. (customConstraints.listOrganizationsCustomConstraints)
Updates a custom constraint. Returns a google.rpc.Status
with
google.rpc.Code.NOT_FOUND
if the constraint does not exist. Note: the
supplied policy will perform a full overwrite of all fields.
Details
GoogleCloudOrgpolicyV2CustomConstraint
create(string $parent, GoogleCloudOrgpolicyV2CustomConstraint $postBody, array $optParams = [])
Creates a custom constraint. Returns a google.rpc.Status
with
google.rpc.Code.NOT_FOUND
if the organization does not exist. Returns a
google.rpc.Status
with google.rpc.Code.ALREADY_EXISTS
if the constraint
already exists on the given organization. (customConstraints.create)
GoogleProtobufEmpty
delete(string $name, array $optParams = [])
Deletes a custom constraint. Returns a google.rpc.Status
with
google.rpc.Code.NOT_FOUND
if the constraint does not exist.
(customConstraints.delete)
GoogleCloudOrgpolicyV2CustomConstraint
get(string $name, array $optParams = [])
Gets a custom constraint. Returns a google.rpc.Status
with
google.rpc.Code.NOT_FOUND
if the custom constraint does not exist.
(customConstraints.get)
GoogleCloudOrgpolicyV2ListCustomConstraintsResponse
listOrganizationsCustomConstraints(string $parent, array $optParams = [])
Retrieves all of the custom constraints that exist on a particular organization resource. (customConstraints.listOrganizationsCustomConstraints)
GoogleCloudOrgpolicyV2CustomConstraint
patch(string $name, GoogleCloudOrgpolicyV2CustomConstraint $postBody, array $optParams = [])
Updates a custom constraint. Returns a google.rpc.Status
with
google.rpc.Code.NOT_FOUND
if the constraint does not exist. Note: the
supplied policy will perform a full overwrite of all fields.
(customConstraints.patch)