#[non_exhaustive]pub struct ListServiceLevelObjectivesRequest {
pub parent: String,
pub filter: String,
pub page_size: i32,
pub page_token: String,
pub view: View,
}Expand description
The ListServiceLevelObjectives request.
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 parent containing the listed SLOs, either a project or a Monitoring Metrics Scope. The formats are:
projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-filter: StringA filter specifying what ServiceLevelObjectives to return.
page_size: i32A non-negative number that is the maximum number of results to return. When 0, use default page size.
page_token: StringIf this field is not empty then it must contain the nextPageToken value
returned by a previous call to this method. Using this field causes the
method to return additional results from the previous method call.
view: ViewView of the ServiceLevelObjectives to return. If DEFAULT, return each
ServiceLevelObjective as originally defined. If EXPLICIT and the
ServiceLevelObjective is defined in terms of a BasicSli, replace the
BasicSli with a RequestBasedSli spelling out how the SLI is computed.
Implementations§
Source§impl ListServiceLevelObjectivesRequest
impl ListServiceLevelObjectivesRequest
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_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: 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.
Trait Implementations§
Source§impl Clone for ListServiceLevelObjectivesRequest
impl Clone for ListServiceLevelObjectivesRequest
Source§fn clone(&self) -> ListServiceLevelObjectivesRequest
fn clone(&self) -> ListServiceLevelObjectivesRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ListServiceLevelObjectivesRequest
impl Default for ListServiceLevelObjectivesRequest
Source§fn default() -> ListServiceLevelObjectivesRequest
fn default() -> ListServiceLevelObjectivesRequest
Source§impl<'de> Deserialize<'de> for ListServiceLevelObjectivesRequest
impl<'de> Deserialize<'de> for ListServiceLevelObjectivesRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ListServiceLevelObjectivesRequest
impl PartialEq for ListServiceLevelObjectivesRequest
Source§fn eq(&self, other: &ListServiceLevelObjectivesRequest) -> bool
fn eq(&self, other: &ListServiceLevelObjectivesRequest) -> bool
self and other values to be equal, and is used by ==.