forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 1
/
zz_generated_constants.go
207 lines (168 loc) · 6.03 KB
/
zz_generated_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
//go:build go1.16
// +build go1.16
// 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.
package armpolicyinsights
const (
moduleName = "armpolicyinsights"
moduleVersion = "v0.1.1"
)
// ComplianceState - The compliance state that should be set on the resource.
type ComplianceState string
const (
// ComplianceStateCompliant - The resource is in compliance with the policy.
ComplianceStateCompliant ComplianceState = "Compliant"
// ComplianceStateNonCompliant - The resource is not in compliance with the policy.
ComplianceStateNonCompliant ComplianceState = "NonCompliant"
// ComplianceStateUnknown - The compliance state of the resource is not known.
ComplianceStateUnknown ComplianceState = "Unknown"
)
// PossibleComplianceStateValues returns the possible values for the ComplianceState const type.
func PossibleComplianceStateValues() []ComplianceState {
return []ComplianceState{
ComplianceStateCompliant,
ComplianceStateNonCompliant,
ComplianceStateUnknown,
}
}
// ToPtr returns a *ComplianceState pointing to the current value.
func (c ComplianceState) ToPtr() *ComplianceState {
return &c
}
// 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,
}
}
// ToPtr returns a *CreatedByType pointing to the current value.
func (c CreatedByType) ToPtr() *CreatedByType {
return &c
}
type Enum0 string
const (
Enum0MicrosoftManagement Enum0 = "Microsoft.Management"
)
// PossibleEnum0Values returns the possible values for the Enum0 const type.
func PossibleEnum0Values() []Enum0 {
return []Enum0{
Enum0MicrosoftManagement,
}
}
// ToPtr returns a *Enum0 pointing to the current value.
func (c Enum0) ToPtr() *Enum0 {
return &c
}
type Enum1 string
const (
Enum1Default Enum1 = "default"
)
// PossibleEnum1Values returns the possible values for the Enum1 const type.
func PossibleEnum1Values() []Enum1 {
return []Enum1{
Enum1Default,
}
}
// ToPtr returns a *Enum1 pointing to the current value.
func (c Enum1) ToPtr() *Enum1 {
return &c
}
type Enum4 string
const (
Enum4MicrosoftAuthorization Enum4 = "Microsoft.Authorization"
)
// PossibleEnum4Values returns the possible values for the Enum4 const type.
func PossibleEnum4Values() []Enum4 {
return []Enum4{
Enum4MicrosoftAuthorization,
}
}
// ToPtr returns a *Enum4 pointing to the current value.
func (c Enum4) ToPtr() *Enum4 {
return &c
}
type Enum6 string
const (
Enum6Latest Enum6 = "latest"
)
// PossibleEnum6Values returns the possible values for the Enum6 const type.
func PossibleEnum6Values() []Enum6 {
return []Enum6{
Enum6Latest,
}
}
// ToPtr returns a *Enum6 pointing to the current value.
func (c Enum6) ToPtr() *Enum6 {
return &c
}
// FieldRestrictionResult - The type of restriction that is imposed on the field.
type FieldRestrictionResult string
const (
// FieldRestrictionResultDeny - The field and/or values will be denied by policy.
FieldRestrictionResultDeny FieldRestrictionResult = "Deny"
// FieldRestrictionResultRemoved - The field will be removed by policy.
FieldRestrictionResultRemoved FieldRestrictionResult = "Removed"
// FieldRestrictionResultRequired - The field and/or values are required by policy.
FieldRestrictionResultRequired FieldRestrictionResult = "Required"
)
// PossibleFieldRestrictionResultValues returns the possible values for the FieldRestrictionResult const type.
func PossibleFieldRestrictionResultValues() []FieldRestrictionResult {
return []FieldRestrictionResult{
FieldRestrictionResultDeny,
FieldRestrictionResultRemoved,
FieldRestrictionResultRequired,
}
}
// ToPtr returns a *FieldRestrictionResult pointing to the current value.
func (c FieldRestrictionResult) ToPtr() *FieldRestrictionResult {
return &c
}
type PolicyStatesResource string
const (
PolicyStatesResourceDefault PolicyStatesResource = "default"
PolicyStatesResourceLatest PolicyStatesResource = "latest"
)
// PossiblePolicyStatesResourceValues returns the possible values for the PolicyStatesResource const type.
func PossiblePolicyStatesResourceValues() []PolicyStatesResource {
return []PolicyStatesResource{
PolicyStatesResourceDefault,
PolicyStatesResourceLatest,
}
}
// ToPtr returns a *PolicyStatesResource pointing to the current value.
func (c PolicyStatesResource) ToPtr() *PolicyStatesResource {
return &c
}
// ResourceDiscoveryMode - The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified.
type ResourceDiscoveryMode string
const (
// ResourceDiscoveryModeExistingNonCompliant - Remediate resources that are already known to be non-compliant.
ResourceDiscoveryModeExistingNonCompliant ResourceDiscoveryMode = "ExistingNonCompliant"
// ResourceDiscoveryModeReEvaluateCompliance - Re-evaluate the compliance state of resources and then remediate the resources
// found to be non-compliant.
ResourceDiscoveryModeReEvaluateCompliance ResourceDiscoveryMode = "ReEvaluateCompliance"
)
// PossibleResourceDiscoveryModeValues returns the possible values for the ResourceDiscoveryMode const type.
func PossibleResourceDiscoveryModeValues() []ResourceDiscoveryMode {
return []ResourceDiscoveryMode{
ResourceDiscoveryModeExistingNonCompliant,
ResourceDiscoveryModeReEvaluateCompliance,
}
}
// ToPtr returns a *ResourceDiscoveryMode pointing to the current value.
func (c ResourceDiscoveryMode) ToPtr() *ResourceDiscoveryMode {
return &c
}