/
common_attributes.go
62 lines (52 loc) · 1.55 KB
/
common_attributes.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
// Copyright 2018 NetApp, Inc. All Rights Reserved.
package storageattribute
const (
// Constants for integer storage category attributes
IOPS = "IOPS"
// Constants for boolean storage category attributes
Snapshots = "snapshots"
Clones = "clones"
Encryption = "encryption"
// Constants for string list attributes
ProvisioningType = "provisioningType"
BackendType = "backendType"
Media = "media"
Region = "region"
Zone = "zone"
// Constants for label attributes
Labels = "labels"
Selector = "selector"
// Testing constants
RecoveryTest = "recoveryTest"
UniqueOptions = "uniqueOptions"
TestingAttribute = "testingAttribute"
NonexistentBool = "nonexistentBool"
// Values for media
HDD = "hdd"
SSD = "ssd"
Hybrid = "hybrid"
// Values for provisioning type
Thick = "thick"
Thin = "thin"
RequiredStorage = "requiredStorage" // deprecated, use additionalStoragePools
StoragePools = "storagePools"
AdditionalStoragePools = "additionalStoragePools"
ExcludeStoragePools = "excludeStoragePools"
)
var attrTypes = map[string]Type{
IOPS: intType,
Snapshots: boolType,
Clones: boolType,
Encryption: boolType,
ProvisioningType: stringType,
BackendType: stringType,
Media: stringType,
Region: stringType,
Zone: stringType,
Labels: labelType,
Selector: labelType,
RecoveryTest: boolType,
UniqueOptions: stringType,
TestingAttribute: boolType,
NonexistentBool: boolType,
}