forked from Azure/azure-sdk-for-go
/
enums.go
137 lines (115 loc) · 3.83 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
package storagesync
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// CloudTiering enumerates the values for cloud tiering.
type CloudTiering string
const (
// Off ...
Off CloudTiering = "off"
// On ...
On CloudTiering = "on"
)
// PossibleCloudTieringValues returns an array of possible values for the CloudTiering const type.
func PossibleCloudTieringValues() []CloudTiering {
return []CloudTiering{Off, On}
}
// CloudTiering1 enumerates the values for cloud tiering 1.
type CloudTiering1 string
const (
// CloudTiering1Off ...
CloudTiering1Off CloudTiering1 = "off"
// CloudTiering1On ...
CloudTiering1On CloudTiering1 = "on"
)
// PossibleCloudTiering1Values returns an array of possible values for the CloudTiering1 const type.
func PossibleCloudTiering1Values() []CloudTiering1 {
return []CloudTiering1{CloudTiering1Off, CloudTiering1On}
}
// CloudTiering2 enumerates the values for cloud tiering 2.
type CloudTiering2 string
const (
// CloudTiering2Off ...
CloudTiering2Off CloudTiering2 = "off"
// CloudTiering2On ...
CloudTiering2On CloudTiering2 = "on"
)
// PossibleCloudTiering2Values returns an array of possible values for the CloudTiering2 const type.
func PossibleCloudTiering2Values() []CloudTiering2 {
return []CloudTiering2{CloudTiering2Off, CloudTiering2On}
}
// NameAvailabilityReason enumerates the values for name availability reason.
type NameAvailabilityReason string
const (
// AlreadyExists ...
AlreadyExists NameAvailabilityReason = "AlreadyExists"
// Invalid ...
Invalid NameAvailabilityReason = "Invalid"
)
// PossibleNameAvailabilityReasonValues returns an array of possible values for the NameAvailabilityReason const type.
func PossibleNameAvailabilityReasonValues() []NameAvailabilityReason {
return []NameAvailabilityReason{AlreadyExists, Invalid}
}
// Operation enumerates the values for operation.
type Operation string
const (
// Cancel ...
Cancel Operation = "cancel"
// Do ...
Do Operation = "do"
// Undo ...
Undo Operation = "undo"
)
// PossibleOperationValues returns an array of possible values for the Operation const type.
func PossibleOperationValues() []Operation {
return []Operation{Cancel, Do, Undo}
}
// Reason enumerates the values for reason.
type Reason string
const (
// Deleted ...
Deleted Reason = "Deleted"
// Registered ...
Registered Reason = "Registered"
// Suspended ...
Suspended Reason = "Suspended"
// Unregistered ...
Unregistered Reason = "Unregistered"
// Warned ...
Warned Reason = "Warned"
)
// PossibleReasonValues returns an array of possible values for the Reason const type.
func PossibleReasonValues() []Reason {
return []Reason{Deleted, Registered, Suspended, Unregistered, Warned}
}
// Status enumerates the values for status.
type Status string
const (
// Aborted ...
Aborted Status = "aborted"
// Active ...
Active Status = "active"
// Expired ...
Expired Status = "expired"
// Failed ...
Failed Status = "failed"
// Succeeded ...
Succeeded Status = "succeeded"
)
// PossibleStatusValues returns an array of possible values for the Status const type.
func PossibleStatusValues() []Status {
return []Status{Aborted, Active, Expired, Failed, Succeeded}
}