Struct google_api_proto::google::cloud::asset::v1::analyze_org_policies_response::OrgPolicyResult
source · pub struct OrgPolicyResult {
pub consolidated_policy: Option<AnalyzerOrgPolicy>,
pub policy_bundle: Vec<AnalyzerOrgPolicy>,
pub project: String,
pub folders: Vec<String>,
pub organization: String,
}
Expand description
The organization policy result to the query.
Fields§
§consolidated_policy: Option<AnalyzerOrgPolicy>
The consolidated organization policy for the analyzed resource. The consolidated organization policy is computed by merging and evaluating [AnalyzeOrgPoliciesResponse.policy_bundle][]. The evaluation will respect the organization policy hierarchy rules.
policy_bundle: Vec<AnalyzerOrgPolicy>
The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. to the scope specified in the request.
If the constraint is defined with default policy, it will also appear in the list.
project: String
The project that this consolidated policy belongs to, in the format of projects/{PROJECT_NUMBER}. This field is available when the consolidated policy belongs to a project.
folders: Vec<String>
The folder(s) that this consolidated policy belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the consolidated policy belongs (directly or cascadingly) to one or more folders.
organization: String
The organization that this consolidated policy belongs to, in the format of organizations/{ORGANIZATION_NUMBER}. This field is available when the consolidated policy belongs (directly or cascadingly) to an organization.
Trait Implementations§
source§impl Clone for OrgPolicyResult
impl Clone for OrgPolicyResult
source§fn clone(&self) -> OrgPolicyResult
fn clone(&self) -> OrgPolicyResult
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OrgPolicyResult
impl Debug for OrgPolicyResult
source§impl Default for OrgPolicyResult
impl Default for OrgPolicyResult
source§impl Message for OrgPolicyResult
impl Message for OrgPolicyResult
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 OrgPolicyResult
impl PartialEq for OrgPolicyResult
source§fn eq(&self, other: &OrgPolicyResult) -> bool
fn eq(&self, other: &OrgPolicyResult) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OrgPolicyResult
Auto Trait Implementations§
impl Freeze for OrgPolicyResult
impl RefUnwindSafe for OrgPolicyResult
impl Send for OrgPolicyResult
impl Sync for OrgPolicyResult
impl Unpin for OrgPolicyResult
impl UnwindSafe for OrgPolicyResult
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