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

View Source

StatusSourceGenerationContext()

Declaration
public StatusSourceGenerationContext()
View Source

StatusSourceGenerationContext(JsonSerializerOptions)

Declaration
public StatusSourceGenerationContext(JsonSerializerOptions options)
Parameters
Type Name Description
JsonSerializerOptions options

Properties

View Source

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>
View Source

Default

The default JsonSerializerContext associated with a default JsonSerializerOptions instance.

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

GeneratedSerializerOptions

The source-generated options associated with this context.

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

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>>
View Source

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>
View Source

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>
View Source

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?>
View Source

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?>
View Source

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>
View Source

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>
View Source

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>
View Source

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>
View Source

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

View Source

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
  • View Source
In this article
Back to top Generated by DocFX