[][src]Struct k8s_openapi::api::core::v1::LimitRange

pub struct LimitRange {
    pub metadata: Option<ObjectMeta>,
    pub spec: Option<LimitRangeSpec>,
}

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

impl Metadata for LimitRange[src]

type Ty = ObjectMeta

The type of the metadata object.

impl Clone for 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]

impl Default for LimitRange[src]

impl Debug for LimitRange[src]

impl Serialize for LimitRange[src]

impl<'de> Deserialize<'de> for LimitRange[src]

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]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]