#[non_exhaustive]pub struct ListOSPolicyAssignmentReportsRequest {
pub parent: String,
pub page_size: i32,
pub filter: String,
pub page_token: String,
/* private fields */
}Expand description
List the OS policy assignment reports for VM instances.
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. The parent resource name.
Format:
projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/reports
For {project}, either project-number or project-id can be provided.
For {instance}, either instance-name, instance-id, or - can be
provided. If ‘-’ is provided, the response will include
OSPolicyAssignmentReports for all instances in the project/location.
For {assignment}, either assignment-id or - can be provided. If ‘-’
is provided, the response will include OSPolicyAssignmentReports for all
OSPolicyAssignments in the project/location.
Either {instance} or {assignment} must be -.
For example:
projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/-/reports
returns all reports for the instance
projects/{project}/locations/{location}/instances/-/osPolicyAssignments/{assignment-id}/reports
returns all the reports for the given assignment across all instances.
projects/{project}/locations/{location}/instances/-/osPolicyAssignments/-/reports
returns all the reports for all assignments across all instances.
page_size: i32The maximum number of results to return.
filter: StringIf provided, this field specifies the criteria that must be met by the
OSPolicyAssignmentReport API resource that is included in the response.
page_token: StringA pagination token returned from a previous call to the
ListOSPolicyAssignmentReports method that indicates where this listing
should continue from.
Implementations§
Source§impl ListOSPolicyAssignmentReportsRequest
impl ListOSPolicyAssignmentReportsRequest
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_filter<T: Into<String>>(self, v: T) -> Self
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.
§Example
let x = ListOSPolicyAssignmentReportsRequest::new().set_page_token("example");Trait Implementations§
Source§impl Clone for ListOSPolicyAssignmentReportsRequest
impl Clone for ListOSPolicyAssignmentReportsRequest
Source§fn clone(&self) -> ListOSPolicyAssignmentReportsRequest
fn clone(&self) -> ListOSPolicyAssignmentReportsRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ListOSPolicyAssignmentReportsRequest
impl Default for ListOSPolicyAssignmentReportsRequest
Source§fn default() -> ListOSPolicyAssignmentReportsRequest
fn default() -> ListOSPolicyAssignmentReportsRequest
impl StructuralPartialEq for ListOSPolicyAssignmentReportsRequest
Auto Trait Implementations§
impl Freeze for ListOSPolicyAssignmentReportsRequest
impl RefUnwindSafe for ListOSPolicyAssignmentReportsRequest
impl Send for ListOSPolicyAssignmentReportsRequest
impl Sync for ListOSPolicyAssignmentReportsRequest
impl Unpin for ListOSPolicyAssignmentReportsRequest
impl UnsafeUnpin for ListOSPolicyAssignmentReportsRequest
impl UnwindSafe for ListOSPolicyAssignmentReportsRequest
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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