forked from docker/machine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
entities.go
49 lines (42 loc) · 1.25 KB
/
entities.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
package storageServiceClient
import (
"encoding/xml"
)
type StorageServiceList struct {
XMLName xml.Name `xml:"StorageServices"`
Xmlns string `xml:"xmlns,attr"`
StorageServices []StorageService `xml:"StorageService"`
}
type StorageService struct {
Url string
ServiceName string
StorageServiceProperties StorageServiceProperties
}
type StorageServiceProperties struct {
Description string
Location string
Label string
Status string
Endpoints []string `xml:"Endpoints>Endpoint"`
GeoReplicationEnabled string
GeoPrimaryRegion string
}
type StorageServiceDeployment struct {
XMLName xml.Name `xml:"CreateStorageServiceInput"`
Xmlns string `xml:"xmlns,attr"`
ServiceName string
Description string
Label string
AffinityGroup string `xml:",omitempty"`
Location string `xml:",omitempty"`
GeoReplicationEnabled bool
ExtendedProperties ExtendedPropertyList
SecondaryReadEnabled bool
}
type ExtendedPropertyList struct {
ExtendedProperty []ExtendedProperty
}
type ExtendedProperty struct {
Name string
Value string
}