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, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasMetadata()
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;hasMetadata in interface V1Storage.StorageClassOrBuilderpublic Meta.ObjectMeta getMetadata()
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;getMetadata in interface V1Storage.StorageClassOrBuilderpublic Meta.ObjectMetaOrBuilder getMetadataOrBuilder()
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;getMetadataOrBuilder in interface V1Storage.StorageClassOrBuilderpublic boolean hasProvisioner()
Provisioner indicates the type of the provisioner.
optional string provisioner = 2;hasProvisioner in interface V1Storage.StorageClassOrBuilderpublic String getProvisioner()
Provisioner indicates the type of the provisioner.
optional string provisioner = 2;getProvisioner in interface V1Storage.StorageClassOrBuilderpublic com.google.protobuf.ByteString getProvisionerBytes()
Provisioner indicates the type of the provisioner.
optional string provisioner = 2;getProvisionerBytes in interface V1Storage.StorageClassOrBuilderpublic int getParametersCount()
V1Storage.StorageClassOrBuilderParameters holds the parameters for the provisioner that should create volumes of this storage class. +optional
map<string, string> parameters = 3;getParametersCount in interface V1Storage.StorageClassOrBuilderpublic 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.StorageClassOrBuilderpublic 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.StorageClassOrBuilderpublic 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.StorageClassOrBuilderpublic 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.StorageClassOrBuilderpublic 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.StorageClassOrBuilderpublic 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.StorageClassOrBuilderpublic 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.StorageClassOrBuilderpublic 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.StorageClassOrBuilderpublic 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.StorageClassOrBuilderpublic 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.StorageClassOrBuilderpublic 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.StorageClassOrBuilderpublic boolean hasAllowVolumeExpansion()
AllowVolumeExpansion shows whether the storage class allow volume expand +optional
optional bool allowVolumeExpansion = 6;hasAllowVolumeExpansion in interface V1Storage.StorageClassOrBuilderpublic boolean getAllowVolumeExpansion()
AllowVolumeExpansion shows whether the storage class allow volume expand +optional
optional bool allowVolumeExpansion = 6;getAllowVolumeExpansion in interface V1Storage.StorageClassOrBuilderpublic 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.StorageClassOrBuilderpublic 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.StorageClassOrBuilderpublic 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.StorageClassOrBuilderpublic 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
repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8;getAllowedTopologiesList in interface V1Storage.StorageClassOrBuilderpublic 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
repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8;getAllowedTopologiesOrBuilderList in interface V1Storage.StorageClassOrBuilderpublic 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
repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8;getAllowedTopologiesCount in interface V1Storage.StorageClassOrBuilderpublic 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
repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8;getAllowedTopologies in interface V1Storage.StorageClassOrBuilderpublic 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
repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8;getAllowedTopologiesOrBuilder in interface V1Storage.StorageClassOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static V1Storage.StorageClass parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1Storage.StorageClass parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1Storage.StorageClass parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1Storage.StorageClass parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1Storage.StorageClass parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1Storage.StorageClass parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1Storage.StorageClass parseFrom(InputStream input) throws IOException
IOExceptionpublic static V1Storage.StorageClass parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static V1Storage.StorageClass parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static V1Storage.StorageClass parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static V1Storage.StorageClass parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static V1Storage.StorageClass parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic V1Storage.StorageClass.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic 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.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected V1Storage.StorageClass.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public 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.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public V1Storage.StorageClass getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2020. All rights reserved.