forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
enums.go
332 lines (277 loc) · 10.6 KB
/
enums.go
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
package servicebus
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// AccessRights enumerates the values for access rights.
type AccessRights string
const (
// Listen ...
Listen AccessRights = "Listen"
// Manage ...
Manage AccessRights = "Manage"
// SendEnumValue ...
SendEnumValue AccessRights = "Send"
)
// PossibleAccessRightsValues returns an array of possible values for the AccessRights const type.
func PossibleAccessRightsValues() []AccessRights {
return []AccessRights{Listen, Manage, SendEnumValue}
}
// DefaultAction enumerates the values for default action.
type DefaultAction string
const (
// Allow ...
Allow DefaultAction = "Allow"
// Deny ...
Deny DefaultAction = "Deny"
)
// PossibleDefaultActionValues returns an array of possible values for the DefaultAction const type.
func PossibleDefaultActionValues() []DefaultAction {
return []DefaultAction{Allow, Deny}
}
// EncodingCaptureDescription enumerates the values for encoding capture description.
type EncodingCaptureDescription string
const (
// Avro ...
Avro EncodingCaptureDescription = "Avro"
// AvroDeflate ...
AvroDeflate EncodingCaptureDescription = "AvroDeflate"
)
// PossibleEncodingCaptureDescriptionValues returns an array of possible values for the EncodingCaptureDescription const type.
func PossibleEncodingCaptureDescriptionValues() []EncodingCaptureDescription {
return []EncodingCaptureDescription{Avro, AvroDeflate}
}
// EndPointProvisioningState enumerates the values for end point provisioning state.
type EndPointProvisioningState string
const (
// Canceled ...
Canceled EndPointProvisioningState = "Canceled"
// Creating ...
Creating EndPointProvisioningState = "Creating"
// Deleting ...
Deleting EndPointProvisioningState = "Deleting"
// Failed ...
Failed EndPointProvisioningState = "Failed"
// Succeeded ...
Succeeded EndPointProvisioningState = "Succeeded"
// Updating ...
Updating EndPointProvisioningState = "Updating"
)
// PossibleEndPointProvisioningStateValues returns an array of possible values for the EndPointProvisioningState const type.
func PossibleEndPointProvisioningStateValues() []EndPointProvisioningState {
return []EndPointProvisioningState{Canceled, Creating, Deleting, Failed, Succeeded, Updating}
}
// EntityStatus enumerates the values for entity status.
type EntityStatus string
const (
// EntityStatusActive ...
EntityStatusActive EntityStatus = "Active"
// EntityStatusCreating ...
EntityStatusCreating EntityStatus = "Creating"
// EntityStatusDeleting ...
EntityStatusDeleting EntityStatus = "Deleting"
// EntityStatusDisabled ...
EntityStatusDisabled EntityStatus = "Disabled"
// EntityStatusReceiveDisabled ...
EntityStatusReceiveDisabled EntityStatus = "ReceiveDisabled"
// EntityStatusRenaming ...
EntityStatusRenaming EntityStatus = "Renaming"
// EntityStatusRestoring ...
EntityStatusRestoring EntityStatus = "Restoring"
// EntityStatusSendDisabled ...
EntityStatusSendDisabled EntityStatus = "SendDisabled"
// EntityStatusUnknown ...
EntityStatusUnknown EntityStatus = "Unknown"
)
// PossibleEntityStatusValues returns an array of possible values for the EntityStatus const type.
func PossibleEntityStatusValues() []EntityStatus {
return []EntityStatus{EntityStatusActive, EntityStatusCreating, EntityStatusDeleting, EntityStatusDisabled, EntityStatusReceiveDisabled, EntityStatusRenaming, EntityStatusRestoring, EntityStatusSendDisabled, EntityStatusUnknown}
}
// FilterType enumerates the values for filter type.
type FilterType string
const (
// FilterTypeCorrelationFilter ...
FilterTypeCorrelationFilter FilterType = "CorrelationFilter"
// FilterTypeSQLFilter ...
FilterTypeSQLFilter FilterType = "SqlFilter"
)
// PossibleFilterTypeValues returns an array of possible values for the FilterType const type.
func PossibleFilterTypeValues() []FilterType {
return []FilterType{FilterTypeCorrelationFilter, FilterTypeSQLFilter}
}
// IdentityType enumerates the values for identity type.
type IdentityType string
const (
// SystemAssigned ...
SystemAssigned IdentityType = "SystemAssigned"
)
// PossibleIdentityTypeValues returns an array of possible values for the IdentityType const type.
func PossibleIdentityTypeValues() []IdentityType {
return []IdentityType{SystemAssigned}
}
// IPAction enumerates the values for ip action.
type IPAction string
const (
// Accept ...
Accept IPAction = "Accept"
// Reject ...
Reject IPAction = "Reject"
)
// PossibleIPActionValues returns an array of possible values for the IPAction const type.
func PossibleIPActionValues() []IPAction {
return []IPAction{Accept, Reject}
}
// KeySource enumerates the values for key source.
type KeySource string
const (
// MicrosoftKeyVault ...
MicrosoftKeyVault KeySource = "Microsoft.KeyVault"
)
// PossibleKeySourceValues returns an array of possible values for the KeySource const type.
func PossibleKeySourceValues() []KeySource {
return []KeySource{MicrosoftKeyVault}
}
// KeyType enumerates the values for key type.
type KeyType string
const (
// PrimaryKey ...
PrimaryKey KeyType = "PrimaryKey"
// SecondaryKey ...
SecondaryKey KeyType = "SecondaryKey"
)
// PossibleKeyTypeValues returns an array of possible values for the KeyType const type.
func PossibleKeyTypeValues() []KeyType {
return []KeyType{PrimaryKey, SecondaryKey}
}
// NameSpaceType enumerates the values for name space type.
type NameSpaceType string
const (
// EventHub ...
EventHub NameSpaceType = "EventHub"
// Messaging ...
Messaging NameSpaceType = "Messaging"
// Mixed ...
Mixed NameSpaceType = "Mixed"
// NotificationHub ...
NotificationHub NameSpaceType = "NotificationHub"
// Relay ...
Relay NameSpaceType = "Relay"
)
// PossibleNameSpaceTypeValues returns an array of possible values for the NameSpaceType const type.
func PossibleNameSpaceTypeValues() []NameSpaceType {
return []NameSpaceType{EventHub, Messaging, Mixed, NotificationHub, Relay}
}
// NetworkRuleIPAction enumerates the values for network rule ip action.
type NetworkRuleIPAction string
const (
// NetworkRuleIPActionAllow ...
NetworkRuleIPActionAllow NetworkRuleIPAction = "Allow"
)
// PossibleNetworkRuleIPActionValues returns an array of possible values for the NetworkRuleIPAction const type.
func PossibleNetworkRuleIPActionValues() []NetworkRuleIPAction {
return []NetworkRuleIPAction{NetworkRuleIPActionAllow}
}
// PrivateLinkConnectionStatus enumerates the values for private link connection status.
type PrivateLinkConnectionStatus string
const (
// Approved ...
Approved PrivateLinkConnectionStatus = "Approved"
// Disconnected ...
Disconnected PrivateLinkConnectionStatus = "Disconnected"
// Pending ...
Pending PrivateLinkConnectionStatus = "Pending"
// Rejected ...
Rejected PrivateLinkConnectionStatus = "Rejected"
)
// PossiblePrivateLinkConnectionStatusValues returns an array of possible values for the PrivateLinkConnectionStatus const type.
func PossiblePrivateLinkConnectionStatusValues() []PrivateLinkConnectionStatus {
return []PrivateLinkConnectionStatus{Approved, Disconnected, Pending, Rejected}
}
// ProvisioningStateDR enumerates the values for provisioning state dr.
type ProvisioningStateDR string
const (
// ProvisioningStateDRAccepted ...
ProvisioningStateDRAccepted ProvisioningStateDR = "Accepted"
// ProvisioningStateDRFailed ...
ProvisioningStateDRFailed ProvisioningStateDR = "Failed"
// ProvisioningStateDRSucceeded ...
ProvisioningStateDRSucceeded ProvisioningStateDR = "Succeeded"
)
// PossibleProvisioningStateDRValues returns an array of possible values for the ProvisioningStateDR const type.
func PossibleProvisioningStateDRValues() []ProvisioningStateDR {
return []ProvisioningStateDR{ProvisioningStateDRAccepted, ProvisioningStateDRFailed, ProvisioningStateDRSucceeded}
}
// RoleDisasterRecovery enumerates the values for role disaster recovery.
type RoleDisasterRecovery string
const (
// Primary ...
Primary RoleDisasterRecovery = "Primary"
// PrimaryNotReplicating ...
PrimaryNotReplicating RoleDisasterRecovery = "PrimaryNotReplicating"
// Secondary ...
Secondary RoleDisasterRecovery = "Secondary"
)
// PossibleRoleDisasterRecoveryValues returns an array of possible values for the RoleDisasterRecovery const type.
func PossibleRoleDisasterRecoveryValues() []RoleDisasterRecovery {
return []RoleDisasterRecovery{Primary, PrimaryNotReplicating, Secondary}
}
// SkuName enumerates the values for sku name.
type SkuName string
const (
// Basic ...
Basic SkuName = "Basic"
// Premium ...
Premium SkuName = "Premium"
// Standard ...
Standard SkuName = "Standard"
)
// PossibleSkuNameValues returns an array of possible values for the SkuName const type.
func PossibleSkuNameValues() []SkuName {
return []SkuName{Basic, Premium, Standard}
}
// SkuTier enumerates the values for sku tier.
type SkuTier string
const (
// SkuTierBasic ...
SkuTierBasic SkuTier = "Basic"
// SkuTierPremium ...
SkuTierPremium SkuTier = "Premium"
// SkuTierStandard ...
SkuTierStandard SkuTier = "Standard"
)
// PossibleSkuTierValues returns an array of possible values for the SkuTier const type.
func PossibleSkuTierValues() []SkuTier {
return []SkuTier{SkuTierBasic, SkuTierPremium, SkuTierStandard}
}
// UnavailableReason enumerates the values for unavailable reason.
type UnavailableReason string
const (
// InvalidName ...
InvalidName UnavailableReason = "InvalidName"
// NameInLockdown ...
NameInLockdown UnavailableReason = "NameInLockdown"
// NameInUse ...
NameInUse UnavailableReason = "NameInUse"
// None ...
None UnavailableReason = "None"
// SubscriptionIsDisabled ...
SubscriptionIsDisabled UnavailableReason = "SubscriptionIsDisabled"
// TooManyNamespaceInCurrentSubscription ...
TooManyNamespaceInCurrentSubscription UnavailableReason = "TooManyNamespaceInCurrentSubscription"
)
// PossibleUnavailableReasonValues returns an array of possible values for the UnavailableReason const type.
func PossibleUnavailableReasonValues() []UnavailableReason {
return []UnavailableReason{InvalidName, NameInLockdown, NameInUse, None, SubscriptionIsDisabled, TooManyNamespaceInCurrentSubscription}
}