pub struct AppliedClusterResourceQuota {
pub metadata: ObjectMeta,
pub spec: ClusterResourceQuotaSpec,
pub status: Option<ClusterResourceQuotaStatus>,
}Expand description
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: ObjectMetaStandard object’s metadata.
spec: ClusterResourceQuotaSpecSpec defines the desired quota
status: Option<ClusterResourceQuotaStatus>Status defines the actual enforced quota and its current usage
Implementations§
Source§impl AppliedClusterResourceQuota
impl AppliedClusterResourceQuota
Sourcepub fn list_applied_cluster_resource_quota_for_all_namespaces(
optional: ListOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ListResponse<Self>>), RequestError>
pub fn list_applied_cluster_resource_quota_for_all_namespaces( optional: ListOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ListResponse<Self>>), RequestError>
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
-
optionalOptional parameters. Use
Default::default()to not pass any.
Source§impl AppliedClusterResourceQuota
impl AppliedClusterResourceQuota
Sourcepub fn list_namespaced_applied_cluster_resource_quota(
namespace: &str,
optional: ListOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ListResponse<Self>>), RequestError>
pub fn list_namespaced_applied_cluster_resource_quota( namespace: &str, optional: ListOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ListResponse<Self>>), RequestError>
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
-
namespaceobject name and auth scope, such as for teams and projects
-
optionalOptional parameters. Use
Default::default()to not pass any.
Source§impl AppliedClusterResourceQuota
impl AppliedClusterResourceQuota
Sourcepub fn read_namespaced_applied_cluster_resource_quota(
name: &str,
namespace: &str,
optional: ReadNamespacedAppliedClusterResourceQuotaOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ReadNamespacedAppliedClusterResourceQuotaResponse>), RequestError>
pub fn read_namespaced_applied_cluster_resource_quota( name: &str, namespace: &str, optional: ReadNamespacedAppliedClusterResourceQuotaOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ReadNamespacedAppliedClusterResourceQuotaResponse>), RequestError>
read the specified AppliedClusterResourceQuota
Use the returned k8s_openapi::ResponseBody<ReadNamespacedAppliedClusterResourceQuotaResponse> constructor, or ReadNamespacedAppliedClusterResourceQuotaResponse directly, to parse the HTTP response.
§Arguments
-
namename of the AppliedClusterResourceQuota
-
namespaceobject name and auth scope, such as for teams and projects
-
optionalOptional parameters. Use
Default::default()to not pass any.
Source§impl AppliedClusterResourceQuota
impl AppliedClusterResourceQuota
Sourcepub fn watch_applied_cluster_resource_quota_for_all_namespaces(
optional: WatchOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<WatchResponse<Self>>), RequestError>
pub fn watch_applied_cluster_resource_quota_for_all_namespaces( optional: WatchOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<WatchResponse<Self>>), RequestError>
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
-
optionalOptional parameters. Use
Default::default()to not pass any.
Source§impl AppliedClusterResourceQuota
impl AppliedClusterResourceQuota
Sourcepub fn watch_namespaced_applied_cluster_resource_quota(
namespace: &str,
optional: WatchOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<WatchResponse<Self>>), RequestError>
pub fn watch_namespaced_applied_cluster_resource_quota( namespace: &str, optional: WatchOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<WatchResponse<Self>>), RequestError>
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
-
namespaceobject name and auth scope, such as for teams and projects
-
optionalOptional parameters. Use
Default::default()to not pass any.
Trait Implementations§
Source§impl Clone for AppliedClusterResourceQuota
impl Clone for AppliedClusterResourceQuota
Source§fn clone(&self) -> AppliedClusterResourceQuota
fn clone(&self) -> AppliedClusterResourceQuota
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AppliedClusterResourceQuota
impl Debug for AppliedClusterResourceQuota
Source§impl Default for AppliedClusterResourceQuota
impl Default for AppliedClusterResourceQuota
Source§fn default() -> AppliedClusterResourceQuota
fn default() -> AppliedClusterResourceQuota
Source§impl<'de> Deserialize<'de> for AppliedClusterResourceQuota
impl<'de> Deserialize<'de> for AppliedClusterResourceQuota
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Resource for AppliedClusterResourceQuota
impl Resource for AppliedClusterResourceQuota
Source§const API_VERSION: &'static str = "quota.openshift.io/v1"
const API_VERSION: &'static str = "quota.openshift.io/v1"
Resource::GROUP and Resource::VERSION (eg "apiextensions.k8s.io/v1beta1")
or just the version for resources without a group (eg "v1"). Read more