/
constants.go
172 lines (148 loc) · 5.98 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
//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 armmaintenance
const (
moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/maintenance/armmaintenance"
moduleVersion = "v1.3.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,
}
}
// ImpactType - The impact type
type ImpactType string
const (
// ImpactTypeFreeze - Pending updates can freeze network or disk io operation on resource.
ImpactTypeFreeze ImpactType = "Freeze"
// ImpactTypeNone - Pending updates has no impact on resource.
ImpactTypeNone ImpactType = "None"
// ImpactTypeRedeploy - Pending updates can redeploy resource.
ImpactTypeRedeploy ImpactType = "Redeploy"
// ImpactTypeRestart - Pending updates can cause resource to restart.
ImpactTypeRestart ImpactType = "Restart"
)
// PossibleImpactTypeValues returns the possible values for the ImpactType const type.
func PossibleImpactTypeValues() []ImpactType {
return []ImpactType{
ImpactTypeFreeze,
ImpactTypeNone,
ImpactTypeRedeploy,
ImpactTypeRestart,
}
}
// MaintenanceScope - Gets or sets maintenanceScope of the configuration
type MaintenanceScope string
const (
// MaintenanceScopeExtension - This maintenance scope controls extension installation on VM/VMSS
MaintenanceScopeExtension MaintenanceScope = "Extension"
// MaintenanceScopeHost - This maintenance scope controls installation of azure platform updates i.e. services on physical
// nodes hosting customer VMs.
MaintenanceScopeHost MaintenanceScope = "Host"
// MaintenanceScopeInGuestPatch - This maintenance scope controls installation of windows and linux packages on VM/VMSS
MaintenanceScopeInGuestPatch MaintenanceScope = "InGuestPatch"
// MaintenanceScopeOSImage - This maintenance scope controls os image installation on VM/VMSS
MaintenanceScopeOSImage MaintenanceScope = "OSImage"
// MaintenanceScopeResource - This maintenance scope controls the default update maintenance of the Azure Resource
MaintenanceScopeResource MaintenanceScope = "Resource"
// MaintenanceScopeSQLDB - This maintenance scope controls installation of SQL server platform updates.
MaintenanceScopeSQLDB MaintenanceScope = "SQLDB"
// MaintenanceScopeSQLManagedInstance - This maintenance scope controls installation of SQL managed instance platform update.
MaintenanceScopeSQLManagedInstance MaintenanceScope = "SQLManagedInstance"
)
// PossibleMaintenanceScopeValues returns the possible values for the MaintenanceScope const type.
func PossibleMaintenanceScopeValues() []MaintenanceScope {
return []MaintenanceScope{
MaintenanceScopeExtension,
MaintenanceScopeHost,
MaintenanceScopeInGuestPatch,
MaintenanceScopeOSImage,
MaintenanceScopeResource,
MaintenanceScopeSQLDB,
MaintenanceScopeSQLManagedInstance,
}
}
// RebootOptions - Possible reboot preference as defined by the user based on which it would be decided to reboot the machine
// or not after the patch operation is completed.
type RebootOptions string
const (
RebootOptionsAlways RebootOptions = "Always"
RebootOptionsIfRequired RebootOptions = "IfRequired"
RebootOptionsNever RebootOptions = "Never"
)
// PossibleRebootOptionsValues returns the possible values for the RebootOptions const type.
func PossibleRebootOptionsValues() []RebootOptions {
return []RebootOptions{
RebootOptionsAlways,
RebootOptionsIfRequired,
RebootOptionsNever,
}
}
// TagOperators - Filter VMs by Any or All specified tags.
type TagOperators string
const (
TagOperatorsAll TagOperators = "All"
TagOperatorsAny TagOperators = "Any"
)
// PossibleTagOperatorsValues returns the possible values for the TagOperators const type.
func PossibleTagOperatorsValues() []TagOperators {
return []TagOperators{
TagOperatorsAll,
TagOperatorsAny,
}
}
// UpdateStatus - The status
type UpdateStatus string
const (
// UpdateStatusCompleted - All updates are successfully applied.
UpdateStatusCompleted UpdateStatus = "Completed"
// UpdateStatusInProgress - Updates installation are in progress.
UpdateStatusInProgress UpdateStatus = "InProgress"
// UpdateStatusPending - There are pending updates to be installed.
UpdateStatusPending UpdateStatus = "Pending"
// UpdateStatusRetryLater - Updates installation failed and should be retried later.
UpdateStatusRetryLater UpdateStatus = "RetryLater"
// UpdateStatusRetryNow - Updates installation failed but are ready to retry again.
UpdateStatusRetryNow UpdateStatus = "RetryNow"
)
// PossibleUpdateStatusValues returns the possible values for the UpdateStatus const type.
func PossibleUpdateStatusValues() []UpdateStatus {
return []UpdateStatus{
UpdateStatusCompleted,
UpdateStatusInProgress,
UpdateStatusPending,
UpdateStatusRetryLater,
UpdateStatusRetryNow,
}
}
// Visibility - Gets or sets the visibility of the configuration. The default value is 'Custom'
type Visibility string
const (
// VisibilityCustom - Only visible to users with permissions.
VisibilityCustom Visibility = "Custom"
// VisibilityPublic - Visible to all users.
VisibilityPublic Visibility = "Public"
)
// PossibleVisibilityValues returns the possible values for the Visibility const type.
func PossibleVisibilityValues() []Visibility {
return []Visibility{
VisibilityCustom,
VisibilityPublic,
}
}