Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 26 additions & 4 deletions propertycollector.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ type SelectionSpec struct {
// http://pubs.vmware.com/vsphere-55/index.jsp#com.vmware.wssdk.apiref.doc/vmodl.query.PropertyCollector.TraversalSpec.html
type TraversalSpec struct {
SelectionSpec
XsiType string `xml:"http://www.w3.org/2001/XMLSchema-instance type,attr"`
Type string `xml:"type"`
Path string `xml:"path"`
Skip bool `xml:"skip"`
XsiType string `xml:"http://www.w3.org/2001/XMLSchema-instance type,attr"`
Type string `xml:"type"`
Path string `xml:"path"`
Skip bool `xml:"skip"`
SelectSet []*SelectionSpec `xml:"selectSet"`
}

// http://pubs.vmware.com/vsphere-55/index.jsp#com.vmware.wssdk.apiref.doc/vmodl.query.PropertyCollector.PropertySpec.html
Expand Down Expand Up @@ -93,3 +94,24 @@ type MissingProperty struct {
// Fault LocalizedMethodFault `xml:"fault"` // TODO(igm)
Path string `xml:"path"`
}

// http://pubs.vmware.com/vsphere-55/index.jsp?topic=%2Fcom.vmware.wssdk.apiref.doc%2Fvmodl.query.PropertyCollector.html
type CreatePropertyCollector struct {
XMLName xml.Name `xml:"urn:vim25 CreatePropertyCollector"`
This *PropertyCollector `xml:"_this"`
}

type CreatePropertyCollectorResponse struct {
XMLName xml.Name `xml:"urn:vim25 CreatePropertyCollectorResponse"`
PropertyCollector *PropertyCollector `xml:"returnval"`
}

// http://pubs.vmware.com/vsphere-55/index.jsp?topic=%2Fcom.vmware.wssdk.apiref.doc%2Fvmodl.query.PropertyCollector.html
type DestroyPropertyCollector struct {
XMLName xml.Name `xml:"urn:vim25 DestroyPropertyCollector"`
This *PropertyCollector `xml:"_this"`
}

type DestroyPropertyCollectorResponse struct {
XMLName xml.Name `xml:"urn:vim25 DestroyPropertyCollectorResponse"`
}
8 changes: 8 additions & 0 deletions sessionmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ type LoginResponse struct {
UserSession UserSession `xml:"urn:vim25 returnval"`
}

type Logout struct {
XMLName xml.Name `xml:"urn:vim25 Logout"`
This *SessionManager `xml:"_this"`
}

type LogoutResponse struct {
}

type UserSession struct {
Key string `xml:"key"`
UserName string `xml:"userName"`
Expand Down
10 changes: 8 additions & 2 deletions soap.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ type Body struct {
CurrentTimeResponse *CurrentTimeResponse

// SessionManager
LoginRequest *Login
LoginResponse *LoginResponse
LoginRequest *Login
LoginResponse *LoginResponse
LogoutRequest *Logout
LogoutResponse *LogoutResponse

// ViewManager
CreateContainerViewRequest *CreateContainerView
Expand All @@ -60,6 +62,10 @@ type Body struct {
ContinueRetrievePropertiesExRequest *ContinueRetrievePropertiesEx
ContinueRetrievePropertiesExResponse *ContinueRetrievePropertiesExResponse
CancelRetrievePropertiesExRequest *CancelRetrievePropertiesEx
CreatePropertyCollectorRequest *CreatePropertyCollector
CreatePropertyCollectorResponse *CreatePropertyCollectorResponse
DestroyPropertyCollectorRequest *DestroyPropertyCollector
DestroyPropertyCollectorResponse *DestroyPropertyCollectorResponse

// VirtualMachine
PowerOnVM_Task *PowerOnVM_Task
Expand Down