forked from Azure/azure-sdk-for-go
/
enums.go
156 lines (134 loc) · 4.62 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
package kusto
// 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.
// AzureScaleType enumerates the values for azure scale type.
type AzureScaleType string
const (
// Automatic ...
Automatic AzureScaleType = "automatic"
// Manual ...
Manual AzureScaleType = "manual"
// None ...
None AzureScaleType = "none"
)
// PossibleAzureScaleTypeValues returns an array of possible values for the AzureScaleType const type.
func PossibleAzureScaleTypeValues() []AzureScaleType {
return []AzureScaleType{Automatic, Manual, None}
}
// AzureSkuName enumerates the values for azure sku name.
type AzureSkuName string
const (
// D13V2 ...
D13V2 AzureSkuName = "D13_v2"
// D14V2 ...
D14V2 AzureSkuName = "D14_v2"
// KC16 ...
KC16 AzureSkuName = "KC16"
// KC8 ...
KC8 AzureSkuName = "KC8"
// KS16 ...
KS16 AzureSkuName = "KS16"
// KS8 ...
KS8 AzureSkuName = "KS8"
// L16 ...
L16 AzureSkuName = "L16"
// L8 ...
L8 AzureSkuName = "L8"
)
// PossibleAzureSkuNameValues returns an array of possible values for the AzureSkuName const type.
func PossibleAzureSkuNameValues() []AzureSkuName {
return []AzureSkuName{D13V2, D14V2, KC16, KC8, KS16, KS8, L16, L8}
}
// DatabasePrincipalRole enumerates the values for database principal role.
type DatabasePrincipalRole string
const (
// Admin ...
Admin DatabasePrincipalRole = "Admin"
// Ingestor ...
Ingestor DatabasePrincipalRole = "Ingestor"
// Monitor ...
Monitor DatabasePrincipalRole = "Monitor"
// UnrestrictedViewers ...
UnrestrictedViewers DatabasePrincipalRole = "UnrestrictedViewers"
// User ...
User DatabasePrincipalRole = "User"
// Viewer ...
Viewer DatabasePrincipalRole = "Viewer"
)
// PossibleDatabasePrincipalRoleValues returns an array of possible values for the DatabasePrincipalRole const type.
func PossibleDatabasePrincipalRoleValues() []DatabasePrincipalRole {
return []DatabasePrincipalRole{Admin, Ingestor, Monitor, UnrestrictedViewers, User, Viewer}
}
// DatabasePrincipalType enumerates the values for database principal type.
type DatabasePrincipalType string
const (
// DatabasePrincipalTypeApp ...
DatabasePrincipalTypeApp DatabasePrincipalType = "App"
// DatabasePrincipalTypeGroup ...
DatabasePrincipalTypeGroup DatabasePrincipalType = "Group"
// DatabasePrincipalTypeUser ...
DatabasePrincipalTypeUser DatabasePrincipalType = "User"
)
// PossibleDatabasePrincipalTypeValues returns an array of possible values for the DatabasePrincipalType const type.
func PossibleDatabasePrincipalTypeValues() []DatabasePrincipalType {
return []DatabasePrincipalType{DatabasePrincipalTypeApp, DatabasePrincipalTypeGroup, DatabasePrincipalTypeUser}
}
// DataFormat enumerates the values for data format.
type DataFormat string
const (
// CSV ...
CSV DataFormat = "CSV"
// JSON ...
JSON DataFormat = "JSON"
// MULTIJSON ...
MULTIJSON DataFormat = "MULTIJSON"
)
// PossibleDataFormatValues returns an array of possible values for the DataFormat const type.
func PossibleDataFormatValues() []DataFormat {
return []DataFormat{CSV, JSON, MULTIJSON}
}
// ProvisioningState enumerates the values for provisioning state.
type ProvisioningState string
const (
// Creating ...
Creating ProvisioningState = "Creating"
// Deleting ...
Deleting ProvisioningState = "Deleting"
// Failed ...
Failed ProvisioningState = "Failed"
// Running ...
Running ProvisioningState = "Running"
// Succeeded ...
Succeeded ProvisioningState = "Succeeded"
)
// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
func PossibleProvisioningStateValues() []ProvisioningState {
return []ProvisioningState{Creating, Deleting, Failed, Running, Succeeded}
}
// State enumerates the values for state.
type State string
const (
// StateCreating ...
StateCreating State = "Creating"
// StateDeleted ...
StateDeleted State = "Deleted"
// StateDeleting ...
StateDeleting State = "Deleting"
// StateRunning ...
StateRunning State = "Running"
// StateStarting ...
StateStarting State = "Starting"
// StateStopped ...
StateStopped State = "Stopped"
// StateStopping ...
StateStopping State = "Stopping"
// StateUnavailable ...
StateUnavailable State = "Unavailable"
)
// PossibleStateValues returns an array of possible values for the State const type.
func PossibleStateValues() []State {
return []State{StateCreating, StateDeleted, StateDeleting, StateRunning, StateStarting, StateStopped, StateStopping, StateUnavailable}
}