Class StatusSourceGenerationContext
Used by V1Status in order to avoid the recursive loop as SourceGenerationContext contains V1StatusObjectViewConverter
Inheritance
StatusSourceGenerationContext
Namespace: k8s
Assembly: KubernetesClient.dll
Syntax
[JsonSerializable(typeof(V1Status))]
[JsonSourceGenerationOptions(DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull, PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase, UseStringEnumConverter = true, Converters = new Type[] { typeof(KubernetesJson.Iso8601TimeSpanConverter), typeof(KubernetesJson.KubernetesDateTimeConverter), typeof(KubernetesJson.KubernetesDateTimeOffsetConverter) })]
public class StatusSourceGenerationContext : JsonSerializerContext, IJsonTypeInfoResolver
Constructors
StatusSourceGenerationContext()
Declaration
public StatusSourceGenerationContext()
StatusSourceGenerationContext(JsonSerializerOptions)
Declaration
public StatusSourceGenerationContext(JsonSerializerOptions options)
Parameters
Properties
Boolean
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<bool> Boolean { get; }
Property Value
Default
Declaration
public static StatusSourceGenerationContext Default { get; }
Property Value
GeneratedSerializerOptions
The source-generated options associated with this context.
Declaration
protected override JsonSerializerOptions? GeneratedSerializerOptions { get; }
Property Value
Overrides
IListV1StatusCause
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<IList<V1StatusCause>> IListV1StatusCause { get; }
Property Value
Int32
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<int> Int32 { get; }
Property Value
Int64
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<long> Int64 { get; }
Property Value
NullableInt32
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<int?> NullableInt32 { get; }
Property Value
NullableInt64
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<long?> NullableInt64 { get; }
Property Value
String
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<string> String { get; }
Property Value
V1ListMeta
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<V1ListMeta> V1ListMeta { get; }
Property Value
V1ShardInfo
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<V1ShardInfo> V1ShardInfo { get; }
Property Value
V1Status
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<V1Status> V1Status { get; }
Property Value
V1StatusCause
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<V1StatusCause> V1StatusCause { get; }
Property Value
V1StatusDetails
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<V1StatusDetails> V1StatusDetails { get; }
Property Value
Methods
GetTypeInfo(Type)
Declaration
public override JsonTypeInfo? GetTypeInfo(Type type)
Parameters
| Type |
Name |
Description |
| Type |
type |
|
Returns
Overrides
Implements