Show / Hide Table of Contents

Class StatusSourceGenerationContext

Used by V1Status in order to avoid the recursive loop as SourceGenerationContext contains V1StatusObjectViewConverter

Inheritance
object
JsonSerializerContext
StatusSourceGenerationContext
Implements
IJsonTypeInfoResolver
Inherited Members
JsonSerializerContext.Options
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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
Type Name Description
JsonSerializerOptions options

Properties

Boolean

Defines the source generated JSON serialization contract metadata for a given type.

Declaration
public JsonTypeInfo<bool> Boolean { get; }
Property Value
Type Description
JsonTypeInfo<bool>

Default

The default JsonSerializerContext associated with a default JsonSerializerOptions instance.

Declaration
public static StatusSourceGenerationContext Default { get; }
Property Value
Type Description
StatusSourceGenerationContext

GeneratedSerializerOptions

The source-generated options associated with this context.

Declaration
protected override JsonSerializerOptions? GeneratedSerializerOptions { get; }
Property Value
Type Description
JsonSerializerOptions
Overrides
JsonSerializerContext.GeneratedSerializerOptions

IListV1StatusCause

Defines the source generated JSON serialization contract metadata for a given type.

Declaration
public JsonTypeInfo<IList<V1StatusCause>> IListV1StatusCause { get; }
Property Value
Type Description
JsonTypeInfo<IList<V1StatusCause>>

Int32

Defines the source generated JSON serialization contract metadata for a given type.

Declaration
public JsonTypeInfo<int> Int32 { get; }
Property Value
Type Description
JsonTypeInfo<int>

Int64

Defines the source generated JSON serialization contract metadata for a given type.

Declaration
public JsonTypeInfo<long> Int64 { get; }
Property Value
Type Description
JsonTypeInfo<long>

NullableInt32

Defines the source generated JSON serialization contract metadata for a given type.

Declaration
public JsonTypeInfo<int?> NullableInt32 { get; }
Property Value
Type Description
JsonTypeInfo<int?>

NullableInt64

Defines the source generated JSON serialization contract metadata for a given type.

Declaration
public JsonTypeInfo<long?> NullableInt64 { get; }
Property Value
Type Description
JsonTypeInfo<long?>

String

Defines the source generated JSON serialization contract metadata for a given type.

Declaration
public JsonTypeInfo<string> String { get; }
Property Value
Type Description
JsonTypeInfo<string>

V1ListMeta

Defines the source generated JSON serialization contract metadata for a given type.

Declaration
public JsonTypeInfo<V1ListMeta> V1ListMeta { get; }
Property Value
Type Description
JsonTypeInfo<V1ListMeta>

V1ShardInfo

Defines the source generated JSON serialization contract metadata for a given type.

Declaration
public JsonTypeInfo<V1ShardInfo> V1ShardInfo { get; }
Property Value
Type Description
JsonTypeInfo<V1ShardInfo>

V1Status

Defines the source generated JSON serialization contract metadata for a given type.

Declaration
public JsonTypeInfo<V1Status> V1Status { get; }
Property Value
Type Description
JsonTypeInfo<V1Status>

V1StatusCause

Defines the source generated JSON serialization contract metadata for a given type.

Declaration
public JsonTypeInfo<V1StatusCause> V1StatusCause { get; }
Property Value
Type Description
JsonTypeInfo<V1StatusCause>

V1StatusDetails

Defines the source generated JSON serialization contract metadata for a given type.

Declaration
public JsonTypeInfo<V1StatusDetails> V1StatusDetails { get; }
Property Value
Type Description
JsonTypeInfo<V1StatusDetails>

Methods

GetTypeInfo(Type)

Declaration
public override JsonTypeInfo? GetTypeInfo(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
JsonTypeInfo
Overrides
JsonSerializerContext.GetTypeInfo(Type)

Implements

IJsonTypeInfoResolver
In this article
Back to top Generated by DocFX