Skip to content

Commit

Permalink
enable query orgs
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Hochuli committed Aug 25, 2023
1 parent ad7fd03 commit fad2e0d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions types/v56/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2369,6 +2369,7 @@ type QueryResultRecordsType struct {
VmGroupsRecord []*QueryResultVmGroupsRecordType `xml:"VmGroupsRecord"` // A record representing a VM Group
TaskRecord []*QueryResultTaskRecordType `xml:"TaskRecord"` // A record representing a Task
AdminTaskRecord []*QueryResultTaskRecordType `xml:"AdminTaskRecord"` // A record representing an Admin Task
OrgRecord []*QueryResultOrgRecordType `xml:"OrgRecord"` // A record representing an Organisation
}

// QueryResultVmGroupsRecordType represent a VM Groups record
Expand Down Expand Up @@ -3357,6 +3358,27 @@ type QueryResultTaskRecordType struct {
Metadata *Metadata `xml:"Metadata,omitempty"`
}

// QueryResultOrgVdcRecordType represents an Organisation record
type QueryResultOrgRecordType struct {
HREF string `xml:"href,attr,omitempty"`
Type string `xml:"type,attr,omitempty"`
ID string `xml:"id,attr,omitempty"`
Name string `xml:"name,attr"`
DisplayName string `xml:"displayName,attr,omitempty"`
IsEnabled bool `xml:"IsEnabled,attr,omitempty"`
IsReadOnly bool `xml:"isReadOnly,attr,omitempty"`
CanPublishCatalogs bool `xml:"canPublishCatalogs,attr,omitempty"`
DeployedVMQuota *int `xml:"deployedVMQuota,attr,omitempty"`
StoredVMQuota *int `xml:"storedVMQuota,attr,omitempty"`
NumberOfCatalogs *int `xml:"numberOfCatalogs,attr,omitempty"`
NumberOfVdcs *int `xml:"numberOfVdcs,attr,omitempty"`
NumberOfVApps *int `xml:"numberOfVApps,attr,omitempty"`
NumberOfGroups *int `xml:"numberOfGroups,attr,omitempty"`
NumberOfDisks *int `xml:"numberOfDisks,attr,omitempty"`
Link *LinkList `xml:"Link,omitempty"`
Metadata *Metadata `xml:"Metadata,omitempty"`
}

// ProviderVdcCreation contains the data needed to create a provider VDC.
// Note that this is a subset of the full structure of a provider VDC.
type ProviderVdcCreation struct {
Expand Down

0 comments on commit fad2e0d

Please sign in to comment.