Struct google_api_proto::google::cloud::contentwarehouse::v1::SetAclRequest
source · pub struct SetAclRequest {
pub resource: String,
pub policy: Option<Policy>,
pub request_metadata: Option<RequestMetadata>,
pub project_owner: bool,
}
Expand description
Request message for DocumentService.SetAcl.
Fields§
§resource: String
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: Option<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: Option<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.
Trait Implementations§
source§impl Clone for SetAclRequest
impl Clone for SetAclRequest
source§fn clone(&self) -> SetAclRequest
fn clone(&self) -> SetAclRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SetAclRequest
impl Debug for SetAclRequest
source§impl Default for SetAclRequest
impl Default for SetAclRequest
source§impl Message for SetAclRequest
impl Message for SetAclRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for SetAclRequest
impl PartialEq for SetAclRequest
source§fn eq(&self, other: &SetAclRequest) -> bool
fn eq(&self, other: &SetAclRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SetAclRequest
Auto Trait Implementations§
impl !Freeze for SetAclRequest
impl RefUnwindSafe for SetAclRequest
impl Send for SetAclRequest
impl Sync for SetAclRequest
impl Unpin for SetAclRequest
impl UnwindSafe for SetAclRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request