class Projects extends Resource (View source)

The "projects" collection of methods.

Typical usage is:

 $contentwarehouseService = new Google\Service\Contentwarehouse(...);
 $projects = $contentwarehouseService->projects;

Methods

fetchAcl(string $resource, GoogleCloudContentwarehouseV1FetchAclRequest $postBody, array $optParams = [])

Gets the access control policy for a resource. Returns NOT_FOUND error if the resource does not exist. Returns an empty policy if the resource exists but does not have a policy set. (projects.fetchAcl)

setAcl(string $resource, GoogleCloudContentwarehouseV1SetAclRequest $postBody, array $optParams = [])

Sets the access control policy for a resource. Replaces any existing policy.

Details

GoogleCloudContentwarehouseV1FetchAclResponse fetchAcl(string $resource, GoogleCloudContentwarehouseV1FetchAclRequest $postBody, array $optParams = [])

Gets the access control policy for a resource. Returns NOT_FOUND error if the resource does not exist. Returns an empty policy if the resource exists but does not have a policy set. (projects.fetchAcl)

Parameters

string $resource

Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for collection: projects/{project_number}/locations/{location}/collections/{collection_id}. Format for project: projects/{project_number}.

GoogleCloudContentwarehouseV1FetchAclRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudContentwarehouseV1FetchAclResponse

Exceptions

Exception

GoogleCloudContentwarehouseV1SetAclResponse setAcl(string $resource, GoogleCloudContentwarehouseV1SetAclRequest $postBody, array $optParams = [])

Sets the access control policy for a resource. Replaces any existing policy.

(projects.setAcl)

Parameters

string $resource

Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for collection: projects/{project_number}/locations/{location}/collections/{collection_id}. Format for project: projects/{project_number}.

GoogleCloudContentwarehouseV1SetAclRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudContentwarehouseV1SetAclResponse

Exceptions

Exception