Class KubernetesList<T>
Inherited Members
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public class KubernetesList<T> : IMetadata<V1ListMeta>, IItems<T> where T : IKubernetesObject
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
View SourceKubernetesList(IList<T>, string, string, V1ListMeta)
Declaration
public KubernetesList(IList<T> items, string apiVersion = null, string kind = null, V1ListMeta metadata = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IList<T> | items | |
| string | apiVersion | |
| string | kind | |
| V1ListMeta | metadata |
Properties
View SourceApiVersion
Gets or sets aPIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
Declaration
[JsonPropertyName("apiVersion")]
public string ApiVersion { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Items
Gets or sets list of objects. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
Declaration
[JsonPropertyName("items")]
public IList<T> Items { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<T> |
Kind
Gets or sets kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Declaration
[JsonPropertyName("kind")]
public string Kind { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Metadata
Gets or sets standard object's metadata.
Declaration
[JsonPropertyName("metadata")]
public V1ListMeta Metadata { get; set; }
Property Value
| Type | Description |
|---|---|
| V1ListMeta |