forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
enums.go
308 lines (259 loc) · 10.5 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
package servicefabric
// 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.
// ClusterState enumerates the values for cluster state.
type ClusterState string
const (
// AutoScale ...
AutoScale ClusterState = "AutoScale"
// BaselineUpgrade ...
BaselineUpgrade ClusterState = "BaselineUpgrade"
// Deploying ...
Deploying ClusterState = "Deploying"
// EnforcingClusterVersion ...
EnforcingClusterVersion ClusterState = "EnforcingClusterVersion"
// Ready ...
Ready ClusterState = "Ready"
// UpdatingInfrastructure ...
UpdatingInfrastructure ClusterState = "UpdatingInfrastructure"
// UpdatingUserCertificate ...
UpdatingUserCertificate ClusterState = "UpdatingUserCertificate"
// UpdatingUserConfiguration ...
UpdatingUserConfiguration ClusterState = "UpdatingUserConfiguration"
// UpgradeServiceUnreachable ...
UpgradeServiceUnreachable ClusterState = "UpgradeServiceUnreachable"
// WaitingForNodes ...
WaitingForNodes ClusterState = "WaitingForNodes"
)
// PossibleClusterStateValues returns an array of possible values for the ClusterState const type.
func PossibleClusterStateValues() []ClusterState {
return []ClusterState{AutoScale, BaselineUpgrade, Deploying, EnforcingClusterVersion, Ready, UpdatingInfrastructure, UpdatingUserCertificate, UpdatingUserConfiguration, UpgradeServiceUnreachable, WaitingForNodes}
}
// DefaultMoveCost enumerates the values for default move cost.
type DefaultMoveCost string
const (
// High ...
High DefaultMoveCost = "High"
// Low ...
Low DefaultMoveCost = "Low"
// Medium ...
Medium DefaultMoveCost = "Medium"
// Zero ...
Zero DefaultMoveCost = "Zero"
)
// PossibleDefaultMoveCostValues returns an array of possible values for the DefaultMoveCost const type.
func PossibleDefaultMoveCostValues() []DefaultMoveCost {
return []DefaultMoveCost{High, Low, Medium, Zero}
}
// DurabilityLevel enumerates the values for durability level.
type DurabilityLevel string
const (
// Bronze ...
Bronze DurabilityLevel = "Bronze"
// Gold ...
Gold DurabilityLevel = "Gold"
// Silver ...
Silver DurabilityLevel = "Silver"
)
// PossibleDurabilityLevelValues returns an array of possible values for the DurabilityLevel const type.
func PossibleDurabilityLevelValues() []DurabilityLevel {
return []DurabilityLevel{Bronze, Gold, Silver}
}
// Environment enumerates the values for environment.
type Environment string
const (
// Linux ...
Linux Environment = "Linux"
// Windows ...
Windows Environment = "Windows"
)
// PossibleEnvironmentValues returns an array of possible values for the Environment const type.
func PossibleEnvironmentValues() []Environment {
return []Environment{Linux, Windows}
}
// PartitionScheme enumerates the values for partition scheme.
type PartitionScheme string
const (
// PartitionSchemeNamed ...
PartitionSchemeNamed PartitionScheme = "Named"
// PartitionSchemePartitionSchemeDescription ...
PartitionSchemePartitionSchemeDescription PartitionScheme = "PartitionSchemeDescription"
// PartitionSchemeSingleton ...
PartitionSchemeSingleton PartitionScheme = "Singleton"
// PartitionSchemeUniformInt64Range ...
PartitionSchemeUniformInt64Range PartitionScheme = "UniformInt64Range"
)
// PossiblePartitionSchemeValues returns an array of possible values for the PartitionScheme const type.
func PossiblePartitionSchemeValues() []PartitionScheme {
return []PartitionScheme{PartitionSchemeNamed, PartitionSchemePartitionSchemeDescription, PartitionSchemeSingleton, PartitionSchemeUniformInt64Range}
}
// ProvisioningState enumerates the values for provisioning state.
type ProvisioningState string
const (
// Canceled ...
Canceled ProvisioningState = "Canceled"
// Failed ...
Failed ProvisioningState = "Failed"
// Succeeded ...
Succeeded ProvisioningState = "Succeeded"
// Updating ...
Updating ProvisioningState = "Updating"
)
// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
func PossibleProvisioningStateValues() []ProvisioningState {
return []ProvisioningState{Canceled, Failed, Succeeded, Updating}
}
// ReliabilityLevel enumerates the values for reliability level.
type ReliabilityLevel string
const (
// ReliabilityLevelBronze ...
ReliabilityLevelBronze ReliabilityLevel = "Bronze"
// ReliabilityLevelGold ...
ReliabilityLevelGold ReliabilityLevel = "Gold"
// ReliabilityLevelNone ...
ReliabilityLevelNone ReliabilityLevel = "None"
// ReliabilityLevelPlatinum ...
ReliabilityLevelPlatinum ReliabilityLevel = "Platinum"
// ReliabilityLevelSilver ...
ReliabilityLevelSilver ReliabilityLevel = "Silver"
)
// PossibleReliabilityLevelValues returns an array of possible values for the ReliabilityLevel const type.
func PossibleReliabilityLevelValues() []ReliabilityLevel {
return []ReliabilityLevel{ReliabilityLevelBronze, ReliabilityLevelGold, ReliabilityLevelNone, ReliabilityLevelPlatinum, ReliabilityLevelSilver}
}
// ReliabilityLevel1 enumerates the values for reliability level 1.
type ReliabilityLevel1 string
const (
// ReliabilityLevel1Bronze ...
ReliabilityLevel1Bronze ReliabilityLevel1 = "Bronze"
// ReliabilityLevel1Gold ...
ReliabilityLevel1Gold ReliabilityLevel1 = "Gold"
// ReliabilityLevel1Silver ...
ReliabilityLevel1Silver ReliabilityLevel1 = "Silver"
)
// PossibleReliabilityLevel1Values returns an array of possible values for the ReliabilityLevel1 const type.
func PossibleReliabilityLevel1Values() []ReliabilityLevel1 {
return []ReliabilityLevel1{ReliabilityLevel1Bronze, ReliabilityLevel1Gold, ReliabilityLevel1Silver}
}
// Scheme enumerates the values for scheme.
type Scheme string
const (
// Affinity ...
Affinity Scheme = "Affinity"
// AlignedAffinity ...
AlignedAffinity Scheme = "AlignedAffinity"
// Invalid ...
Invalid Scheme = "Invalid"
// NonAlignedAffinity ...
NonAlignedAffinity Scheme = "NonAlignedAffinity"
)
// PossibleSchemeValues returns an array of possible values for the Scheme const type.
func PossibleSchemeValues() []Scheme {
return []Scheme{Affinity, AlignedAffinity, Invalid, NonAlignedAffinity}
}
// ServiceKind enumerates the values for service kind.
type ServiceKind string
const (
// ServiceKindServiceProperties ...
ServiceKindServiceProperties ServiceKind = "ServiceProperties"
// ServiceKindStateful ...
ServiceKindStateful ServiceKind = "Stateful"
// ServiceKindStateless ...
ServiceKindStateless ServiceKind = "Stateless"
)
// PossibleServiceKindValues returns an array of possible values for the ServiceKind const type.
func PossibleServiceKindValues() []ServiceKind {
return []ServiceKind{ServiceKindServiceProperties, ServiceKindStateful, ServiceKindStateless}
}
// ServiceKindBasicServiceUpdateProperties enumerates the values for service kind basic service update
// properties.
type ServiceKindBasicServiceUpdateProperties string
const (
// ServiceKindBasicServiceUpdatePropertiesServiceKindServiceUpdateProperties ...
ServiceKindBasicServiceUpdatePropertiesServiceKindServiceUpdateProperties ServiceKindBasicServiceUpdateProperties = "ServiceUpdateProperties"
// ServiceKindBasicServiceUpdatePropertiesServiceKindStateful ...
ServiceKindBasicServiceUpdatePropertiesServiceKindStateful ServiceKindBasicServiceUpdateProperties = "Stateful"
// ServiceKindBasicServiceUpdatePropertiesServiceKindStateless ...
ServiceKindBasicServiceUpdatePropertiesServiceKindStateless ServiceKindBasicServiceUpdateProperties = "Stateless"
)
// PossibleServiceKindBasicServiceUpdatePropertiesValues returns an array of possible values for the ServiceKindBasicServiceUpdateProperties const type.
func PossibleServiceKindBasicServiceUpdatePropertiesValues() []ServiceKindBasicServiceUpdateProperties {
return []ServiceKindBasicServiceUpdateProperties{ServiceKindBasicServiceUpdatePropertiesServiceKindServiceUpdateProperties, ServiceKindBasicServiceUpdatePropertiesServiceKindStateful, ServiceKindBasicServiceUpdatePropertiesServiceKindStateless}
}
// Type enumerates the values for type.
type Type string
const (
// TypeServicePlacementPolicyDescription ...
TypeServicePlacementPolicyDescription Type = "ServicePlacementPolicyDescription"
)
// PossibleTypeValues returns an array of possible values for the Type const type.
func PossibleTypeValues() []Type {
return []Type{TypeServicePlacementPolicyDescription}
}
// UpgradeMode enumerates the values for upgrade mode.
type UpgradeMode string
const (
// Automatic ...
Automatic UpgradeMode = "Automatic"
// Manual ...
Manual UpgradeMode = "Manual"
)
// PossibleUpgradeModeValues returns an array of possible values for the UpgradeMode const type.
func PossibleUpgradeModeValues() []UpgradeMode {
return []UpgradeMode{Automatic, Manual}
}
// UpgradeMode1 enumerates the values for upgrade mode 1.
type UpgradeMode1 string
const (
// UpgradeMode1Automatic ...
UpgradeMode1Automatic UpgradeMode1 = "Automatic"
// UpgradeMode1Manual ...
UpgradeMode1Manual UpgradeMode1 = "Manual"
)
// PossibleUpgradeMode1Values returns an array of possible values for the UpgradeMode1 const type.
func PossibleUpgradeMode1Values() []UpgradeMode1 {
return []UpgradeMode1{UpgradeMode1Automatic, UpgradeMode1Manual}
}
// Weight enumerates the values for weight.
type Weight string
const (
// WeightHigh ...
WeightHigh Weight = "High"
// WeightLow ...
WeightLow Weight = "Low"
// WeightMedium ...
WeightMedium Weight = "Medium"
// WeightZero ...
WeightZero Weight = "Zero"
)
// PossibleWeightValues returns an array of possible values for the Weight const type.
func PossibleWeightValues() []Weight {
return []Weight{WeightHigh, WeightLow, WeightMedium, WeightZero}
}
// X509StoreName enumerates the values for x509 store name.
type X509StoreName string
const (
// AddressBook ...
AddressBook X509StoreName = "AddressBook"
// AuthRoot ...
AuthRoot X509StoreName = "AuthRoot"
// CertificateAuthority ...
CertificateAuthority X509StoreName = "CertificateAuthority"
// Disallowed ...
Disallowed X509StoreName = "Disallowed"
// My ...
My X509StoreName = "My"
// Root ...
Root X509StoreName = "Root"
// TrustedPeople ...
TrustedPeople X509StoreName = "TrustedPeople"
// TrustedPublisher ...
TrustedPublisher X509StoreName = "TrustedPublisher"
)
// PossibleX509StoreNameValues returns an array of possible values for the X509StoreName const type.
func PossibleX509StoreNameValues() []X509StoreName {
return []X509StoreName{AddressBook, AuthRoot, CertificateAuthority, Disallowed, My, Root, TrustedPeople, TrustedPublisher}
}