# BaseKubernetesObject Properties

- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Type: [BaseKubernetesObject](/reference/api/csharp/aspire.hosting.kubernetes/basekubernetesobject.md)
- Kind: `Properties`
- Members: `2`

Represents the base class for Kubernetes objects, providing common properties shared across Kubernetes resources.

## ApiVersion

- Name: `ApiVersion`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/BaseKubernetesObject.cs)

Gets or sets the API version for the Kubernetes resource.

```csharp
public string? ApiVersion { get; set; }
```

## Remarks

The API version defines the versioned schema that is used for the resource. It determines the APIs required to interact with the resource and ensures compatibility between the resource and Kubernetes components. The value is specified according to the Kubernetes API versioning scheme (e.g., "v1", "apps/v1").

## Kind

- Name: `Kind`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/BaseKubernetesObject.cs)

Gets or sets the kind of the Kubernetes resource.

```csharp
public string? Kind { get; set; }
```

## Remarks

The "kind" property specifies the type of the Kubernetes resource, such as Pod, Deployment, Service, etc. It serves as a key component in the Kubernetes API schema to identify the type of object being described. This value is defined by Kubernetes and must match the object's API definition.
