#[non_exhaustive]pub struct AnalyzeOrgPolicyGovernedContainersRequest {
pub scope: String,
pub constraint: String,
pub filter: String,
pub page_size: Option<i32>,
pub page_token: String,
/* private fields */
}Expand description
A request message for AssetService.AnalyzeOrgPolicyGovernedContainers.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.scope: StringRequired. The organization to scope the request. Only organization policies within the scope will be analyzed. The output containers will also be limited to the ones governed by those in-scope organization policies.
- organizations/{ORGANIZATION_NUMBER} (e.g., “organizations/123456”)
constraint: StringRequired. The name of the constraint to analyze governed containers for. The analysis only contains organization policies for the provided constraint.
filter: StringThe expression to filter AnalyzeOrgPolicyGovernedContainersResponse.governed_containers. Filtering is currently available for bare literal values and the following fields:
- parent
- consolidated_policy.rules.enforce
When filtering by a specific field, the only supported operator is =.
For example, filtering by
parent=“//cloudresourcemanager.googleapis.com/folders/001”
will return all the containers under “folders/001”.
page_size: Option<i32>The maximum number of items to return per page. If unspecified, AnalyzeOrgPolicyGovernedContainersResponse.governed_containers will contain 100 items with a maximum of 200.
page_token: StringThe pagination token to retrieve the next page.
Implementations§
Source§impl AnalyzeOrgPolicyGovernedContainersRequest
impl AnalyzeOrgPolicyGovernedContainersRequest
pub fn new() -> Self
Sourcepub fn set_constraint<T: Into<String>>(self, v: T) -> Self
pub fn set_constraint<T: Into<String>>(self, v: T) -> Self
Sets the value of constraint.
Sourcepub fn set_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_filter<T: Into<String>>(self, v: T) -> Self
Sets the value of filter.
Sourcepub fn set_page_size<T>(self, v: T) -> Self
pub fn set_page_size<T>(self, v: T) -> Self
Sets the value of page_size.
Sourcepub fn set_or_clear_page_size<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_page_size<T>(self, v: Option<T>) -> Self
Sets or clears the value of page_size.
Sourcepub fn set_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of page_token.
Trait Implementations§
Source§impl Clone for AnalyzeOrgPolicyGovernedContainersRequest
impl Clone for AnalyzeOrgPolicyGovernedContainersRequest
Source§fn clone(&self) -> AnalyzeOrgPolicyGovernedContainersRequest
fn clone(&self) -> AnalyzeOrgPolicyGovernedContainersRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for AnalyzeOrgPolicyGovernedContainersRequest
impl Default for AnalyzeOrgPolicyGovernedContainersRequest
Source§fn default() -> AnalyzeOrgPolicyGovernedContainersRequest
fn default() -> AnalyzeOrgPolicyGovernedContainersRequest
Source§impl PartialEq for AnalyzeOrgPolicyGovernedContainersRequest
impl PartialEq for AnalyzeOrgPolicyGovernedContainersRequest
Source§fn eq(&self, other: &AnalyzeOrgPolicyGovernedContainersRequest) -> bool
fn eq(&self, other: &AnalyzeOrgPolicyGovernedContainersRequest) -> bool
self and other values to be equal, and is used by ==.