/
enums.go
228 lines (203 loc) · 8.65 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
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
217
218
219
220
221
222
223
224
225
226
227
228
package keyvault
// 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.
// AccessPolicyUpdateKind enumerates the values for access policy update kind.
type AccessPolicyUpdateKind string
const (
// Add ...
Add AccessPolicyUpdateKind = "add"
// Remove ...
Remove AccessPolicyUpdateKind = "remove"
// Replace ...
Replace AccessPolicyUpdateKind = "replace"
)
// PossibleAccessPolicyUpdateKindValues returns an array of possible values for the AccessPolicyUpdateKind const type.
func PossibleAccessPolicyUpdateKindValues() []AccessPolicyUpdateKind {
return []AccessPolicyUpdateKind{Add, Remove, Replace}
}
// CertificatePermissions enumerates the values for certificate permissions.
type CertificatePermissions string
const (
// Create ...
Create CertificatePermissions = "create"
// Delete ...
Delete CertificatePermissions = "delete"
// Deleteissuers ...
Deleteissuers CertificatePermissions = "deleteissuers"
// Get ...
Get CertificatePermissions = "get"
// Getissuers ...
Getissuers CertificatePermissions = "getissuers"
// Import ...
Import CertificatePermissions = "import"
// List ...
List CertificatePermissions = "list"
// Listissuers ...
Listissuers CertificatePermissions = "listissuers"
// Managecontacts ...
Managecontacts CertificatePermissions = "managecontacts"
// Manageissuers ...
Manageissuers CertificatePermissions = "manageissuers"
// Purge ...
Purge CertificatePermissions = "purge"
// Recover ...
Recover CertificatePermissions = "recover"
// Setissuers ...
Setissuers CertificatePermissions = "setissuers"
// Update ...
Update CertificatePermissions = "update"
)
// PossibleCertificatePermissionsValues returns an array of possible values for the CertificatePermissions const type.
func PossibleCertificatePermissionsValues() []CertificatePermissions {
return []CertificatePermissions{Create, Delete, Deleteissuers, Get, Getissuers, Import, List, Listissuers, Managecontacts, Manageissuers, Purge, Recover, Setissuers, Update}
}
// CreateMode enumerates the values for create mode.
type CreateMode string
const (
// CreateModeDefault ...
CreateModeDefault CreateMode = "default"
// CreateModeRecover ...
CreateModeRecover CreateMode = "recover"
)
// PossibleCreateModeValues returns an array of possible values for the CreateMode const type.
func PossibleCreateModeValues() []CreateMode {
return []CreateMode{CreateModeDefault, CreateModeRecover}
}
// KeyPermissions enumerates the values for key permissions.
type KeyPermissions string
const (
// KeyPermissionsBackup ...
KeyPermissionsBackup KeyPermissions = "backup"
// KeyPermissionsCreate ...
KeyPermissionsCreate KeyPermissions = "create"
// KeyPermissionsDecrypt ...
KeyPermissionsDecrypt KeyPermissions = "decrypt"
// KeyPermissionsDelete ...
KeyPermissionsDelete KeyPermissions = "delete"
// KeyPermissionsEncrypt ...
KeyPermissionsEncrypt KeyPermissions = "encrypt"
// KeyPermissionsGet ...
KeyPermissionsGet KeyPermissions = "get"
// KeyPermissionsImport ...
KeyPermissionsImport KeyPermissions = "import"
// KeyPermissionsList ...
KeyPermissionsList KeyPermissions = "list"
// KeyPermissionsPurge ...
KeyPermissionsPurge KeyPermissions = "purge"
// KeyPermissionsRecover ...
KeyPermissionsRecover KeyPermissions = "recover"
// KeyPermissionsRestore ...
KeyPermissionsRestore KeyPermissions = "restore"
// KeyPermissionsSign ...
KeyPermissionsSign KeyPermissions = "sign"
// KeyPermissionsUnwrapKey ...
KeyPermissionsUnwrapKey KeyPermissions = "unwrapKey"
// KeyPermissionsUpdate ...
KeyPermissionsUpdate KeyPermissions = "update"
// KeyPermissionsVerify ...
KeyPermissionsVerify KeyPermissions = "verify"
// KeyPermissionsWrapKey ...
KeyPermissionsWrapKey KeyPermissions = "wrapKey"
)
// PossibleKeyPermissionsValues returns an array of possible values for the KeyPermissions const type.
func PossibleKeyPermissionsValues() []KeyPermissions {
return []KeyPermissions{KeyPermissionsBackup, KeyPermissionsCreate, KeyPermissionsDecrypt, KeyPermissionsDelete, KeyPermissionsEncrypt, KeyPermissionsGet, KeyPermissionsImport, KeyPermissionsList, KeyPermissionsPurge, KeyPermissionsRecover, KeyPermissionsRestore, KeyPermissionsSign, KeyPermissionsUnwrapKey, KeyPermissionsUpdate, KeyPermissionsVerify, KeyPermissionsWrapKey}
}
// Reason enumerates the values for reason.
type Reason string
const (
// AccountNameInvalid ...
AccountNameInvalid Reason = "AccountNameInvalid"
// AlreadyExists ...
AlreadyExists Reason = "AlreadyExists"
)
// PossibleReasonValues returns an array of possible values for the Reason const type.
func PossibleReasonValues() []Reason {
return []Reason{AccountNameInvalid, AlreadyExists}
}
// SecretPermissions enumerates the values for secret permissions.
type SecretPermissions string
const (
// SecretPermissionsBackup ...
SecretPermissionsBackup SecretPermissions = "backup"
// SecretPermissionsDelete ...
SecretPermissionsDelete SecretPermissions = "delete"
// SecretPermissionsGet ...
SecretPermissionsGet SecretPermissions = "get"
// SecretPermissionsList ...
SecretPermissionsList SecretPermissions = "list"
// SecretPermissionsPurge ...
SecretPermissionsPurge SecretPermissions = "purge"
// SecretPermissionsRecover ...
SecretPermissionsRecover SecretPermissions = "recover"
// SecretPermissionsRestore ...
SecretPermissionsRestore SecretPermissions = "restore"
// SecretPermissionsSet ...
SecretPermissionsSet SecretPermissions = "set"
)
// PossibleSecretPermissionsValues returns an array of possible values for the SecretPermissions const type.
func PossibleSecretPermissionsValues() []SecretPermissions {
return []SecretPermissions{SecretPermissionsBackup, SecretPermissionsDelete, SecretPermissionsGet, SecretPermissionsList, SecretPermissionsPurge, SecretPermissionsRecover, SecretPermissionsRestore, SecretPermissionsSet}
}
// SkuName enumerates the values for sku name.
type SkuName string
const (
// Premium ...
Premium SkuName = "premium"
// Standard ...
Standard SkuName = "standard"
)
// PossibleSkuNameValues returns an array of possible values for the SkuName const type.
func PossibleSkuNameValues() []SkuName {
return []SkuName{Premium, Standard}
}
// StoragePermissions enumerates the values for storage permissions.
type StoragePermissions string
const (
// StoragePermissionsBackup ...
StoragePermissionsBackup StoragePermissions = "backup"
// StoragePermissionsDelete ...
StoragePermissionsDelete StoragePermissions = "delete"
// StoragePermissionsDeletesas ...
StoragePermissionsDeletesas StoragePermissions = "deletesas"
// StoragePermissionsGet ...
StoragePermissionsGet StoragePermissions = "get"
// StoragePermissionsGetsas ...
StoragePermissionsGetsas StoragePermissions = "getsas"
// StoragePermissionsList ...
StoragePermissionsList StoragePermissions = "list"
// StoragePermissionsListsas ...
StoragePermissionsListsas StoragePermissions = "listsas"
// StoragePermissionsPurge ...
StoragePermissionsPurge StoragePermissions = "purge"
// StoragePermissionsRecover ...
StoragePermissionsRecover StoragePermissions = "recover"
// StoragePermissionsRegeneratekey ...
StoragePermissionsRegeneratekey StoragePermissions = "regeneratekey"
// StoragePermissionsRestore ...
StoragePermissionsRestore StoragePermissions = "restore"
// StoragePermissionsSet ...
StoragePermissionsSet StoragePermissions = "set"
// StoragePermissionsSetsas ...
StoragePermissionsSetsas StoragePermissions = "setsas"
// StoragePermissionsUpdate ...
StoragePermissionsUpdate StoragePermissions = "update"
)
// PossibleStoragePermissionsValues returns an array of possible values for the StoragePermissions const type.
func PossibleStoragePermissionsValues() []StoragePermissions {
return []StoragePermissions{StoragePermissionsBackup, StoragePermissionsDelete, StoragePermissionsDeletesas, StoragePermissionsGet, StoragePermissionsGetsas, StoragePermissionsList, StoragePermissionsListsas, StoragePermissionsPurge, StoragePermissionsRecover, StoragePermissionsRegeneratekey, StoragePermissionsRestore, StoragePermissionsSet, StoragePermissionsSetsas, StoragePermissionsUpdate}
}