# ObjectReferenceV1 Properties

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

Represents a reference to an object within a Kubernetes cluster.

## FieldPath

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

Gets or sets the field within the object that the reference points to.

```csharp
public string FieldPath { get; set; }
```

## Remarks

The field path is used to refer to a specific field within the referenced object. This property is particularly useful when working with object selectors or when referencing sub-fields of an object in Kubernetes resources.

## Name

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

Gets or sets the name of the Kubernetes resource that this object refers to.

```csharp
public string Name { get; set; }
```

## Namespace

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

Gets or sets the namespace of the Kubernetes object. This determines the organizational scope within which the resource resides, typically grouping resources under common logical units for access control and resource management.

```csharp
public string Namespace { get; set; }
```

## ResourceVersion

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

Gets or sets the specific version of the resource. This is used to track changes to the resource and ensure consistency during updates. The `ResourceVersion` is typically set by the server and can be used for optimistic concurrency control when modifying or retrieving resources.

```csharp
public string ResourceVersion { get; set; }
```

## Uid

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

Gets or sets the unique identifier (UID) of the referenced resource. This is a unique value assigned by Kubernetes to identify the resource instance.

```csharp
public string Uid { get; set; }
```
