forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
enums.go
207 lines (176 loc) · 7.75 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
package resourcemover
// 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.
// DependencyType enumerates the values for dependency type.
type DependencyType string
const (
// RequiredForMove ...
RequiredForMove DependencyType = "RequiredForMove"
// RequiredForPrepare ...
RequiredForPrepare DependencyType = "RequiredForPrepare"
)
// PossibleDependencyTypeValues returns an array of possible values for the DependencyType const type.
func PossibleDependencyTypeValues() []DependencyType {
return []DependencyType{RequiredForMove, RequiredForPrepare}
}
// JobName enumerates the values for job name.
type JobName string
const (
// InitialSync ...
InitialSync JobName = "InitialSync"
)
// PossibleJobNameValues returns an array of possible values for the JobName const type.
func PossibleJobNameValues() []JobName {
return []JobName{InitialSync}
}
// MoveResourceInputType enumerates the values for move resource input type.
type MoveResourceInputType string
const (
// MoveResourceID ...
MoveResourceID MoveResourceInputType = "MoveResourceId"
// MoveResourceSourceID ...
MoveResourceSourceID MoveResourceInputType = "MoveResourceSourceId"
)
// PossibleMoveResourceInputTypeValues returns an array of possible values for the MoveResourceInputType const type.
func PossibleMoveResourceInputTypeValues() []MoveResourceInputType {
return []MoveResourceInputType{MoveResourceID, MoveResourceSourceID}
}
// MoveState enumerates the values for move state.
type MoveState string
const (
// AssignmentPending ...
AssignmentPending MoveState = "AssignmentPending"
// CommitFailed ...
CommitFailed MoveState = "CommitFailed"
// CommitInProgress ...
CommitInProgress MoveState = "CommitInProgress"
// CommitPending ...
CommitPending MoveState = "CommitPending"
// Committed ...
Committed MoveState = "Committed"
// DiscardFailed ...
DiscardFailed MoveState = "DiscardFailed"
// DiscardInProgress ...
DiscardInProgress MoveState = "DiscardInProgress"
// MoveFailed ...
MoveFailed MoveState = "MoveFailed"
// MoveInProgress ...
MoveInProgress MoveState = "MoveInProgress"
// MovePending ...
MovePending MoveState = "MovePending"
// PrepareFailed ...
PrepareFailed MoveState = "PrepareFailed"
// PrepareInProgress ...
PrepareInProgress MoveState = "PrepareInProgress"
// PreparePending ...
PreparePending MoveState = "PreparePending"
)
// PossibleMoveStateValues returns an array of possible values for the MoveState const type.
func PossibleMoveStateValues() []MoveState {
return []MoveState{AssignmentPending, CommitFailed, CommitInProgress, CommitPending, Committed, DiscardFailed, DiscardInProgress, MoveFailed, MoveInProgress, MovePending, PrepareFailed, PrepareInProgress, PreparePending}
}
// ProvisioningState enumerates the values for provisioning state.
type ProvisioningState string
const (
// Creating ...
Creating ProvisioningState = "Creating"
// 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{Creating, Failed, Succeeded, Updating}
}
// ResolutionType enumerates the values for resolution type.
type ResolutionType string
const (
// Automatic ...
Automatic ResolutionType = "Automatic"
// Manual ...
Manual ResolutionType = "Manual"
)
// PossibleResolutionTypeValues returns an array of possible values for the ResolutionType const type.
func PossibleResolutionTypeValues() []ResolutionType {
return []ResolutionType{Automatic, Manual}
}
// ResourceIdentityType enumerates the values for resource identity type.
type ResourceIdentityType string
const (
// None ...
None ResourceIdentityType = "None"
// SystemAssigned ...
SystemAssigned ResourceIdentityType = "SystemAssigned"
// UserAssigned ...
UserAssigned ResourceIdentityType = "UserAssigned"
)
// PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.
func PossibleResourceIdentityTypeValues() []ResourceIdentityType {
return []ResourceIdentityType{None, SystemAssigned, UserAssigned}
}
// ResourceType enumerates the values for resource type.
type ResourceType string
const (
// ResourceTypeMicrosoftComputeavailabilitySets ...
ResourceTypeMicrosoftComputeavailabilitySets ResourceType = "Microsoft.Compute/availabilitySets"
// ResourceTypeMicrosoftComputevirtualMachines ...
ResourceTypeMicrosoftComputevirtualMachines ResourceType = "Microsoft.Compute/virtualMachines"
// ResourceTypeMicrosoftNetworkloadBalancers ...
ResourceTypeMicrosoftNetworkloadBalancers ResourceType = "Microsoft.Network/loadBalancers"
// ResourceTypeMicrosoftNetworknetworkInterfaces ...
ResourceTypeMicrosoftNetworknetworkInterfaces ResourceType = "Microsoft.Network/networkInterfaces"
// ResourceTypeMicrosoftNetworknetworkSecurityGroups ...
ResourceTypeMicrosoftNetworknetworkSecurityGroups ResourceType = "Microsoft.Network/networkSecurityGroups"
// ResourceTypeMicrosoftNetworkpublicIPAddresses ...
ResourceTypeMicrosoftNetworkpublicIPAddresses ResourceType = "Microsoft.Network/publicIPAddresses"
// ResourceTypeMicrosoftNetworkvirtualNetworks ...
ResourceTypeMicrosoftNetworkvirtualNetworks ResourceType = "Microsoft.Network/virtualNetworks"
// ResourceTypeMicrosoftSqlservers ...
ResourceTypeMicrosoftSqlservers ResourceType = "Microsoft.Sql/servers"
// ResourceTypeMicrosoftSqlserversdatabases ...
ResourceTypeMicrosoftSqlserversdatabases ResourceType = "Microsoft.Sql/servers/databases"
// ResourceTypeMicrosoftSqlserverselasticPools ...
ResourceTypeMicrosoftSqlserverselasticPools ResourceType = "Microsoft.Sql/servers/elasticPools"
// ResourceTypeResourceGroups ...
ResourceTypeResourceGroups ResourceType = "resourceGroups"
// ResourceTypeResourceSettings ...
ResourceTypeResourceSettings ResourceType = "ResourceSettings"
)
// PossibleResourceTypeValues returns an array of possible values for the ResourceType const type.
func PossibleResourceTypeValues() []ResourceType {
return []ResourceType{ResourceTypeMicrosoftComputeavailabilitySets, ResourceTypeMicrosoftComputevirtualMachines, ResourceTypeMicrosoftNetworkloadBalancers, ResourceTypeMicrosoftNetworknetworkInterfaces, ResourceTypeMicrosoftNetworknetworkSecurityGroups, ResourceTypeMicrosoftNetworkpublicIPAddresses, ResourceTypeMicrosoftNetworkvirtualNetworks, ResourceTypeMicrosoftSqlservers, ResourceTypeMicrosoftSqlserversdatabases, ResourceTypeMicrosoftSqlserverselasticPools, ResourceTypeResourceGroups, ResourceTypeResourceSettings}
}
// TargetAvailabilityZone enumerates the values for target availability zone.
type TargetAvailabilityZone string
const (
// NA ...
NA TargetAvailabilityZone = "NA"
// One ...
One TargetAvailabilityZone = "1"
// Three ...
Three TargetAvailabilityZone = "3"
// Two ...
Two TargetAvailabilityZone = "2"
)
// PossibleTargetAvailabilityZoneValues returns an array of possible values for the TargetAvailabilityZone const type.
func PossibleTargetAvailabilityZoneValues() []TargetAvailabilityZone {
return []TargetAvailabilityZone{NA, One, Three, Two}
}
// ZoneRedundant enumerates the values for zone redundant.
type ZoneRedundant string
const (
// Disable ...
Disable ZoneRedundant = "Disable"
// Enable ...
Enable ZoneRedundant = "Enable"
)
// PossibleZoneRedundantValues returns an array of possible values for the ZoneRedundant const type.
func PossibleZoneRedundantValues() []ZoneRedundant {
return []ZoneRedundant{Disable, Enable}
}