[][src]Struct openshift_openapi::api::quota::v1::AppliedClusterResourceQuota

pub struct AppliedClusterResourceQuota {
    pub metadata: ObjectMeta,
    pub spec: ClusterResourceQuotaSpec,
    pub status: Option<ClusterResourceQuotaStatus>,
}

AppliedClusterResourceQuota mirrors ClusterResourceQuota at a project scope, for projection into a project. It allows a project-admin to know which ClusterResourceQuotas are applied to his project and their associated usage.

Fields

metadata: ObjectMeta

Standard object's metadata.

spec: ClusterResourceQuotaSpec

Spec defines the desired quota

status: Option<ClusterResourceQuotaStatus>

Status defines the actual enforced quota and its current usage

Implementations

impl AppliedClusterResourceQuota[src]

pub fn list_applied_cluster_resource_quota_for_all_namespaces(
    optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListResponse<Self>>), RequestError>
[src]

list objects of kind AppliedClusterResourceQuota

This operation only supports listing all items of this type.

Use the returned k8s_openapi::ResponseBody<k8s_openapi::ListResponse<Self>> constructor, or k8s_openapi::ListResponse<Self> directly, to parse the HTTP response.

Arguments

  • optional

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

impl AppliedClusterResourceQuota[src]

pub fn list_namespaced_applied_cluster_resource_quota(
    namespace: &str,
    optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListResponse<Self>>), RequestError>
[src]

list objects of kind AppliedClusterResourceQuota

This operation only supports listing all items of this type.

Use the returned k8s_openapi::ResponseBody<k8s_openapi::ListResponse<Self>> constructor, or k8s_openapi::ListResponse<Self> 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 AppliedClusterResourceQuota[src]

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

read the specified AppliedClusterResourceQuota

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

Arguments

  • name

    name of the AppliedClusterResourceQuota

  • namespace

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

  • optional

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

impl AppliedClusterResourceQuota[src]

pub fn watch_applied_cluster_resource_quota_for_all_namespaces(
    optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchResponse<Self>>), RequestError>
[src]

list objects of kind AppliedClusterResourceQuota

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

Use the returned k8s_openapi::ResponseBody<k8s_openapi::WatchResponse<Self>> constructor, or k8s_openapi::WatchResponse<Self> directly, to parse the HTTP response.

Arguments

  • optional

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

impl AppliedClusterResourceQuota[src]

pub fn watch_namespaced_applied_cluster_resource_quota(
    namespace: &str,
    optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchResponse<Self>>), RequestError>
[src]

list objects of kind AppliedClusterResourceQuota

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

Use the returned k8s_openapi::ResponseBody<k8s_openapi::WatchResponse<Self>> constructor, or k8s_openapi::WatchResponse<Self> 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 Clone for AppliedClusterResourceQuota[src]

impl Debug for AppliedClusterResourceQuota[src]

impl Default for AppliedClusterResourceQuota[src]

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

impl ListableResource for AppliedClusterResourceQuota[src]

impl Metadata for AppliedClusterResourceQuota[src]

type Ty = ObjectMeta

The type of the metadata object.

impl PartialEq<AppliedClusterResourceQuota> for AppliedClusterResourceQuota[src]

impl Resource for AppliedClusterResourceQuota[src]

impl Serialize for AppliedClusterResourceQuota[src]

impl StructuralPartialEq for AppliedClusterResourceQuota[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.