/
enums.go
55 lines (45 loc) · 2.16 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
package policyinsights
// 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.
// FieldRestrictionResult enumerates the values for field restriction result.
type FieldRestrictionResult string
const (
// Deny The field and/or values will be denied by policy.
Deny FieldRestrictionResult = "Deny"
// Removed The field will be removed by policy.
Removed FieldRestrictionResult = "Removed"
// Required The field and/or values are required by policy.
Required FieldRestrictionResult = "Required"
)
// PossibleFieldRestrictionResultValues returns an array of possible values for the FieldRestrictionResult const type.
func PossibleFieldRestrictionResultValues() []FieldRestrictionResult {
return []FieldRestrictionResult{Deny, Removed, Required}
}
// PolicyStatesResource enumerates the values for policy states resource.
type PolicyStatesResource string
const (
// Default ...
Default PolicyStatesResource = "default"
// Latest ...
Latest PolicyStatesResource = "latest"
)
// PossiblePolicyStatesResourceValues returns an array of possible values for the PolicyStatesResource const type.
func PossiblePolicyStatesResourceValues() []PolicyStatesResource {
return []PolicyStatesResource{Default, Latest}
}
// ResourceDiscoveryMode enumerates the values for resource discovery mode.
type ResourceDiscoveryMode string
const (
// ExistingNonCompliant Remediate resources that are already known to be non-compliant.
ExistingNonCompliant ResourceDiscoveryMode = "ExistingNonCompliant"
// ReEvaluateCompliance Re-evaluate the compliance state of resources and then remediate the resources
// found to be non-compliant.
ReEvaluateCompliance ResourceDiscoveryMode = "ReEvaluateCompliance"
)
// PossibleResourceDiscoveryModeValues returns an array of possible values for the ResourceDiscoveryMode const type.
func PossibleResourceDiscoveryModeValues() []ResourceDiscoveryMode {
return []ResourceDiscoveryMode{ExistingNonCompliant, ReEvaluateCompliance}
}