Class SetAclRequest (0.7.7)

SetAclRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Request message for DocumentService.SetAcl.

Attributes

NameDescription
resource str
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}.
policy google.iam.v1.policy_pb2.Policy
Required. REQUIRED: The complete policy to be applied to the resource. The size of the policy is limited to a few 10s of KB. This refers to an Identity and Access (IAM) policy, which specifies access controls for the Document. You can set ACL with condition for projects only. Supported operators are: =, !=, , <>, >, and >= where the left of the operator is DocumentSchemaId or property name and the right of the operator is a number or a quoted string. You must escape backslash (\) and quote (") characters. Boolean expressions (AND/OR) are supported up to 3 levels of nesting (for example, "((A AND B AND C) OR D) AND E"), a maximum of 10 comparisons are allowed in the expression. The expression must be < 6000="" bytes="" in="" length.="" sample="" condition:="">"DocumentSchemaId = \"some schema id\" OR SchemaId.floatPropertyName >= 10"
request_metadata google.cloud.contentwarehouse_v1.types.RequestMetadata
The meta information collected about the end user, used to enforce access control for the service.
project_owner bool
For Set Project ACL only. Authorization check for end user will be ignored when project_owner=true.