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
View Source
StatusSourceGenerationContext()
Declaration
public StatusSourceGenerationContext()
View Source
StatusSourceGenerationContext(JsonSerializerOptions)
Declaration
public StatusSourceGenerationContext(JsonSerializerOptions options)
Parameters
Properties
View Source
Boolean
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<bool> Boolean { get; }
Property Value
View Source
Default
Declaration
public static StatusSourceGenerationContext Default { get; }
Property Value
View Source
GeneratedSerializerOptions
The source-generated options associated with this context.
Declaration
protected override JsonSerializerOptions? GeneratedSerializerOptions { get; }
Property Value
Overrides
View Source
IListV1StatusCause
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<IList<V1StatusCause>> IListV1StatusCause { get; }
Property Value
View Source
Int32
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<int> Int32 { get; }
Property Value
View Source
Int64
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<long> Int64 { get; }
Property Value
View Source
NullableInt32
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<int?> NullableInt32 { get; }
Property Value
View Source
NullableInt64
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<long?> NullableInt64 { get; }
Property Value
View Source
String
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<string> String { get; }
Property Value
View Source
V1ListMeta
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<V1ListMeta> V1ListMeta { get; }
Property Value
View Source
V1Status
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<V1Status> V1Status { get; }
Property Value
View Source
V1StatusCause
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<V1StatusCause> V1StatusCause { get; }
Property Value
View Source
V1StatusDetails
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<V1StatusDetails> V1StatusDetails { get; }
Property Value
Methods
View Source
GetTypeInfo(Type)
Declaration
public override JsonTypeInfo? GetTypeInfo(Type type)
Parameters
| Type |
Name |
Description |
| Type |
type |
|
Returns
Overrides
Implements