public static final class V1Storage.StorageClass extends com.google.protobuf.GeneratedMessageV3 implements V1Storage.StorageClassOrBuilder
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.Protobuf type
k8s.io.api.storage.v1.StorageClass
Modifier and Type | Class and Description |
---|---|
static class |
V1Storage.StorageClass.Builder
StorageClass describes the parameters for a class of storage for
which PersistentVolumes can be dynamically provisioned.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
Modifier and Type | Field and Description |
---|---|
static int |
ALLOWEDTOPOLOGIES_FIELD_NUMBER |
static int |
ALLOWVOLUMEEXPANSION_FIELD_NUMBER |
static int |
METADATA_FIELD_NUMBER |
static int |
MOUNTOPTIONS_FIELD_NUMBER |
static int |
PARAMETERS_FIELD_NUMBER |
static com.google.protobuf.Parser<V1Storage.StorageClass> |
PARSER
Deprecated.
|
static int |
PROVISIONER_FIELD_NUMBER |
static int |
RECLAIMPOLICY_FIELD_NUMBER |
static int |
VOLUMEBINDINGMODE_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
containsParameters(String key)
Parameters holds the parameters for the provisioner that should
create volumes of this storage class.
|
boolean |
equals(Object obj) |
V1.TopologySelectorTerm |
getAllowedTopologies(int index)
Restrict the node topologies where volumes can be dynamically provisioned.
|
int |
getAllowedTopologiesCount()
Restrict the node topologies where volumes can be dynamically provisioned.
|
List<V1.TopologySelectorTerm> |
getAllowedTopologiesList()
Restrict the node topologies where volumes can be dynamically provisioned.
|
V1.TopologySelectorTermOrBuilder |
getAllowedTopologiesOrBuilder(int index)
Restrict the node topologies where volumes can be dynamically provisioned.
|
List<? extends V1.TopologySelectorTermOrBuilder> |
getAllowedTopologiesOrBuilderList()
Restrict the node topologies where volumes can be dynamically provisioned.
|
boolean |
getAllowVolumeExpansion()
AllowVolumeExpansion shows whether the storage class allow volume expand
+optional
|
static V1Storage.StorageClass |
getDefaultInstance() |
V1Storage.StorageClass |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Meta.ObjectMeta |
getMetadata()
Standard object's metadata.
|
Meta.ObjectMetaOrBuilder |
getMetadataOrBuilder()
Standard object's metadata.
|
String |
getMountOptions(int index)
Dynamically provisioned PersistentVolumes of this storage class are
created with these mountOptions, e.g.
|
com.google.protobuf.ByteString |
getMountOptionsBytes(int index)
Dynamically provisioned PersistentVolumes of this storage class are
created with these mountOptions, e.g.
|
int |
getMountOptionsCount()
Dynamically provisioned PersistentVolumes of this storage class are
created with these mountOptions, e.g.
|
com.google.protobuf.ProtocolStringList |
getMountOptionsList()
Dynamically provisioned PersistentVolumes of this storage class are
created with these mountOptions, e.g.
|
Map<String,String> |
getParameters()
Deprecated.
|
int |
getParametersCount()
Parameters holds the parameters for the provisioner that should
create volumes of this storage class.
|
Map<String,String> |
getParametersMap()
Parameters holds the parameters for the provisioner that should
create volumes of this storage class.
|
String |
getParametersOrDefault(String key,
String defaultValue)
Parameters holds the parameters for the provisioner that should
create volumes of this storage class.
|
String |
getParametersOrThrow(String key)
Parameters holds the parameters for the provisioner that should
create volumes of this storage class.
|
com.google.protobuf.Parser<V1Storage.StorageClass> |
getParserForType() |
String |
getProvisioner()
Provisioner indicates the type of the provisioner.
|
com.google.protobuf.ByteString |
getProvisionerBytes()
Provisioner indicates the type of the provisioner.
|
String |
getReclaimPolicy()
Dynamically provisioned PersistentVolumes of this storage class are
created with this reclaimPolicy.
|
com.google.protobuf.ByteString |
getReclaimPolicyBytes()
Dynamically provisioned PersistentVolumes of this storage class are
created with this reclaimPolicy.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
String |
getVolumeBindingMode()
VolumeBindingMode indicates how PersistentVolumeClaims should be
provisioned and bound.
|
com.google.protobuf.ByteString |
getVolumeBindingModeBytes()
VolumeBindingMode indicates how PersistentVolumeClaims should be
provisioned and bound.
|
boolean |
hasAllowVolumeExpansion()
AllowVolumeExpansion shows whether the storage class allow volume expand
+optional
|
int |
hashCode() |
boolean |
hasMetadata()
Standard object's metadata.
|
boolean |
hasProvisioner()
Provisioner indicates the type of the provisioner.
|
boolean |
hasReclaimPolicy()
Dynamically provisioned PersistentVolumes of this storage class are
created with this reclaimPolicy.
|
boolean |
hasVolumeBindingMode()
VolumeBindingMode indicates how PersistentVolumeClaims should be
provisioned and bound.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static V1Storage.StorageClass.Builder |
newBuilder() |
static V1Storage.StorageClass.Builder |
newBuilder(V1Storage.StorageClass prototype) |
V1Storage.StorageClass.Builder |
newBuilderForType() |
protected V1Storage.StorageClass.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static V1Storage.StorageClass |
parseDelimitedFrom(InputStream input) |
static V1Storage.StorageClass |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1Storage.StorageClass |
parseFrom(byte[] data) |
static V1Storage.StorageClass |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1Storage.StorageClass |
parseFrom(ByteBuffer data) |
static V1Storage.StorageClass |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1Storage.StorageClass |
parseFrom(com.google.protobuf.ByteString data) |
static V1Storage.StorageClass |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1Storage.StorageClass |
parseFrom(com.google.protobuf.CodedInputStream input) |
static V1Storage.StorageClass |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1Storage.StorageClass |
parseFrom(InputStream input) |
static V1Storage.StorageClass |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<V1Storage.StorageClass> |
parser() |
V1Storage.StorageClass.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int METADATA_FIELD_NUMBER
public static final int PROVISIONER_FIELD_NUMBER
public static final int PARAMETERS_FIELD_NUMBER
public static final int RECLAIMPOLICY_FIELD_NUMBER
public static final int MOUNTOPTIONS_FIELD_NUMBER
public static final int ALLOWVOLUMEEXPANSION_FIELD_NUMBER
public static final int VOLUMEBINDINGMODE_FIELD_NUMBER
public static final int ALLOWEDTOPOLOGIES_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<V1Storage.StorageClass> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField
in class com.google.protobuf.GeneratedMessageV3
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public boolean hasMetadata()
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
hasMetadata
in interface V1Storage.StorageClassOrBuilder
public Meta.ObjectMeta getMetadata()
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
getMetadata
in interface V1Storage.StorageClassOrBuilder
public Meta.ObjectMetaOrBuilder getMetadataOrBuilder()
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
getMetadataOrBuilder
in interface V1Storage.StorageClassOrBuilder
public boolean hasProvisioner()
Provisioner indicates the type of the provisioner.
optional string provisioner = 2;
hasProvisioner
in interface V1Storage.StorageClassOrBuilder
public String getProvisioner()
Provisioner indicates the type of the provisioner.
optional string provisioner = 2;
getProvisioner
in interface V1Storage.StorageClassOrBuilder
public com.google.protobuf.ByteString getProvisionerBytes()
Provisioner indicates the type of the provisioner.
optional string provisioner = 2;
getProvisionerBytes
in interface V1Storage.StorageClassOrBuilder
public int getParametersCount()
V1Storage.StorageClassOrBuilder
Parameters holds the parameters for the provisioner that should create volumes of this storage class. +optional
map<string, string> parameters = 3;
getParametersCount
in interface V1Storage.StorageClassOrBuilder
public boolean containsParameters(String key)
Parameters holds the parameters for the provisioner that should create volumes of this storage class. +optional
map<string, string> parameters = 3;
containsParameters
in interface V1Storage.StorageClassOrBuilder
@Deprecated public Map<String,String> getParameters()
getParametersMap()
instead.getParameters
in interface V1Storage.StorageClassOrBuilder
public Map<String,String> getParametersMap()
Parameters holds the parameters for the provisioner that should create volumes of this storage class. +optional
map<string, string> parameters = 3;
getParametersMap
in interface V1Storage.StorageClassOrBuilder
public String getParametersOrDefault(String key, String defaultValue)
Parameters holds the parameters for the provisioner that should create volumes of this storage class. +optional
map<string, string> parameters = 3;
getParametersOrDefault
in interface V1Storage.StorageClassOrBuilder
public String getParametersOrThrow(String key)
Parameters holds the parameters for the provisioner that should create volumes of this storage class. +optional
map<string, string> parameters = 3;
getParametersOrThrow
in interface V1Storage.StorageClassOrBuilder
public boolean hasReclaimPolicy()
Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. +optional
optional string reclaimPolicy = 4;
hasReclaimPolicy
in interface V1Storage.StorageClassOrBuilder
public String getReclaimPolicy()
Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. +optional
optional string reclaimPolicy = 4;
getReclaimPolicy
in interface V1Storage.StorageClassOrBuilder
public com.google.protobuf.ByteString getReclaimPolicyBytes()
Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. +optional
optional string reclaimPolicy = 4;
getReclaimPolicyBytes
in interface V1Storage.StorageClassOrBuilder
public com.google.protobuf.ProtocolStringList getMountOptionsList()
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. +optional
repeated string mountOptions = 5;
getMountOptionsList
in interface V1Storage.StorageClassOrBuilder
public int getMountOptionsCount()
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. +optional
repeated string mountOptions = 5;
getMountOptionsCount
in interface V1Storage.StorageClassOrBuilder
public String getMountOptions(int index)
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. +optional
repeated string mountOptions = 5;
getMountOptions
in interface V1Storage.StorageClassOrBuilder
public com.google.protobuf.ByteString getMountOptionsBytes(int index)
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. +optional
repeated string mountOptions = 5;
getMountOptionsBytes
in interface V1Storage.StorageClassOrBuilder
public boolean hasAllowVolumeExpansion()
AllowVolumeExpansion shows whether the storage class allow volume expand +optional
optional bool allowVolumeExpansion = 6;
hasAllowVolumeExpansion
in interface V1Storage.StorageClassOrBuilder
public boolean getAllowVolumeExpansion()
AllowVolumeExpansion shows whether the storage class allow volume expand +optional
optional bool allowVolumeExpansion = 6;
getAllowVolumeExpansion
in interface V1Storage.StorageClassOrBuilder
public boolean hasVolumeBindingMode()
VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. +optional
optional string volumeBindingMode = 7;
hasVolumeBindingMode
in interface V1Storage.StorageClassOrBuilder
public String getVolumeBindingMode()
VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. +optional
optional string volumeBindingMode = 7;
getVolumeBindingMode
in interface V1Storage.StorageClassOrBuilder
public com.google.protobuf.ByteString getVolumeBindingModeBytes()
VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. +optional
optional string volumeBindingMode = 7;
getVolumeBindingModeBytes
in interface V1Storage.StorageClassOrBuilder
public List<V1.TopologySelectorTerm> getAllowedTopologiesList()
Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. +optional +listType=atomic
repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8;
getAllowedTopologiesList
in interface V1Storage.StorageClassOrBuilder
public List<? extends V1.TopologySelectorTermOrBuilder> getAllowedTopologiesOrBuilderList()
Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. +optional +listType=atomic
repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8;
getAllowedTopologiesOrBuilderList
in interface V1Storage.StorageClassOrBuilder
public int getAllowedTopologiesCount()
Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. +optional +listType=atomic
repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8;
getAllowedTopologiesCount
in interface V1Storage.StorageClassOrBuilder
public V1.TopologySelectorTerm getAllowedTopologies(int index)
Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. +optional +listType=atomic
repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8;
getAllowedTopologies
in interface V1Storage.StorageClassOrBuilder
public V1.TopologySelectorTermOrBuilder getAllowedTopologiesOrBuilder(int index)
Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. +optional +listType=atomic
repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8;
getAllowedTopologiesOrBuilder
in interface V1Storage.StorageClassOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static V1Storage.StorageClass parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static V1Storage.StorageClass parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static V1Storage.StorageClass parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static V1Storage.StorageClass parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static V1Storage.StorageClass parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static V1Storage.StorageClass parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static V1Storage.StorageClass parseFrom(InputStream input) throws IOException
IOException
public static V1Storage.StorageClass parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static V1Storage.StorageClass parseDelimitedFrom(InputStream input) throws IOException
IOException
public static V1Storage.StorageClass parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static V1Storage.StorageClass parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static V1Storage.StorageClass parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public V1Storage.StorageClass.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static V1Storage.StorageClass.Builder newBuilder()
public static V1Storage.StorageClass.Builder newBuilder(V1Storage.StorageClass prototype)
public V1Storage.StorageClass.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected V1Storage.StorageClass.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static V1Storage.StorageClass getDefaultInstance()
public static com.google.protobuf.Parser<V1Storage.StorageClass> parser()
public com.google.protobuf.Parser<V1Storage.StorageClass> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public V1Storage.StorageClass getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2022. All rights reserved.