/
constants.go
273 lines (231 loc) · 8.59 KB
/
constants.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
//go:build go1.18
// +build go1.18
// 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. DO NOT EDIT.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
package armscheduler
const (
moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/scheduler/armscheduler"
moduleVersion = "v1.2.0"
)
type DayOfWeek string
const (
DayOfWeekFriday DayOfWeek = "Friday"
DayOfWeekMonday DayOfWeek = "Monday"
DayOfWeekSaturday DayOfWeek = "Saturday"
DayOfWeekSunday DayOfWeek = "Sunday"
DayOfWeekThursday DayOfWeek = "Thursday"
DayOfWeekTuesday DayOfWeek = "Tuesday"
DayOfWeekWednesday DayOfWeek = "Wednesday"
)
// PossibleDayOfWeekValues returns the possible values for the DayOfWeek const type.
func PossibleDayOfWeekValues() []DayOfWeek {
return []DayOfWeek{
DayOfWeekFriday,
DayOfWeekMonday,
DayOfWeekSaturday,
DayOfWeekSunday,
DayOfWeekThursday,
DayOfWeekTuesday,
DayOfWeekWednesday,
}
}
// HTTPAuthenticationType - Gets or sets the HTTP authentication type.
type HTTPAuthenticationType string
const (
HTTPAuthenticationTypeActiveDirectoryOAuth HTTPAuthenticationType = "ActiveDirectoryOAuth"
HTTPAuthenticationTypeBasic HTTPAuthenticationType = "Basic"
HTTPAuthenticationTypeClientCertificate HTTPAuthenticationType = "ClientCertificate"
HTTPAuthenticationTypeNotSpecified HTTPAuthenticationType = "NotSpecified"
)
// PossibleHTTPAuthenticationTypeValues returns the possible values for the HTTPAuthenticationType const type.
func PossibleHTTPAuthenticationTypeValues() []HTTPAuthenticationType {
return []HTTPAuthenticationType{
HTTPAuthenticationTypeActiveDirectoryOAuth,
HTTPAuthenticationTypeBasic,
HTTPAuthenticationTypeClientCertificate,
HTTPAuthenticationTypeNotSpecified,
}
}
// JobActionType - Gets or sets the job action type.
type JobActionType string
const (
JobActionTypeHTTP JobActionType = "Http"
JobActionTypeHTTPS JobActionType = "Https"
JobActionTypeServiceBusQueue JobActionType = "ServiceBusQueue"
JobActionTypeServiceBusTopic JobActionType = "ServiceBusTopic"
JobActionTypeStorageQueue JobActionType = "StorageQueue"
)
// PossibleJobActionTypeValues returns the possible values for the JobActionType const type.
func PossibleJobActionTypeValues() []JobActionType {
return []JobActionType{
JobActionTypeHTTP,
JobActionTypeHTTPS,
JobActionTypeServiceBusQueue,
JobActionTypeServiceBusTopic,
JobActionTypeStorageQueue,
}
}
// JobCollectionState - Gets or sets the state.
type JobCollectionState string
const (
JobCollectionStateDeleted JobCollectionState = "Deleted"
JobCollectionStateDisabled JobCollectionState = "Disabled"
JobCollectionStateEnabled JobCollectionState = "Enabled"
JobCollectionStateSuspended JobCollectionState = "Suspended"
)
// PossibleJobCollectionStateValues returns the possible values for the JobCollectionState const type.
func PossibleJobCollectionStateValues() []JobCollectionState {
return []JobCollectionState{
JobCollectionStateDeleted,
JobCollectionStateDisabled,
JobCollectionStateEnabled,
JobCollectionStateSuspended,
}
}
// JobExecutionStatus - Gets the job execution status.
type JobExecutionStatus string
const (
JobExecutionStatusCompleted JobExecutionStatus = "Completed"
JobExecutionStatusFailed JobExecutionStatus = "Failed"
JobExecutionStatusPostponed JobExecutionStatus = "Postponed"
)
// PossibleJobExecutionStatusValues returns the possible values for the JobExecutionStatus const type.
func PossibleJobExecutionStatusValues() []JobExecutionStatus {
return []JobExecutionStatus{
JobExecutionStatusCompleted,
JobExecutionStatusFailed,
JobExecutionStatusPostponed,
}
}
// JobHistoryActionName - Gets the job history action name.
type JobHistoryActionName string
const (
JobHistoryActionNameErrorAction JobHistoryActionName = "ErrorAction"
JobHistoryActionNameMainAction JobHistoryActionName = "MainAction"
)
// PossibleJobHistoryActionNameValues returns the possible values for the JobHistoryActionName const type.
func PossibleJobHistoryActionNameValues() []JobHistoryActionName {
return []JobHistoryActionName{
JobHistoryActionNameErrorAction,
JobHistoryActionNameMainAction,
}
}
// JobScheduleDay - Gets or sets the day. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday.
type JobScheduleDay string
const (
JobScheduleDayFriday JobScheduleDay = "Friday"
JobScheduleDayMonday JobScheduleDay = "Monday"
JobScheduleDaySaturday JobScheduleDay = "Saturday"
JobScheduleDaySunday JobScheduleDay = "Sunday"
JobScheduleDayThursday JobScheduleDay = "Thursday"
JobScheduleDayTuesday JobScheduleDay = "Tuesday"
JobScheduleDayWednesday JobScheduleDay = "Wednesday"
)
// PossibleJobScheduleDayValues returns the possible values for the JobScheduleDay const type.
func PossibleJobScheduleDayValues() []JobScheduleDay {
return []JobScheduleDay{
JobScheduleDayFriday,
JobScheduleDayMonday,
JobScheduleDaySaturday,
JobScheduleDaySunday,
JobScheduleDayThursday,
JobScheduleDayTuesday,
JobScheduleDayWednesday,
}
}
// JobState - Gets or set the job state.
type JobState string
const (
JobStateCompleted JobState = "Completed"
JobStateDisabled JobState = "Disabled"
JobStateEnabled JobState = "Enabled"
JobStateFaulted JobState = "Faulted"
)
// PossibleJobStateValues returns the possible values for the JobState const type.
func PossibleJobStateValues() []JobState {
return []JobState{
JobStateCompleted,
JobStateDisabled,
JobStateEnabled,
JobStateFaulted,
}
}
// RecurrenceFrequency - Gets or sets the frequency of recurrence (second, minute, hour, day, week, month).
type RecurrenceFrequency string
const (
RecurrenceFrequencyDay RecurrenceFrequency = "Day"
RecurrenceFrequencyHour RecurrenceFrequency = "Hour"
RecurrenceFrequencyMinute RecurrenceFrequency = "Minute"
RecurrenceFrequencyMonth RecurrenceFrequency = "Month"
RecurrenceFrequencyWeek RecurrenceFrequency = "Week"
)
// PossibleRecurrenceFrequencyValues returns the possible values for the RecurrenceFrequency const type.
func PossibleRecurrenceFrequencyValues() []RecurrenceFrequency {
return []RecurrenceFrequency{
RecurrenceFrequencyDay,
RecurrenceFrequencyHour,
RecurrenceFrequencyMinute,
RecurrenceFrequencyMonth,
RecurrenceFrequencyWeek,
}
}
// RetryType - Gets or sets the retry strategy to be used.
type RetryType string
const (
RetryTypeFixed RetryType = "Fixed"
RetryTypeNone RetryType = "None"
)
// PossibleRetryTypeValues returns the possible values for the RetryType const type.
func PossibleRetryTypeValues() []RetryType {
return []RetryType{
RetryTypeFixed,
RetryTypeNone,
}
}
// SKUDefinition - Gets or set the SKU.
type SKUDefinition string
const (
SKUDefinitionFree SKUDefinition = "Free"
SKUDefinitionP10Premium SKUDefinition = "P10Premium"
SKUDefinitionP20Premium SKUDefinition = "P20Premium"
SKUDefinitionStandard SKUDefinition = "Standard"
)
// PossibleSKUDefinitionValues returns the possible values for the SKUDefinition const type.
func PossibleSKUDefinitionValues() []SKUDefinition {
return []SKUDefinition{
SKUDefinitionFree,
SKUDefinitionP10Premium,
SKUDefinitionP20Premium,
SKUDefinitionStandard,
}
}
// ServiceBusAuthenticationType - Gets or sets the authentication type.
type ServiceBusAuthenticationType string
const (
ServiceBusAuthenticationTypeNotSpecified ServiceBusAuthenticationType = "NotSpecified"
ServiceBusAuthenticationTypeSharedAccessKey ServiceBusAuthenticationType = "SharedAccessKey"
)
// PossibleServiceBusAuthenticationTypeValues returns the possible values for the ServiceBusAuthenticationType const type.
func PossibleServiceBusAuthenticationTypeValues() []ServiceBusAuthenticationType {
return []ServiceBusAuthenticationType{
ServiceBusAuthenticationTypeNotSpecified,
ServiceBusAuthenticationTypeSharedAccessKey,
}
}
// ServiceBusTransportType - Gets or sets the transport type.
type ServiceBusTransportType string
const (
ServiceBusTransportTypeAMQP ServiceBusTransportType = "AMQP"
ServiceBusTransportTypeNetMessaging ServiceBusTransportType = "NetMessaging"
ServiceBusTransportTypeNotSpecified ServiceBusTransportType = "NotSpecified"
)
// PossibleServiceBusTransportTypeValues returns the possible values for the ServiceBusTransportType const type.
func PossibleServiceBusTransportTypeValues() []ServiceBusTransportType {
return []ServiceBusTransportType{
ServiceBusTransportTypeAMQP,
ServiceBusTransportTypeNetMessaging,
ServiceBusTransportTypeNotSpecified,
}
}