Share via


BaseKubernetesResource Class

Definition

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
BaseKubernetesResource
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.

Applies to