BaseKubernetesResource 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.
Serves as the foundational class for defining Kubernetes resources in the v1 API version.
[YamlDotNet.Serialization.YamlSerializable]
public abstract class BaseKubernetesResource : Aspire.Hosting.Kubernetes.Resources.BaseKubernetesObject
[<YamlDotNet.Serialization.YamlSerializable>]
type BaseKubernetesResource = class
inherit BaseKubernetesObject
Public MustInherit Class BaseKubernetesResource
Inherits BaseKubernetesObject
- Inheritance
- Derived
- Attributes
-
YamlDotNet.Serialization.YamlSerializableAttribute
Remarks
The BaseKubernetesResource class contains shared properties common to all Kubernetes resources, such as Kind, ApiVersion, and Metadata. It acts as an abstract base for deriving specific resource types and facilitates consistent handling of Kubernetes resource definitions.
Constructors
BaseKubernetesResource(String, String) |
Serves as the foundational class for defining Kubernetes resources 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. |