Class V1beta1VolumeAttributesClass
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1beta1VolumeAttributesClass
- All Implemented Interfaces:
KubernetesObject
,KubernetesType
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1beta1VolumeAttributesClass
extends Object
implements KubernetesObject
VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiVersion
(String apiVersion) Set apiVersion in a chainable fashion.driverName
(String driverName) Set driverName in a chainable fashion.boolean
APIVersion defines the versioned schema of this representation of an object.Name of the CSI driver This field is immutable.getKind()
Kind is a string value representing the REST resource this object represents.Gets metadata.parameters hold volume attributes defined by the CSI driver.int
hashCode()
Set kind in a chainable fashion.metadata
(V1ObjectMeta metadata) Set metadata in a chainable fashion.parameters
(Map<String, @NotNull String> parameters) Set parameters in a chainable fashion.putparametersItem
(String key, String parametersItem) Set the value for the key for the parameters map property in a chainable fashion.void
setApiVersion
(String apiVersion) Set the apiVersion property valuevoid
setDriverName
(String driverName) Set the driverName property valuevoid
Set the kind property valuevoid
setMetadata
(V1ObjectMeta metadata) Set the metadata property valuevoid
setParameters
(Map<String, @NotNull String> parameters) Set the parameters property valuetoString()
-
Field Details
-
JSON_PROPERTY_DRIVER_NAME
- See Also:
-
JSON_PROPERTY_API_VERSION
- See Also:
-
JSON_PROPERTY_KIND
- See Also:
-
JSON_PROPERTY_METADATA
- See Also:
-
JSON_PROPERTY_PARAMETERS
- See Also:
-
-
Constructor Details
-
V1beta1VolumeAttributesClass
-
-
Method Details
-
getDriverName
Name of the CSI driver This field is immutable.- Returns:
- the driverName property value
-
setDriverName
Set the driverName property value- Parameters:
driverName
- property value to set
-
driverName
Set driverName in a chainable fashion.- Returns:
- The same instance of V1beta1VolumeAttributesClass for chaining.
-
getApiVersion
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/sig-architecture/api-conventions.md#resources- Specified by:
getApiVersion
in interfaceKubernetesType
- Returns:
- the apiVersion property value
-
setApiVersion
Set the apiVersion property value- Parameters:
apiVersion
- property value to set
-
apiVersion
Set apiVersion in a chainable fashion.- Returns:
- The same instance of V1beta1VolumeAttributesClass for chaining.
-
getKind
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/sig-architecture/api-conventions.md#types-kinds- Specified by:
getKind
in interfaceKubernetesType
- Returns:
- the kind property value
-
setKind
Set the kind property value- Parameters:
kind
- property value to set
-
kind
Set kind in a chainable fashion.- Returns:
- The same instance of V1beta1VolumeAttributesClass for chaining.
-
getMetadata
Description copied from interface:KubernetesObject
Gets metadata.ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
- Specified by:
getMetadata
in interfaceKubernetesObject
- Returns:
- the metadata property value
-
setMetadata
Set the metadata property value- Parameters:
metadata
- property value to set
-
metadata
Set metadata in a chainable fashion.- Returns:
- The same instance of V1beta1VolumeAttributesClass for chaining.
-
getParameters
parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass. This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.- Returns:
- the parameters property value
-
setParameters
Set the parameters property value- Parameters:
parameters
- property value to set
-
parameters
Set parameters in a chainable fashion.- Returns:
- The same instance of V1beta1VolumeAttributesClass for chaining.
-
putparametersItem
Set the value for the key for the parameters map property in a chainable fashion.- Returns:
- The same instance of V1beta1VolumeAttributesClass for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-