-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
AcsRouterWorkerSelector.cs
56 lines (47 loc) · 1.86 KB
/
AcsRouterWorkerSelector.cs
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.ComponentModel;
using Azure.Core;
namespace Azure.Messaging.EventGrid.SystemEvents
{
/// <summary> Router Job Worker Selector. </summary>
public partial class AcsRouterWorkerSelector
{
internal float? TtlSeconds { get; }
/// <summary> Router Job Worker Selector TTL. </summary>
public TimeSpan? TimeToLive => TtlSeconds.HasValue ? TimeSpan.FromSeconds(TtlSeconds.Value) : null;
/// <summary> Router Job Worker Selector Label Operator. </summary>
[CodeGenMember("LabelOperator")]
public AcsRouterLabelOperator? Operator { get; }
/// <summary> Router Job Worker Selector Label Operator. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public Azure.Messaging.EventGrid.Models.AcsRouterLabelOperator? LabelOperator
{
get
{
if (Operator.HasValue)
{
return new Azure.Messaging.EventGrid.Models.AcsRouterLabelOperator(Operator.Value.ToString());
}
return null;
}
}
/// <summary> Router Job Worker Selector State. </summary>
[CodeGenMember("State")]
public AcsRouterWorkerSelectorState? SelectorState { get; }
/// <summary> Router Job Worker Selector State. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public Azure.Messaging.EventGrid.Models.AcsRouterWorkerSelectorState? State
{
get
{
if (SelectorState.HasValue)
{
return new Azure.Messaging.EventGrid.Models.AcsRouterWorkerSelectorState(SelectorState.Value.ToString());
}
return null;
}
}
}
}