Struct k8s_openapi::v1_8::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>,
}

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

AllowVolumeExpansion shows whether the storage class allow volume expand

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 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

Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

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 holds the parameters for the provisioner that should create volumes of this storage class.

Provisioner indicates the type of the provisioner.

Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.

Methods

impl StorageClass
[src]

create a StorageClass

Use CreateStorageV1beta1StorageClassResponse to parse the HTTP response.

impl StorageClass
[src]

delete collection of StorageClass

Use DeleteStorageV1beta1CollectionStorageClassResponse to parse the HTTP response.

impl StorageClass
[src]

delete a StorageClass

Use DeleteStorageV1beta1StorageClassResponse to parse the HTTP response.

impl StorageClass
[src]

list or watch objects of kind StorageClass

Use ListStorageV1beta1StorageClassResponse to parse the HTTP response.

impl StorageClass
[src]

partially update the specified StorageClass

Use PatchStorageV1beta1StorageClassResponse to parse the HTTP response.

impl StorageClass
[src]

read the specified StorageClass

Use ReadStorageV1beta1StorageClassResponse to parse the HTTP response.

impl StorageClass
[src]

replace the specified StorageClass

Use ReplaceStorageV1beta1StorageClassResponse to parse the HTTP response.

impl StorageClass
[src]

watch changes to an object of kind StorageClass

Use WatchStorageV1beta1StorageClassResponse to parse the HTTP response.

impl StorageClass
[src]

watch individual changes to a list of StorageClass

Use WatchStorageV1beta1StorageClassListResponse to parse the HTTP response.

Trait Implementations

impl Clone for StorageClass
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for StorageClass
[src]

Formats the value using the given formatter. Read more

impl Default for StorageClass
[src]

Returns the "default value" for a type. Read more

impl PartialEq for StorageClass
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for StorageClass
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations