forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
enums.go
254 lines (214 loc) · 8.08 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
package scheduler
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// DayOfWeek enumerates the values for day of week.
type DayOfWeek string
const (
// Friday ...
Friday DayOfWeek = "Friday"
// Monday ...
Monday DayOfWeek = "Monday"
// Saturday ...
Saturday DayOfWeek = "Saturday"
// Sunday ...
Sunday DayOfWeek = "Sunday"
// Thursday ...
Thursday DayOfWeek = "Thursday"
// Tuesday ...
Tuesday DayOfWeek = "Tuesday"
// Wednesday ...
Wednesday DayOfWeek = "Wednesday"
)
// PossibleDayOfWeekValues returns an array of possible values for the DayOfWeek const type.
func PossibleDayOfWeekValues() []DayOfWeek {
return []DayOfWeek{Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday}
}
// JobActionType enumerates the values for job action type.
type JobActionType string
const (
// HTTP ...
HTTP JobActionType = "Http"
// HTTPS ...
HTTPS JobActionType = "Https"
// ServiceBusQueue ...
ServiceBusQueue JobActionType = "ServiceBusQueue"
// ServiceBusTopic ...
ServiceBusTopic JobActionType = "ServiceBusTopic"
// StorageQueue ...
StorageQueue JobActionType = "StorageQueue"
)
// PossibleJobActionTypeValues returns an array of possible values for the JobActionType const type.
func PossibleJobActionTypeValues() []JobActionType {
return []JobActionType{HTTP, HTTPS, ServiceBusQueue, ServiceBusTopic, StorageQueue}
}
// JobCollectionState enumerates the values for job collection state.
type JobCollectionState string
const (
// Deleted ...
Deleted JobCollectionState = "Deleted"
// Disabled ...
Disabled JobCollectionState = "Disabled"
// Enabled ...
Enabled JobCollectionState = "Enabled"
// Suspended ...
Suspended JobCollectionState = "Suspended"
)
// PossibleJobCollectionStateValues returns an array of possible values for the JobCollectionState const type.
func PossibleJobCollectionStateValues() []JobCollectionState {
return []JobCollectionState{Deleted, Disabled, Enabled, Suspended}
}
// JobExecutionStatus enumerates the values for job execution status.
type JobExecutionStatus string
const (
// Completed ...
Completed JobExecutionStatus = "Completed"
// Failed ...
Failed JobExecutionStatus = "Failed"
// Postponed ...
Postponed JobExecutionStatus = "Postponed"
)
// PossibleJobExecutionStatusValues returns an array of possible values for the JobExecutionStatus const type.
func PossibleJobExecutionStatusValues() []JobExecutionStatus {
return []JobExecutionStatus{Completed, Failed, Postponed}
}
// JobHistoryActionName enumerates the values for job history action name.
type JobHistoryActionName string
const (
// ErrorAction ...
ErrorAction JobHistoryActionName = "ErrorAction"
// MainAction ...
MainAction JobHistoryActionName = "MainAction"
)
// PossibleJobHistoryActionNameValues returns an array of possible values for the JobHistoryActionName const type.
func PossibleJobHistoryActionNameValues() []JobHistoryActionName {
return []JobHistoryActionName{ErrorAction, MainAction}
}
// JobScheduleDay enumerates the values for job schedule day.
type JobScheduleDay string
const (
// JobScheduleDayFriday ...
JobScheduleDayFriday JobScheduleDay = "Friday"
// JobScheduleDayMonday ...
JobScheduleDayMonday JobScheduleDay = "Monday"
// JobScheduleDaySaturday ...
JobScheduleDaySaturday JobScheduleDay = "Saturday"
// JobScheduleDaySunday ...
JobScheduleDaySunday JobScheduleDay = "Sunday"
// JobScheduleDayThursday ...
JobScheduleDayThursday JobScheduleDay = "Thursday"
// JobScheduleDayTuesday ...
JobScheduleDayTuesday JobScheduleDay = "Tuesday"
// JobScheduleDayWednesday ...
JobScheduleDayWednesday JobScheduleDay = "Wednesday"
)
// PossibleJobScheduleDayValues returns an array of possible values for the JobScheduleDay const type.
func PossibleJobScheduleDayValues() []JobScheduleDay {
return []JobScheduleDay{JobScheduleDayFriday, JobScheduleDayMonday, JobScheduleDaySaturday, JobScheduleDaySunday, JobScheduleDayThursday, JobScheduleDayTuesday, JobScheduleDayWednesday}
}
// JobState enumerates the values for job state.
type JobState string
const (
// JobStateCompleted ...
JobStateCompleted JobState = "Completed"
// JobStateDisabled ...
JobStateDisabled JobState = "Disabled"
// JobStateEnabled ...
JobStateEnabled JobState = "Enabled"
// JobStateFaulted ...
JobStateFaulted JobState = "Faulted"
)
// PossibleJobStateValues returns an array of possible values for the JobState const type.
func PossibleJobStateValues() []JobState {
return []JobState{JobStateCompleted, JobStateDisabled, JobStateEnabled, JobStateFaulted}
}
// RecurrenceFrequency enumerates the values for recurrence frequency.
type RecurrenceFrequency string
const (
// Day ...
Day RecurrenceFrequency = "Day"
// Hour ...
Hour RecurrenceFrequency = "Hour"
// Minute ...
Minute RecurrenceFrequency = "Minute"
// Month ...
Month RecurrenceFrequency = "Month"
// Week ...
Week RecurrenceFrequency = "Week"
)
// PossibleRecurrenceFrequencyValues returns an array of possible values for the RecurrenceFrequency const type.
func PossibleRecurrenceFrequencyValues() []RecurrenceFrequency {
return []RecurrenceFrequency{Day, Hour, Minute, Month, Week}
}
// RetryType enumerates the values for retry type.
type RetryType string
const (
// Fixed ...
Fixed RetryType = "Fixed"
// None ...
None RetryType = "None"
)
// PossibleRetryTypeValues returns an array of possible values for the RetryType const type.
func PossibleRetryTypeValues() []RetryType {
return []RetryType{Fixed, None}
}
// ServiceBusAuthenticationType enumerates the values for service bus authentication type.
type ServiceBusAuthenticationType string
const (
// NotSpecified ...
NotSpecified ServiceBusAuthenticationType = "NotSpecified"
// SharedAccessKey ...
SharedAccessKey ServiceBusAuthenticationType = "SharedAccessKey"
)
// PossibleServiceBusAuthenticationTypeValues returns an array of possible values for the ServiceBusAuthenticationType const type.
func PossibleServiceBusAuthenticationTypeValues() []ServiceBusAuthenticationType {
return []ServiceBusAuthenticationType{NotSpecified, SharedAccessKey}
}
// ServiceBusTransportType enumerates the values for service bus transport type.
type ServiceBusTransportType string
const (
// ServiceBusTransportTypeAMQP ...
ServiceBusTransportTypeAMQP ServiceBusTransportType = "AMQP"
// ServiceBusTransportTypeNetMessaging ...
ServiceBusTransportTypeNetMessaging ServiceBusTransportType = "NetMessaging"
// ServiceBusTransportTypeNotSpecified ...
ServiceBusTransportTypeNotSpecified ServiceBusTransportType = "NotSpecified"
)
// PossibleServiceBusTransportTypeValues returns an array of possible values for the ServiceBusTransportType const type.
func PossibleServiceBusTransportTypeValues() []ServiceBusTransportType {
return []ServiceBusTransportType{ServiceBusTransportTypeAMQP, ServiceBusTransportTypeNetMessaging, ServiceBusTransportTypeNotSpecified}
}
// SkuDefinition enumerates the values for sku definition.
type SkuDefinition string
const (
// Free ...
Free SkuDefinition = "Free"
// P10Premium ...
P10Premium SkuDefinition = "P10Premium"
// P20Premium ...
P20Premium SkuDefinition = "P20Premium"
// Standard ...
Standard SkuDefinition = "Standard"
)
// PossibleSkuDefinitionValues returns an array of possible values for the SkuDefinition const type.
func PossibleSkuDefinitionValues() []SkuDefinition {
return []SkuDefinition{Free, P10Premium, P20Premium, Standard}
}
// Type enumerates the values for type.
type Type string
const (
// TypeActiveDirectoryOAuth ...
TypeActiveDirectoryOAuth Type = "ActiveDirectoryOAuth"
// TypeBasic ...
TypeBasic Type = "Basic"
// TypeClientCertificate ...
TypeClientCertificate Type = "ClientCertificate"
// TypeHTTPAuthentication ...
TypeHTTPAuthentication Type = "HttpAuthentication"
)
// PossibleTypeValues returns an array of possible values for the Type const type.
func PossibleTypeValues() []Type {
return []Type{TypeActiveDirectoryOAuth, TypeBasic, TypeClientCertificate, TypeHTTPAuthentication}
}