Struct k8s_openapi::v1_8::api::storage::v1::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>,
}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.
Methods
impl StorageClass[src]
impl StorageClasspub fn create_storage_v1_storage_class(
body: &StorageClass,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn create_storage_v1_storage_class(
body: &StorageClass,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>create a StorageClass
Use CreateStorageV1StorageClassResponse to parse the HTTP response.
impl StorageClass[src]
impl StorageClasspub fn delete_storage_v1_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_v1_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 DeleteStorageV1CollectionStorageClassResponse to parse the HTTP response.
impl StorageClass[src]
impl StorageClasspub fn delete_storage_v1_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_v1_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 DeleteStorageV1StorageClassResponse to parse the HTTP response.
impl StorageClass[src]
impl StorageClasspub fn list_storage_v1_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_v1_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 ListStorageV1StorageClassResponse to parse the HTTP response.
impl StorageClass[src]
impl StorageClasspub fn patch_storage_v1_storage_class(
name: &str,
body: &Patch,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn patch_storage_v1_storage_class(
name: &str,
body: &Patch,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>partially update the specified StorageClass
Use PatchStorageV1StorageClassResponse to parse the HTTP response.
impl StorageClass[src]
impl StorageClasspub fn read_storage_v1_storage_class(
name: &str,
exact: Option<bool>,
export: Option<bool>,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn read_storage_v1_storage_class(
name: &str,
exact: Option<bool>,
export: Option<bool>,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>read the specified StorageClass
Use ReadStorageV1StorageClassResponse to parse the HTTP response.
impl StorageClass[src]
impl StorageClasspub fn replace_storage_v1_storage_class(
name: &str,
body: &StorageClass,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn replace_storage_v1_storage_class(
name: &str,
body: &StorageClass,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>replace the specified StorageClass
Use ReplaceStorageV1StorageClassResponse to parse the HTTP response.
impl StorageClass[src]
impl StorageClasspub fn watch_storage_v1_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_v1_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 WatchStorageV1StorageClassResponse to parse the HTTP response.
impl StorageClass[src]
impl StorageClasspub fn watch_storage_v1_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_v1_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 WatchStorageV1StorageClassListResponse to parse the HTTP response.
Trait Implementations
impl Clone for StorageClass[src]
impl Clone for StorageClassfn clone(&self) -> StorageClass[src]
fn clone(&self) -> StorageClassReturns 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 StorageClassfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for StorageClass[src]
impl Default for StorageClassfn default() -> StorageClass[src]
fn default() -> StorageClassReturns the "default value" for a type. Read more
impl PartialEq for StorageClass[src]
impl PartialEq for StorageClassfn eq(&self, other: &StorageClass) -> bool[src]
fn eq(&self, other: &StorageClass) -> boolThis 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) -> boolThis method tests for !=.
impl<'de> Deserialize<'de> for StorageClass[src]
impl<'de> Deserialize<'de> for StorageClassfn 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 StorageClassAuto Trait Implementations
impl Send for StorageClass
impl Send for StorageClassimpl Sync for StorageClass
impl Sync for StorageClass