/
constants.go
216 lines (186 loc) · 8.02 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
//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 armvirtualmachineimagebuilder
const (
moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder"
moduleVersion = "v2.2.0"
)
// CreatedByType - The type of identity that created the resource.
type CreatedByType string
const (
CreatedByTypeApplication CreatedByType = "Application"
CreatedByTypeKey CreatedByType = "Key"
CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
CreatedByTypeUser CreatedByType = "User"
)
// PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
func PossibleCreatedByTypeValues() []CreatedByType {
return []CreatedByType{
CreatedByTypeApplication,
CreatedByTypeKey,
CreatedByTypeManagedIdentity,
CreatedByTypeUser,
}
}
// OnBuildError - Error handling behavior upon build failure
type OnBuildError string
const (
OnBuildErrorAbort OnBuildError = "abort"
OnBuildErrorCleanup OnBuildError = "cleanup"
)
// PossibleOnBuildErrorValues returns the possible values for the OnBuildError const type.
func PossibleOnBuildErrorValues() []OnBuildError {
return []OnBuildError{
OnBuildErrorAbort,
OnBuildErrorCleanup,
}
}
// ProvisioningErrorCode - Error code of the provisioning failure
type ProvisioningErrorCode string
const (
ProvisioningErrorCodeBadCustomizerType ProvisioningErrorCode = "BadCustomizerType"
ProvisioningErrorCodeBadDistributeType ProvisioningErrorCode = "BadDistributeType"
ProvisioningErrorCodeBadManagedImageSource ProvisioningErrorCode = "BadManagedImageSource"
ProvisioningErrorCodeBadPIRSource ProvisioningErrorCode = "BadPIRSource"
ProvisioningErrorCodeBadSharedImageDistribute ProvisioningErrorCode = "BadSharedImageDistribute"
ProvisioningErrorCodeBadSharedImageVersionSource ProvisioningErrorCode = "BadSharedImageVersionSource"
ProvisioningErrorCodeBadSourceType ProvisioningErrorCode = "BadSourceType"
ProvisioningErrorCodeBadStagingResourceGroup ProvisioningErrorCode = "BadStagingResourceGroup"
ProvisioningErrorCodeBadValidatorType ProvisioningErrorCode = "BadValidatorType"
ProvisioningErrorCodeNoCustomizerScript ProvisioningErrorCode = "NoCustomizerScript"
ProvisioningErrorCodeNoValidatorScript ProvisioningErrorCode = "NoValidatorScript"
ProvisioningErrorCodeOther ProvisioningErrorCode = "Other"
ProvisioningErrorCodeServerError ProvisioningErrorCode = "ServerError"
ProvisioningErrorCodeUnsupportedCustomizerType ProvisioningErrorCode = "UnsupportedCustomizerType"
ProvisioningErrorCodeUnsupportedValidatorType ProvisioningErrorCode = "UnsupportedValidatorType"
)
// PossibleProvisioningErrorCodeValues returns the possible values for the ProvisioningErrorCode const type.
func PossibleProvisioningErrorCodeValues() []ProvisioningErrorCode {
return []ProvisioningErrorCode{
ProvisioningErrorCodeBadCustomizerType,
ProvisioningErrorCodeBadDistributeType,
ProvisioningErrorCodeBadManagedImageSource,
ProvisioningErrorCodeBadPIRSource,
ProvisioningErrorCodeBadSharedImageDistribute,
ProvisioningErrorCodeBadSharedImageVersionSource,
ProvisioningErrorCodeBadSourceType,
ProvisioningErrorCodeBadStagingResourceGroup,
ProvisioningErrorCodeBadValidatorType,
ProvisioningErrorCodeNoCustomizerScript,
ProvisioningErrorCodeNoValidatorScript,
ProvisioningErrorCodeOther,
ProvisioningErrorCodeServerError,
ProvisioningErrorCodeUnsupportedCustomizerType,
ProvisioningErrorCodeUnsupportedValidatorType,
}
}
// ProvisioningState - Provisioning state of the resource
type ProvisioningState string
const (
ProvisioningStateCanceled ProvisioningState = "Canceled"
ProvisioningStateCreating ProvisioningState = "Creating"
ProvisioningStateDeleting ProvisioningState = "Deleting"
ProvisioningStateFailed ProvisioningState = "Failed"
ProvisioningStateSucceeded ProvisioningState = "Succeeded"
ProvisioningStateUpdating ProvisioningState = "Updating"
)
// PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
func PossibleProvisioningStateValues() []ProvisioningState {
return []ProvisioningState{
ProvisioningStateCanceled,
ProvisioningStateCreating,
ProvisioningStateDeleting,
ProvisioningStateFailed,
ProvisioningStateSucceeded,
ProvisioningStateUpdating,
}
}
// ResourceIdentityType - The type of identity used for the image template. The type 'None' will remove any identities from
// the image template.
type ResourceIdentityType string
const (
ResourceIdentityTypeNone ResourceIdentityType = "None"
ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned"
)
// PossibleResourceIdentityTypeValues returns the possible values for the ResourceIdentityType const type.
func PossibleResourceIdentityTypeValues() []ResourceIdentityType {
return []ResourceIdentityType{
ResourceIdentityTypeNone,
ResourceIdentityTypeUserAssigned,
}
}
// RunState - State of the last run
type RunState string
const (
RunStateCanceled RunState = "Canceled"
RunStateCanceling RunState = "Canceling"
RunStateFailed RunState = "Failed"
RunStatePartiallySucceeded RunState = "PartiallySucceeded"
RunStateRunning RunState = "Running"
RunStateSucceeded RunState = "Succeeded"
)
// PossibleRunStateValues returns the possible values for the RunState const type.
func PossibleRunStateValues() []RunState {
return []RunState{
RunStateCanceled,
RunStateCanceling,
RunStateFailed,
RunStatePartiallySucceeded,
RunStateRunning,
RunStateSucceeded,
}
}
// RunSubState - Sub-state of the last run
type RunSubState string
const (
RunSubStateBuilding RunSubState = "Building"
RunSubStateCustomizing RunSubState = "Customizing"
RunSubStateDistributing RunSubState = "Distributing"
RunSubStateOptimizing RunSubState = "Optimizing"
RunSubStateQueued RunSubState = "Queued"
RunSubStateValidating RunSubState = "Validating"
)
// PossibleRunSubStateValues returns the possible values for the RunSubState const type.
func PossibleRunSubStateValues() []RunSubState {
return []RunSubState{
RunSubStateBuilding,
RunSubStateCustomizing,
RunSubStateDistributing,
RunSubStateOptimizing,
RunSubStateQueued,
RunSubStateValidating,
}
}
// SharedImageStorageAccountType - Specifies the storage account type to be used to store the Azure Compute Gallery image
// version in.
type SharedImageStorageAccountType string
const (
SharedImageStorageAccountTypePremiumLRS SharedImageStorageAccountType = "Premium_LRS"
SharedImageStorageAccountTypeStandardLRS SharedImageStorageAccountType = "Standard_LRS"
SharedImageStorageAccountTypeStandardZRS SharedImageStorageAccountType = "Standard_ZRS"
)
// PossibleSharedImageStorageAccountTypeValues returns the possible values for the SharedImageStorageAccountType const type.
func PossibleSharedImageStorageAccountTypeValues() []SharedImageStorageAccountType {
return []SharedImageStorageAccountType{
SharedImageStorageAccountTypePremiumLRS,
SharedImageStorageAccountTypeStandardLRS,
SharedImageStorageAccountTypeStandardZRS,
}
}
// VMBootOptimizationState - Enabling this field will improve VM boot time by optimizing the final customized image output.
type VMBootOptimizationState string
const (
VMBootOptimizationStateDisabled VMBootOptimizationState = "Disabled"
VMBootOptimizationStateEnabled VMBootOptimizationState = "Enabled"
)
// PossibleVMBootOptimizationStateValues returns the possible values for the VMBootOptimizationState const type.
func PossibleVMBootOptimizationStateValues() []VMBootOptimizationState {
return []VMBootOptimizationState{
VMBootOptimizationStateDisabled,
VMBootOptimizationStateEnabled,
}
}