# VolumeDeviceV1

- Kind: `class`
- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Version: `13.3.0-preview.1.26254.5`
- Namespace: `Aspire.Hosting.Kubernetes.Resources`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/VolumeDeviceV1.cs)

Represents a raw block device that is mapped into a Kubernetes container. This class is used to define the name of a volume and the device path in which the volume is mapped on the container.

## Definition

```csharp
namespace Aspire.Hosting.Kubernetes.Resources;

public sealed class VolumeDeviceV1
{
    // ...
}
```

## Constructors

- [VolumeDeviceV1](/reference/api/csharp/aspire.hosting.kubernetes/volumedevicev1/constructors.md#constructor)

## Properties

- [DevicePath](/reference/api/csharp/aspire.hosting.kubernetes/volumedevicev1/properties.md#devicepath) : `string` `get; set` -- Gets or sets the path inside the container where the device will be accessible. This property is required to specify the location in the container's file system where the device should be mounted or linked.
- [Name](/reference/api/csharp/aspire.hosting.kubernetes/volumedevicev1/properties.md#name) : `string` `get; set` -- Represents the name of the volume device. This is a unique identifier for the volume device and is used to reference the device within the context of a Kubernetes resource.
