Struct google_api_proto::google::cloud::asset::v1::AnalyzeOrgPoliciesRequest
source · pub struct AnalyzeOrgPoliciesRequest {
pub scope: String,
pub constraint: String,
pub filter: String,
pub page_size: Option<i32>,
pub page_token: String,
}
Expand description
A request message for [AssetService.AnalyzeOrgPolicies][google.cloud.asset.v1.AssetService.AnalyzeOrgPolicies].
Fields§
§scope: String
Required. The organization to scope the request. Only organization policies within the scope will be analyzed.
- organizations/{ORGANIZATION_NUMBER} (e.g., “organizations/123456”)
constraint: String
Required. The name of the constraint to analyze organization policies for. The response only contains analyzed organization policies for the provided constraint.
filter: String
The expression to filter [AnalyzeOrgPoliciesResponse.org_policy_results][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.org_policy_results]. Filtering is currently available for bare literal values and the following fields:
- consolidated_policy.attached_resource
- consolidated_policy.rules.enforce
When filtering by a specific field, the only supported operator is =
.
For example, filtering by
consolidated_policy.attached_resource=“//cloudresourcemanager.googleapis.com/folders/001”
will return all the Organization Policy results attached to “folders/001”.
page_size: Option<i32>
The maximum number of items to return per page. If unspecified, [AnalyzeOrgPoliciesResponse.org_policy_results][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.org_policy_results] will contain 20 items with a maximum of 200.
page_token: String
The pagination token to retrieve the next page.
Implementations§
Trait Implementations§
source§impl Clone for AnalyzeOrgPoliciesRequest
impl Clone for AnalyzeOrgPoliciesRequest
source§fn clone(&self) -> AnalyzeOrgPoliciesRequest
fn clone(&self) -> AnalyzeOrgPoliciesRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AnalyzeOrgPoliciesRequest
impl Debug for AnalyzeOrgPoliciesRequest
source§impl Default for AnalyzeOrgPoliciesRequest
impl Default for AnalyzeOrgPoliciesRequest
source§impl Message for AnalyzeOrgPoliciesRequest
impl Message for AnalyzeOrgPoliciesRequest
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 AnalyzeOrgPoliciesRequest
impl PartialEq for AnalyzeOrgPoliciesRequest
source§fn eq(&self, other: &AnalyzeOrgPoliciesRequest) -> bool
fn eq(&self, other: &AnalyzeOrgPoliciesRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AnalyzeOrgPoliciesRequest
Auto Trait Implementations§
impl Freeze for AnalyzeOrgPoliciesRequest
impl RefUnwindSafe for AnalyzeOrgPoliciesRequest
impl Send for AnalyzeOrgPoliciesRequest
impl Sync for AnalyzeOrgPoliciesRequest
impl Unpin for AnalyzeOrgPoliciesRequest
impl UnwindSafe for AnalyzeOrgPoliciesRequest
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