[−][src]Struct k8s_openapi::api::core::v1::ResourceQuota
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]
namespace: &str,
body: &ResourceQuota,
optional: CreateNamespacedResourceQuotaOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedResourceQuotaResponse>), RequestError>
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]
namespace: &str,
optional: DeleteCollectionNamespacedResourceQuotaOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedResourceQuotaResponse>), RequestError>
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]
name: &str,
namespace: &str,
optional: DeleteNamespacedResourceQuotaOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedResourceQuotaResponse>), RequestError>
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]
namespace: &str,
optional: ListNamespacedResourceQuotaOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedResourceQuotaResponse>), RequestError>
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]
optional: ListResourceQuotaForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListResourceQuotaForAllNamespacesResponse>), RequestError>
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]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchNamespacedResourceQuotaOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedResourceQuotaResponse>), RequestError>
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]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchNamespacedResourceQuotaStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedResourceQuotaStatusResponse>), RequestError>
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]
name: &str,
namespace: &str,
optional: ReadNamespacedResourceQuotaOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedResourceQuotaResponse>), RequestError>
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]
name: &str,
namespace: &str,
optional: ReadNamespacedResourceQuotaStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedResourceQuotaStatusResponse>), RequestError>
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]
name: &str,
namespace: &str,
body: &ResourceQuota,
optional: ReplaceNamespacedResourceQuotaOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedResourceQuotaResponse>), RequestError>
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]
name: &str,
namespace: &str,
body: &ResourceQuota,
optional: ReplaceNamespacedResourceQuotaStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedResourceQuotaStatusResponse>), RequestError>
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]
namespace: &str,
optional: WatchNamespacedResourceQuotaOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedResourceQuotaResponse>), RequestError>
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]
optional: WatchResourceQuotaForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchResourceQuotaForAllNamespacesResponse>), RequestError>
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]
fn api_version() -> &'static str
[src]
fn group() -> &'static str
[src]
fn kind() -> &'static str
[src]
fn version() -> &'static str
[src]
impl Metadata for ResourceQuota
[src]
impl Clone for ResourceQuota
[src]
fn clone(&self) -> 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]
fn eq(&self, other: &ResourceQuota) -> bool
[src]
fn ne(&self, other: &ResourceQuota) -> bool
[src]
impl Default for ResourceQuota
[src]
fn default() -> ResourceQuota
[src]
impl Debug for ResourceQuota
[src]
impl Serialize for ResourceQuota
[src]
impl<'de> Deserialize<'de> for ResourceQuota
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Send for ResourceQuota
impl Sync for ResourceQuota
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>,