Class V1beta1VolumeAttributesClass
java.lang.Object
io.kubernetes.client.openapi.models.V1beta1VolumeAttributesClass
- All Implemented Interfaces:
KubernetesObject
,KubernetesType
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[Etc/UTC]",
comments="Generator version: 7.6.0")
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiVersion
(String apiVersion) driverName
(String driverName) boolean
static V1beta1VolumeAttributesClass
Create an instance of V1beta1VolumeAttributesClass given an JSON stringAPIVersion 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.Get metadataparameters hold volume attributes defined by the CSI driver.int
hashCode()
metadata
(V1ObjectMeta metadata) parameters
(Map<String, String> parameters) putParametersItem
(String key, String parametersItem) void
setApiVersion
(String apiVersion) void
setDriverName
(String driverName) void
void
setMetadata
(V1ObjectMeta metadata) void
setParameters
(Map<String, String> parameters) toJson()
Convert an instance of V1beta1VolumeAttributesClass to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_API_VERSION
- See Also:
-
SERIALIZED_NAME_DRIVER_NAME
- See Also:
-
SERIALIZED_NAME_KIND
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
SERIALIZED_NAME_PARAMETERS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1beta1VolumeAttributesClass
public V1beta1VolumeAttributesClass()
-
-
Method Details
-
apiVersion
-
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:
- apiVersion
-
setApiVersion
-
driverName
-
getDriverName
Name of the CSI driver This field is immutable.- Returns:
- driverName
-
setDriverName
-
kind
-
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:
- kind
-
setKind
-
metadata
-
getMetadata
Get metadata- Specified by:
getMetadata
in interfaceKubernetesObject
- Returns:
- metadata
-
setMetadata
-
parameters
-
putParametersItem
-
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:
- parameters
-
setParameters
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to V1beta1VolumeAttributesClass
-
fromJson
Create an instance of V1beta1VolumeAttributesClass given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1beta1VolumeAttributesClass
- Throws:
IOException
- if the JSON string is invalid with respect to V1beta1VolumeAttributesClass
-
toJson
Convert an instance of V1beta1VolumeAttributesClass to an JSON string- Returns:
- JSON string
-