...
1
2
3 package affinitygroup
4
5
6
7
8 import (
9 "encoding/xml"
10 )
11
12
13
14
15
16 type CreateAffinityGroupParams struct {
17 XMLName xml.Name `xml:"http://schemas.microsoft.com/windowsazure CreateAffinityGroup"`
18 Name string
19 Label string
20 Description string `xml:",omitempty"`
21 Location string
22 }
23
24
25
26 type HostedService struct {
27 URL string `xml:"Url"`
28 ServiceName string
29 }
30
31
32
33 type StorageService struct {
34 URL string `xml:"Url"`
35 ServiceName string
36 }
37
38
39
40
41 type AffinityGroup struct {
42 Name string
43 Label string
44 Description string
45 Location string
46 HostedServices []HostedService
47 StorageServices []StorageService
48 Capabilities []string
49 }
50
51
52
53 type ComputeCapabilities struct {
54 VirtualMachineRoleSizes []string
55 WebWorkerRoleSizes []string
56 }
57
58
59
60
61
62 type AffinityGroupListResponse struct {
63 Name string
64 Label string
65 Description string
66 Location string
67 Capabilities []string
68 ComputeCapabilities ComputeCapabilities
69 }
70
71
72
73 type ListAffinityGroupsResponse struct {
74 AffinityGroups []AffinityGroupListResponse `xml:"AffinityGroup"`
75 }
76
77
78
79
80
81 type UpdateAffinityGroupParams struct {
82 XMLName xml.Name `xml:"http://schemas.microsoft.com/windowsazure UpdateAffinityGroup"`
83 Label string `xml:",omitempty"`
84 Description string `xml:",omitempty"`
85 }
86
View as plain text