* $orgpolicyService = new Google\Service\OrgPolicyAPI(...); * $customConstraints = $orgpolicyService->customConstraints; * */ class OrganizationsCustomConstraints extends \Google\Service\Resource { /** * 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) * * @param string $name Immutable. Name of the constraint. This is unique within * the organization. Format of the name should be * * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` * Example : "organizations/123/customConstraints/custom.createOnlyE2TypeVms" * @param GoogleCloudOrgpolicyV2CustomConstraint $postBody * @param array $optParams Optional parameters. * @return GoogleCloudOrgpolicyV2CustomConstraint */ public function patch($name, GoogleCloudOrgpolicyV2CustomConstraint $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('patch', [$params], GoogleCloudOrgpolicyV2CustomConstraint::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(OrganizationsCustomConstraints::class, 'Google_Service_OrgPolicyAPI_Resource_OrganizationsCustomConstraints');