[−][src]Struct k8s_openapi::api::core::v1::LimitRange
LimitRange sets resource usage limits for each kind of resource in a Namespace.
Fields
metadata: Option<ObjectMeta>
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
spec: Option<LimitRangeSpec>
Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
Methods
impl LimitRange
[src]
pub fn create_namespaced_limit_range(
namespace: &str,
body: &LimitRange,
optional: CreateNamespacedLimitRangeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedLimitRangeResponse>), RequestError>
[src]
namespace: &str,
body: &LimitRange,
optional: CreateNamespacedLimitRangeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedLimitRangeResponse>), RequestError>
create a LimitRange
Use the returned crate::ResponseBody
<
CreateNamespacedLimitRangeResponse
>
constructor, or CreateNamespacedLimitRangeResponse
directly, to parse the HTTP response.
Arguments
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl LimitRange
[src]
pub fn delete_collection_namespaced_limit_range(
namespace: &str,
optional: DeleteCollectionNamespacedLimitRangeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedLimitRangeResponse>), RequestError>
[src]
namespace: &str,
optional: DeleteCollectionNamespacedLimitRangeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedLimitRangeResponse>), RequestError>
delete collection of LimitRange
Use the returned crate::ResponseBody
<
DeleteCollectionNamespacedLimitRangeResponse
>
constructor, or DeleteCollectionNamespacedLimitRangeResponse
directly, to parse the HTTP response.
Arguments
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl LimitRange
[src]
pub fn delete_namespaced_limit_range(
name: &str,
namespace: &str,
optional: DeleteNamespacedLimitRangeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedLimitRangeResponse>), RequestError>
[src]
name: &str,
namespace: &str,
optional: DeleteNamespacedLimitRangeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedLimitRangeResponse>), RequestError>
delete a LimitRange
Use the returned crate::ResponseBody
<
DeleteNamespacedLimitRangeResponse
>
constructor, or DeleteNamespacedLimitRangeResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the LimitRange
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl LimitRange
[src]
pub fn list_limit_range_for_all_namespaces(
optional: ListLimitRangeForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListLimitRangeForAllNamespacesResponse>), RequestError>
[src]
optional: ListLimitRangeForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListLimitRangeForAllNamespacesResponse>), RequestError>
list or watch objects of kind LimitRange
This operation only supports listing all items of this type.
Use the returned crate::ResponseBody
<
ListLimitRangeForAllNamespacesResponse
>
constructor, or ListLimitRangeForAllNamespacesResponse
directly, to parse the HTTP response.
Arguments
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl LimitRange
[src]
pub fn list_namespaced_limit_range(
namespace: &str,
optional: ListNamespacedLimitRangeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedLimitRangeResponse>), RequestError>
[src]
namespace: &str,
optional: ListNamespacedLimitRangeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedLimitRangeResponse>), RequestError>
list or watch objects of kind LimitRange
This operation only supports listing all items of this type.
Use the returned crate::ResponseBody
<
ListNamespacedLimitRangeResponse
>
constructor, or ListNamespacedLimitRangeResponse
directly, to parse the HTTP response.
Arguments
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl LimitRange
[src]
pub fn patch_namespaced_limit_range(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchNamespacedLimitRangeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedLimitRangeResponse>), RequestError>
[src]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchNamespacedLimitRangeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedLimitRangeResponse>), RequestError>
partially update the specified LimitRange
Use the returned crate::ResponseBody
<
PatchNamespacedLimitRangeResponse
>
constructor, or PatchNamespacedLimitRangeResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the LimitRange
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl LimitRange
[src]
pub fn read_namespaced_limit_range(
name: &str,
namespace: &str,
optional: ReadNamespacedLimitRangeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedLimitRangeResponse>), RequestError>
[src]
name: &str,
namespace: &str,
optional: ReadNamespacedLimitRangeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedLimitRangeResponse>), RequestError>
read the specified LimitRange
Use the returned crate::ResponseBody
<
ReadNamespacedLimitRangeResponse
>
constructor, or ReadNamespacedLimitRangeResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the LimitRange
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl LimitRange
[src]
pub fn replace_namespaced_limit_range(
name: &str,
namespace: &str,
body: &LimitRange,
optional: ReplaceNamespacedLimitRangeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedLimitRangeResponse>), RequestError>
[src]
name: &str,
namespace: &str,
body: &LimitRange,
optional: ReplaceNamespacedLimitRangeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedLimitRangeResponse>), RequestError>
replace the specified LimitRange
Use the returned crate::ResponseBody
<
ReplaceNamespacedLimitRangeResponse
>
constructor, or ReplaceNamespacedLimitRangeResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the LimitRange
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl LimitRange
[src]
pub fn watch_limit_range_for_all_namespaces(
optional: WatchLimitRangeForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchLimitRangeForAllNamespacesResponse>), RequestError>
[src]
optional: WatchLimitRangeForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchLimitRangeForAllNamespacesResponse>), RequestError>
list or watch objects of kind LimitRange
This operation only supports watching one item, or a list of items, of this type for changes.
Use the returned crate::ResponseBody
<
WatchLimitRangeForAllNamespacesResponse
>
constructor, or WatchLimitRangeForAllNamespacesResponse
directly, to parse the HTTP response.
Arguments
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl LimitRange
[src]
pub fn watch_namespaced_limit_range(
namespace: &str,
optional: WatchNamespacedLimitRangeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedLimitRangeResponse>), RequestError>
[src]
namespace: &str,
optional: WatchNamespacedLimitRangeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedLimitRangeResponse>), RequestError>
list or watch objects of kind LimitRange
This operation only supports watching one item, or a list of items, of this type for changes.
Use the returned crate::ResponseBody
<
WatchNamespacedLimitRangeResponse
>
constructor, or WatchNamespacedLimitRangeResponse
directly, to parse the HTTP response.
Arguments
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Trait Implementations
impl Resource for LimitRange
[src]
fn api_version() -> &'static str
[src]
fn group() -> &'static str
[src]
fn kind() -> &'static str
[src]
fn version() -> &'static str
[src]
impl Metadata for LimitRange
[src]
impl Clone for LimitRange
[src]
fn clone(&self) -> LimitRange
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<LimitRange> for LimitRange
[src]
fn eq(&self, other: &LimitRange) -> bool
[src]
fn ne(&self, other: &LimitRange) -> bool
[src]
impl Default for LimitRange
[src]
fn default() -> LimitRange
[src]
impl Debug for LimitRange
[src]
impl Serialize for LimitRange
[src]
impl<'de> Deserialize<'de> for LimitRange
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Send for LimitRange
impl Sync for LimitRange
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,