Class V1Secret
Secret holds secret data of a certain type. The total bytes of the values in the
Data field must be less than MaxSecretSize bytes.
Assembly: KubernetesClient.dll
Syntax
[KubernetesEntity(Group = "", Kind = "Secret", ApiVersion = "v1", PluralName = "secrets")]
public record V1Secret : IKubernetesObject<V1ObjectMeta>, IKubernetesObject, IMetadata<V1ObjectMeta>, IEquatable<V1Secret>
Constructors
View Source
V1Secret()
Declaration
View Source
V1Secret(V1Secret)
Declaration
protected V1Secret(V1Secret original)
Parameters
Fields
View Source
KubeApiVersion
Declaration
public const string KubeApiVersion = "v1"
Field Value
View Source
KubeGroup
Declaration
public const string KubeGroup = ""
Field Value
View Source
KubeKind
Declaration
public const string KubeKind = "Secret"
Field Value
View Source
KubePluralName
Declaration
public const string KubePluralName = "secrets"
Field Value
Properties
View Source
ApiVersion
Declaration
[JsonPropertyName("apiVersion")]
public string ApiVersion { get; set; }
Property Value
View Source
Data
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
Declaration
[JsonPropertyName("data")]
public IDictionary<string, byte[]> Data { get; set; }
Property Value
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
Immutable
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.
Declaration
[JsonPropertyName("immutable")]
public bool? Immutable { get; set; }
Property Value
View Source
Kind
Declaration
[JsonPropertyName("kind")]
public string Kind { get; set; }
Property Value
View Source
Declaration
[JsonPropertyName("metadata")]
public V1ObjectMeta Metadata { get; set; }
Property Value
View Source
StringData
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.
Declaration
[JsonPropertyName("stringData")]
public IDictionary<string, string> StringData { get; set; }
Property Value
View Source
Type
Declaration
[JsonPropertyName("type")]
public string Type { get; set; }
Property Value
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(V1Secret?)
Declaration
public virtual bool Equals(V1Secret? other)
Parameters
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
View Source
operator ==(V1Secret?, V1Secret?)
Declaration
public static bool operator ==(V1Secret? left, V1Secret? right)
Parameters
Returns
View Source
operator !=(V1Secret?, V1Secret?)
Declaration
public static bool operator !=(V1Secret? left, V1Secret? right)
Parameters
Returns
Implements
Extension Methods