summaryrefslogtreecommitdiff
path: root/deps/rabbitmq_auth_backend_http/examples/rabbitmq_auth_backend_webapi_dotnetcore/Requests/TopicAuthRequest.cs
blob: fbc9440a674e86495485d3b246a987635a7e6972 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using Microsoft.AspNetCore.Mvc;

namespace RabbitMqAuthBackendHttp.Requests
{
    public class TopicAuthRequest
    {
        public string UserName { get; set; }

        public string Vhost { get; set; }

        public string Name { get; set; }

        public Resource Resource { get; set; }

        public TopicPermission Permission { get; set; }

        [ModelBinder(Name = "routing_key")]
        public string RoutingKey { get; set; }
    }

    public enum TopicPermission
    {
        Write,

        Read
    }
}