Namespace Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |