# GatewayAllowedRoutesV1

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

Defines which routes are allowed to attach to a Gateway listener.

## Definition

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

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

## Constructors

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

## Properties

- [Namespaces](/reference/api/csharp/aspire.hosting.kubernetes/gatewayallowedroutesv1/properties.md#namespaces) : [GatewayRouteNamespacesV1?](/reference/api/csharp/aspire.hosting.kubernetes/gatewayroutenamespacesv1.md) `get; set` -- Gets or sets the namespace selector for allowed routes.
