Share via


Namespace Class

Definition

Represents a Kubernetes Namespace resource in the v1 API version.

[YamlDotNet.Serialization.YamlSerializable]
public sealed class Namespace : Aspire.Hosting.Kubernetes.Resources.BaseKubernetesResource
[<YamlDotNet.Serialization.YamlSerializable>]
type Namespace = class
    inherit BaseKubernetesResource
Public NotInheritable Class Namespace
Inherits BaseKubernetesResource
Inheritance
Attributes
YamlDotNet.Serialization.YamlSerializableAttribute

Remarks

The Namespace class defines the structure for the Kubernetes Namespace resource, including metadata and specification details. It inherits from the BaseKubernetesResource class to leverage shared properties such as ApiVersion, Kind, and Metadata. This class enables serialization and deserialization of Namespace resources using YAML.

Constructors

Namespace()

Represents a Kubernetes Namespace resource in the v1 API version.

Properties

ApiVersion

Gets or sets the API version for the Kubernetes resource.

(Inherited from BaseKubernetesObject)
Kind

Gets or sets the kind of the Kubernetes resource.

(Inherited from BaseKubernetesObject)
Metadata

Gets or sets the metadata for the Kubernetes resource.

(Inherited from BaseKubernetesResource)
Spec

Gets or sets the specification for the Kubernetes Namespace resource.

Applies to