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

pub struct ResourceQuota {
    pub metadata: Option<ObjectMeta>,
    pub spec: Option<ResourceQuotaSpec>,
    pub status: Option<ResourceQuotaStatus>,
}

ResourceQuota sets aggregate quota restrictions enforced per namespace

Fields

metadata: Option<ObjectMeta>

Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

spec: Option<ResourceQuotaSpec>

Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

status: Option<ResourceQuotaStatus>

Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Methods

impl ResourceQuota[src]

pub fn create_namespaced_resource_quota(
    namespace: &str,
    body: &ResourceQuota,
    optional: CreateNamespacedResourceQuotaOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedResourceQuotaResponse>), RequestError>
[src]

create a ResourceQuota

Use the returned crate::ResponseBody<CreateNamespacedResourceQuotaResponse> constructor, or CreateNamespacedResourceQuotaResponse 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 ResourceQuota[src]

pub fn delete_collection_namespaced_resource_quota(
    namespace: &str,
    optional: DeleteCollectionNamespacedResourceQuotaOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedResourceQuotaResponse>), RequestError>
[src]

delete collection of ResourceQuota

Use the returned crate::ResponseBody<DeleteCollectionNamespacedResourceQuotaResponse> constructor, or DeleteCollectionNamespacedResourceQuotaResponse 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 ResourceQuota[src]

pub fn delete_namespaced_resource_quota(
    name: &str,
    namespace: &str,
    optional: DeleteNamespacedResourceQuotaOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedResourceQuotaResponse>), RequestError>
[src]

delete a ResourceQuota

Use the returned crate::ResponseBody<DeleteNamespacedResourceQuotaResponse> constructor, or DeleteNamespacedResourceQuotaResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the ResourceQuota

  • namespace

    object name and auth scope, such as for teams and projects

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl ResourceQuota[src]

pub fn list_namespaced_resource_quota(
    namespace: &str,
    optional: ListNamespacedResourceQuotaOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedResourceQuotaResponse>), RequestError>
[src]

list or watch objects of kind ResourceQuota

This operation only supports listing all items of this type.

Use the returned crate::ResponseBody<ListNamespacedResourceQuotaResponse> constructor, or ListNamespacedResourceQuotaResponse 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 ResourceQuota[src]

pub fn list_resource_quota_for_all_namespaces(
    optional: ListResourceQuotaForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListResourceQuotaForAllNamespacesResponse>), RequestError>
[src]

list or watch objects of kind ResourceQuota

This operation only supports listing all items of this type.

Use the returned crate::ResponseBody<ListResourceQuotaForAllNamespacesResponse> constructor, or ListResourceQuotaForAllNamespacesResponse directly, to parse the HTTP response.

Arguments

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl ResourceQuota[src]

pub fn patch_namespaced_resource_quota(
    name: &str,
    namespace: &str,
    body: &Patch,
    optional: PatchNamespacedResourceQuotaOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedResourceQuotaResponse>), RequestError>
[src]

partially update the specified ResourceQuota

Use the returned crate::ResponseBody<PatchNamespacedResourceQuotaResponse> constructor, or PatchNamespacedResourceQuotaResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the ResourceQuota

  • namespace

    object name and auth scope, such as for teams and projects

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl ResourceQuota[src]

pub fn patch_namespaced_resource_quota_status(
    name: &str,
    namespace: &str,
    body: &Patch,
    optional: PatchNamespacedResourceQuotaStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedResourceQuotaStatusResponse>), RequestError>
[src]

partially update status of the specified ResourceQuota

Use the returned crate::ResponseBody<PatchNamespacedResourceQuotaStatusResponse> constructor, or PatchNamespacedResourceQuotaStatusResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the ResourceQuota

  • namespace

    object name and auth scope, such as for teams and projects

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl ResourceQuota[src]

pub fn read_namespaced_resource_quota(
    name: &str,
    namespace: &str,
    optional: ReadNamespacedResourceQuotaOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedResourceQuotaResponse>), RequestError>
[src]

read the specified ResourceQuota

Use the returned crate::ResponseBody<ReadNamespacedResourceQuotaResponse> constructor, or ReadNamespacedResourceQuotaResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the ResourceQuota

  • namespace

    object name and auth scope, such as for teams and projects

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl ResourceQuota[src]

pub fn read_namespaced_resource_quota_status(
    name: &str,
    namespace: &str,
    optional: ReadNamespacedResourceQuotaStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedResourceQuotaStatusResponse>), RequestError>
[src]

read status of the specified ResourceQuota

Use the returned crate::ResponseBody<ReadNamespacedResourceQuotaStatusResponse> constructor, or ReadNamespacedResourceQuotaStatusResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the ResourceQuota

  • namespace

    object name and auth scope, such as for teams and projects

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl ResourceQuota[src]

pub fn replace_namespaced_resource_quota(
    name: &str,
    namespace: &str,
    body: &ResourceQuota,
    optional: ReplaceNamespacedResourceQuotaOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedResourceQuotaResponse>), RequestError>
[src]

replace the specified ResourceQuota

Use the returned crate::ResponseBody<ReplaceNamespacedResourceQuotaResponse> constructor, or ReplaceNamespacedResourceQuotaResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the ResourceQuota

  • namespace

    object name and auth scope, such as for teams and projects

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl ResourceQuota[src]

pub fn replace_namespaced_resource_quota_status(
    name: &str,
    namespace: &str,
    body: &ResourceQuota,
    optional: ReplaceNamespacedResourceQuotaStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedResourceQuotaStatusResponse>), RequestError>
[src]

replace status of the specified ResourceQuota

Use the returned crate::ResponseBody<ReplaceNamespacedResourceQuotaStatusResponse> constructor, or ReplaceNamespacedResourceQuotaStatusResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the ResourceQuota

  • namespace

    object name and auth scope, such as for teams and projects

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl ResourceQuota[src]

pub fn watch_namespaced_resource_quota(
    namespace: &str,
    optional: WatchNamespacedResourceQuotaOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedResourceQuotaResponse>), RequestError>
[src]

list or watch objects of kind ResourceQuota

This operation only supports watching one item, or a list of items, of this type for changes.

Use the returned crate::ResponseBody<WatchNamespacedResourceQuotaResponse> constructor, or WatchNamespacedResourceQuotaResponse 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 ResourceQuota[src]

pub fn watch_resource_quota_for_all_namespaces(
    optional: WatchResourceQuotaForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchResourceQuotaForAllNamespacesResponse>), RequestError>
[src]

list or watch objects of kind ResourceQuota

This operation only supports watching one item, or a list of items, of this type for changes.

Use the returned crate::ResponseBody<WatchResourceQuotaForAllNamespacesResponse> constructor, or WatchResourceQuotaForAllNamespacesResponse directly, to parse the HTTP response.

Arguments

  • optional

    Optional parameters. Use Default::default() to not pass any.

Trait Implementations

impl Resource for ResourceQuota[src]

impl Metadata for ResourceQuota[src]

type Ty = ObjectMeta

The type of the metadata object.

impl Clone for ResourceQuota[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<ResourceQuota> for ResourceQuota[src]

impl Default for ResourceQuota[src]

impl Debug for ResourceQuota[src]

impl Serialize for ResourceQuota[src]

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

Auto Trait Implementations

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]