Struct k8s_openapi::v1_9::api::storage::v1beta1::StorageClass [−][src]
pub struct StorageClass { pub allow_volume_expansion: Option<bool>, pub api_version: Option<String>, pub kind: Option<String>, pub metadata: Option<ObjectMeta>, pub mount_options: Option<Vec<String>>, pub parameters: Option<BTreeMap<String, String>>, pub provisioner: String, pub reclaim_policy: Option<String>, pub volume_binding_mode: Option<String>, }
StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.
StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.
Fields
allow_volume_expansion: Option<bool>
AllowVolumeExpansion shows whether the storage class allow volume expand
api_version: Option<String>
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources
kind: Option<String>
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
metadata: Option<ObjectMeta>
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
mount_options: Option<Vec<String>>
Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid.
parameters: Option<BTreeMap<String, String>>
Parameters holds the parameters for the provisioner that should create volumes of this storage class.
provisioner: String
Provisioner indicates the type of the provisioner.
reclaim_policy: Option<String>
Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.
volume_binding_mode: Option<String>
VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is alpha-level and is only honored by servers that enable the VolumeScheduling feature.
Methods
impl StorageClass
[src]
impl StorageClass
pub fn create_storage_v1beta1_storage_class(
body: &StorageClass,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn create_storage_v1beta1_storage_class(
body: &StorageClass,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
create a StorageClass
Use CreateStorageV1beta1StorageClassResponse
to parse the HTTP response.
impl StorageClass
[src]
impl StorageClass
pub fn delete_storage_v1beta1_collection_storage_class(
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn delete_storage_v1beta1_collection_storage_class(
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
delete collection of StorageClass
Use DeleteStorageV1beta1CollectionStorageClassResponse
to parse the HTTP response.
impl StorageClass
[src]
impl StorageClass
pub fn delete_storage_v1beta1_storage_class(
name: &str,
grace_period_seconds: Option<i64>,
orphan_dependents: Option<bool>,
pretty: Option<&str>,
propagation_policy: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn delete_storage_v1beta1_storage_class(
name: &str,
grace_period_seconds: Option<i64>,
orphan_dependents: Option<bool>,
pretty: Option<&str>,
propagation_policy: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
delete a StorageClass
Use DeleteStorageV1beta1StorageClassResponse
to parse the HTTP response.
impl StorageClass
[src]
impl StorageClass
pub fn list_storage_v1beta1_storage_class(
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn list_storage_v1beta1_storage_class(
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
list or watch objects of kind StorageClass
Use ListStorageV1beta1StorageClassResponse
to parse the HTTP response.
impl StorageClass
[src]
impl StorageClass
pub fn patch_storage_v1beta1_storage_class(
name: &str,
body: &Patch,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn patch_storage_v1beta1_storage_class(
name: &str,
body: &Patch,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
partially update the specified StorageClass
Use PatchStorageV1beta1StorageClassResponse
to parse the HTTP response.
impl StorageClass
[src]
impl StorageClass
pub fn read_storage_v1beta1_storage_class(
name: &str,
exact: Option<bool>,
export: Option<bool>,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn read_storage_v1beta1_storage_class(
name: &str,
exact: Option<bool>,
export: Option<bool>,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
read the specified StorageClass
Use ReadStorageV1beta1StorageClassResponse
to parse the HTTP response.
impl StorageClass
[src]
impl StorageClass
pub fn replace_storage_v1beta1_storage_class(
name: &str,
body: &StorageClass,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn replace_storage_v1beta1_storage_class(
name: &str,
body: &StorageClass,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
replace the specified StorageClass
Use ReplaceStorageV1beta1StorageClassResponse
to parse the HTTP response.
impl StorageClass
[src]
impl StorageClass
pub fn watch_storage_v1beta1_storage_class(
name: &str,
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn watch_storage_v1beta1_storage_class(
name: &str,
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
watch changes to an object of kind StorageClass
Use WatchStorageV1beta1StorageClassResponse
to parse the HTTP response.
impl StorageClass
[src]
impl StorageClass
pub fn watch_storage_v1beta1_storage_class_list(
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn watch_storage_v1beta1_storage_class_list(
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
watch individual changes to a list of StorageClass
Use WatchStorageV1beta1StorageClassListResponse
to parse the HTTP response.
Trait Implementations
impl Clone for StorageClass
[src]
impl Clone for StorageClass
fn clone(&self) -> StorageClass
[src]
fn clone(&self) -> StorageClass
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for StorageClass
[src]
impl Debug for StorageClass
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for StorageClass
[src]
impl Default for StorageClass
fn default() -> StorageClass
[src]
fn default() -> StorageClass
Returns the "default value" for a type. Read more
impl PartialEq for StorageClass
[src]
impl PartialEq for StorageClass
fn eq(&self, other: &StorageClass) -> bool
[src]
fn eq(&self, other: &StorageClass) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &StorageClass) -> bool
[src]
fn ne(&self, other: &StorageClass) -> bool
This method tests for !=
.
impl<'de> Deserialize<'de> for StorageClass
[src]
impl<'de> Deserialize<'de> for StorageClass
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for StorageClass
[src]
impl Serialize for StorageClass
Auto Trait Implementations
impl Send for StorageClass
impl Send for StorageClass
impl Sync for StorageClass
impl Sync for StorageClass