forked from terra-farm/go-xen-api-client
-
Notifications
You must be signed in to change notification settings - Fork 2
/
client_gen.go
123 lines (118 loc) · 3.18 KB
/
client_gen.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
//
// This file is generated. To change the content of this file, please do not
// apply the change to this file because it will get overwritten. Instead,
// change xenapi.go and execute 'go generate'.
//
package xenAPI
import (
"fmt"
"github.com/amfranz/go-xmlrpc-client"
"reflect"
"strconv"
"time"
)
var _ = fmt.Errorf
var _ = xmlrpc.NewClient
var _ = reflect.TypeOf
var _ = strconv.Atoi
var _ = time.UTC
type Client struct {
rpc *xmlrpc.Client
Session SessionClass
Auth AuthClass
Subject SubjectClass
Role RoleClass
Task TaskClass
Event EventClass
Pool PoolClass
PoolPatch PoolPatchClass
VM VMClass
VMMetrics VMMetricsClass
VMGuestMetrics VMGuestMetricsClass
VMPP VMPPClass
VMAppliance VMApplianceClass
DRTask DRTaskClass
Host HostClass
HostCrashdump HostCrashdumpClass
HostPatch HostPatchClass
HostMetrics HostMetricsClass
HostCPU HostCPUClass
Network NetworkClass
VIF VIFClass
VIFMetrics VIFMetricsClass
PIF PIFClass
PIFMetrics PIFMetricsClass
Bond BondClass
VLAN VLANClass
SM SMClass
SR SRClass
VDI VDIClass
VBD VBDClass
VBDMetrics VBDMetricsClass
PBD PBDClass
Crashdump CrashdumpClass
VTPM VTPMClass
Console ConsoleClass
User UserClass
DataSource DataSourceClass
Blob BlobClass
Message MessageClass
Secret SecretClass
Tunnel TunnelClass
PCI PCIClass
PGPU PGPUClass
GPUGroup GPUGroupClass
VGPU VGPUClass
VGPUType VGPUTypeClass
}
func prepClient(rpc *xmlrpc.Client) *Client {
var client Client
client.rpc = rpc
client.Session = SessionClass{&client}
client.Auth = AuthClass{&client}
client.Subject = SubjectClass{&client}
client.Role = RoleClass{&client}
client.Task = TaskClass{&client}
client.Event = EventClass{&client}
client.Pool = PoolClass{&client}
client.PoolPatch = PoolPatchClass{&client}
client.VM = VMClass{&client}
client.VMMetrics = VMMetricsClass{&client}
client.VMGuestMetrics = VMGuestMetricsClass{&client}
client.VMPP = VMPPClass{&client}
client.VMAppliance = VMApplianceClass{&client}
client.DRTask = DRTaskClass{&client}
client.Host = HostClass{&client}
client.HostCrashdump = HostCrashdumpClass{&client}
client.HostPatch = HostPatchClass{&client}
client.HostMetrics = HostMetricsClass{&client}
client.HostCPU = HostCPUClass{&client}
client.Network = NetworkClass{&client}
client.VIF = VIFClass{&client}
client.VIFMetrics = VIFMetricsClass{&client}
client.PIF = PIFClass{&client}
client.PIFMetrics = PIFMetricsClass{&client}
client.Bond = BondClass{&client}
client.VLAN = VLANClass{&client}
client.SM = SMClass{&client}
client.SR = SRClass{&client}
client.VDI = VDIClass{&client}
client.VBD = VBDClass{&client}
client.VBDMetrics = VBDMetricsClass{&client}
client.PBD = PBDClass{&client}
client.Crashdump = CrashdumpClass{&client}
client.VTPM = VTPMClass{&client}
client.Console = ConsoleClass{&client}
client.User = UserClass{&client}
client.DataSource = DataSourceClass{&client}
client.Blob = BlobClass{&client}
client.Message = MessageClass{&client}
client.Secret = SecretClass{&client}
client.Tunnel = TunnelClass{&client}
client.PCI = PCIClass{&client}
client.PGPU = PGPUClass{&client}
client.GPUGroup = GPUGroupClass{&client}
client.VGPU = VGPUClass{&client}
client.VGPUType = VGPUTypeClass{&client}
return &client
}