Package k8s.io.api.core.v1
Interface Generated.SecretOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Generated.Secret,Generated.Secret.Builder
- Enclosing class:
- Generated
public static interface Generated.SecretOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleancontainsData(String key)Data contains the secret data.booleancontainsStringData(String key)stringData allows specifying non-binary secret data in string form.Map<String,com.google.protobuf.ByteString>getData()Deprecated.intgetDataCount()Data contains the secret data.Map<String,com.google.protobuf.ByteString>getDataMap()Data contains the secret data.com.google.protobuf.ByteStringgetDataOrDefault(String key, com.google.protobuf.ByteString defaultValue)Data contains the secret data.com.google.protobuf.ByteStringgetDataOrThrow(String key)Data contains the secret data.booleangetImmutable()Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified).Generated.ObjectMetagetMetadata()Standard object's metadata.Generated.ObjectMetaOrBuildergetMetadataOrBuilder()Standard object's metadata.Map<String,String>getStringData()Deprecated.intgetStringDataCount()stringData allows specifying non-binary secret data in string form.Map<String,String>getStringDataMap()stringData allows specifying non-binary secret data in string form.StringgetStringDataOrDefault(String key, String defaultValue)stringData allows specifying non-binary secret data in string form.StringgetStringDataOrThrow(String key)stringData allows specifying non-binary secret data in string form.StringgetType()Used to facilitate programmatic handling of secret data.com.google.protobuf.ByteStringgetTypeBytes()Used to facilitate programmatic handling of secret data.booleanhasImmutable()Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified).booleanhasMetadata()Standard object's metadata.booleanhasType()Used to facilitate programmatic handling of secret data.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasMetadata
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;- Returns:
- Whether the metadata field is set.
-
getMetadata
Generated.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;- Returns:
- The metadata.
-
getMetadataOrBuilder
Generated.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;
-
hasImmutable
boolean hasImmutable()
Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. +optional
optional bool immutable = 5;- Returns:
- Whether the immutable field is set.
-
getImmutable
boolean getImmutable()
Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. +optional
optional bool immutable = 5;- Returns:
- The immutable.
-
getDataCount
int getDataCount()
Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 +optional
map<string, bytes> data = 2;
-
containsData
boolean containsData(String key)
Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 +optional
map<string, bytes> data = 2;
-
getData
@Deprecated Map<String,com.google.protobuf.ByteString> getData()
Deprecated.UsegetDataMap()instead.
-
getDataMap
Map<String,com.google.protobuf.ByteString> getDataMap()
Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 +optional
map<string, bytes> data = 2;
-
getDataOrDefault
com.google.protobuf.ByteString getDataOrDefault(String key, com.google.protobuf.ByteString defaultValue)
Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 +optional
map<string, bytes> data = 2;
-
getDataOrThrow
com.google.protobuf.ByteString getDataOrThrow(String key)
Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 +optional
map<string, bytes> data = 2;
-
getStringDataCount
int getStringDataCount()
stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API. +k8s:conversion-gen=false +optional
map<string, string> stringData = 4;
-
containsStringData
boolean containsStringData(String key)
stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API. +k8s:conversion-gen=false +optional
map<string, string> stringData = 4;
-
getStringData
@Deprecated Map<String,String> getStringData()
Deprecated.UsegetStringDataMap()instead.
-
getStringDataMap
Map<String,String> getStringDataMap()
stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API. +k8s:conversion-gen=false +optional
map<string, string> stringData = 4;
-
getStringDataOrDefault
String getStringDataOrDefault(String key, String defaultValue)
stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API. +k8s:conversion-gen=false +optional
map<string, string> stringData = 4;
-
getStringDataOrThrow
String getStringDataOrThrow(String key)
stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API. +k8s:conversion-gen=false +optional
map<string, string> stringData = 4;
-
hasType
boolean hasType()
Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types +optional
optional string type = 3;- Returns:
- Whether the type field is set.
-
getType
String getType()
Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types +optional
optional string type = 3;- Returns:
- The type.
-
getTypeBytes
com.google.protobuf.ByteString getTypeBytes()
Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types +optional
optional string type = 3;- Returns:
- The bytes for type.
-
-