#[non_exhaustive]pub struct ListDataPoliciesRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
pub filter: String,
/* private fields */
}Expand description
Request message for the ListDataPolicies method.
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.parent: StringRequired. Resource name of the project for which to list data policies.
Format is projects/{project_number}/locations/{location_id}.
page_size: i32Optional. The maximum number of data policies to return. Must be a value between 1 and 1000. If not set, defaults to 50.
page_token: StringOptional. The nextPageToken value returned from a previous list request,
if any. If not set, defaults to an empty string.
filter: StringOptional. Filters the data policies by policy tags that they are associated with. Currently filter only supports “policy_tag” based filtering and OR based predicates. Sample filter can be “policy_tag: projects/1/locations/us/taxonomies/2/policyTags/3”. You may also use wildcard such as “policy_tag: projects/1/locations/us/taxonomies/2*”. Please note that OR predicates cannot be used with wildcard filters.
Implementations§
Source§impl ListDataPoliciesRequest
impl ListDataPoliciesRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Sets 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.
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.
Trait Implementations§
Source§impl Clone for ListDataPoliciesRequest
impl Clone for ListDataPoliciesRequest
Source§fn clone(&self) -> ListDataPoliciesRequest
fn clone(&self) -> ListDataPoliciesRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more