diff --git a/error.go b/error.go index 85d6560..4d719ea 100644 --- a/error.go +++ b/error.go @@ -26,6 +26,12 @@ type AuthError struct { baseError } +// Conflict error indicates that the operation failed because of a conflict. +// For example, another operation blocks the operation from being executed. +type ConflictError struct { + baseError +} + // NotFoundError indicates that an object can't be found. type NotFoundError struct { baseError @@ -165,6 +171,13 @@ func BuildError(response *http.Response, fault *Fault) error { buffer.String(), }, } + } else if response.StatusCode == 409 { + return &ConflictError{ + baseError{ + response.StatusCode, + buffer.String(), + }, + } } } diff --git a/readers.go b/readers.go index 8aff2db..21f6b13 100644 --- a/readers.go +++ b/readers.go @@ -1,18 +1,16 @@ -// // Copyright (c) 2017 Joey . // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// package ovirtsdk import ( diff --git a/services.go b/services.go index f81cfa7..850a259 100644 --- a/services.go +++ b/services.go @@ -1,18 +1,16 @@ -// // Copyright (c) 2017 Joey . // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// package ovirtsdk import ( @@ -25,7 +23,6 @@ import ( "strings" ) -// // This annotation is intended to specify what oVirt area is the annotated concept related to. Currently the following // areas are in use, and they are closely related to the oVirt teams, but not necessarily the same: // - Infrastructure @@ -36,7 +33,6 @@ import ( // A concept may be associated to more than one area, or to no area. // The value of this annotation is intended for reporting only, and it doesn't affect at all the generated code or the // validity of the model -// type AreaService struct { BaseService } @@ -48,9 +44,7 @@ func NewAreaService(connection *Connection, path string) *AreaService { return &result } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AreaService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -62,8 +56,6 @@ func (op *AreaService) String() string { return fmt.Sprintf("AreaService:%s", op.path) } -// -// type FollowService struct { BaseService } @@ -75,9 +67,7 @@ func NewFollowService(connection *Connection, path string) *FollowService { return &result } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *FollowService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -89,9 +79,7 @@ func (op *FollowService) String() string { return fmt.Sprintf("FollowService:%s", op.path) } -// // This service manages a single host label assigned to an affinity group. -// type AffinityGroupHostLabelService struct { BaseService } @@ -103,9 +91,7 @@ func NewAffinityGroupHostLabelService(connection *Connection, path string) *Affi return &result } -// // Remove this label from the affinity group. -// type AffinityGroupHostLabelServiceRemoveRequest struct { AffinityGroupHostLabelService *AffinityGroupHostLabelService header map[string]string @@ -209,22 +195,16 @@ func (p *AffinityGroupHostLabelServiceRemoveRequest) MustSend() *AffinityGroupHo } } -// // Remove this label from the affinity group. -// type AffinityGroupHostLabelServiceRemoveResponse struct { } -// // Remove this label from the affinity group. -// func (p *AffinityGroupHostLabelService) Remove() *AffinityGroupHostLabelServiceRemoveRequest { return &AffinityGroupHostLabelServiceRemoveRequest{AffinityGroupHostLabelService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AffinityGroupHostLabelService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -236,9 +216,7 @@ func (op *AffinityGroupHostLabelService) String() string { return fmt.Sprintf("AffinityGroupHostLabelService:%s", op.path) } -// // This service manages a collection of all host labels assigned to an affinity group. -// type AffinityGroupHostLabelsService struct { BaseService } @@ -250,7 +228,6 @@ func NewAffinityGroupHostLabelsService(connection *Connection, path string) *Aff return &result } -// // Adds a host label to the affinity group. // For example, to add the label `789` to the affinity group `456` of cluster `123`, // send a request like this: @@ -262,7 +239,6 @@ func NewAffinityGroupHostLabelsService(connection *Connection, path string) *Aff // ---- // // ---- -// type AffinityGroupHostLabelsServiceAddRequest struct { AffinityGroupHostLabelsService *AffinityGroupHostLabelsService header map[string]string @@ -374,7 +350,6 @@ func (p *AffinityGroupHostLabelsServiceAddRequest) MustSend() *AffinityGroupHost } } -// // Adds a host label to the affinity group. // For example, to add the label `789` to the affinity group `456` of cluster `123`, // send a request like this: @@ -386,7 +361,6 @@ func (p *AffinityGroupHostLabelsServiceAddRequest) MustSend() *AffinityGroupHost // ---- // // ---- -// type AffinityGroupHostLabelsServiceAddResponse struct { label *AffinityLabel } @@ -405,7 +379,6 @@ func (p *AffinityGroupHostLabelsServiceAddResponse) MustLabel() *AffinityLabel { return p.label } -// // Adds a host label to the affinity group. // For example, to add the label `789` to the affinity group `456` of cluster `123`, // send a request like this: @@ -417,15 +390,12 @@ func (p *AffinityGroupHostLabelsServiceAddResponse) MustLabel() *AffinityLabel { // ---- // // ---- -// func (p *AffinityGroupHostLabelsService) Add() *AffinityGroupHostLabelsServiceAddRequest { return &AffinityGroupHostLabelsServiceAddRequest{AffinityGroupHostLabelsService: p} } -// // List all host labels assigned to this affinity group. // The order of the returned labels isn't guaranteed. -// type AffinityGroupHostLabelsServiceListRequest struct { AffinityGroupHostLabelsService *AffinityGroupHostLabelsService header map[string]string @@ -544,10 +514,8 @@ func (p *AffinityGroupHostLabelsServiceListRequest) MustSend() *AffinityGroupHos } } -// // List all host labels assigned to this affinity group. // The order of the returned labels isn't guaranteed. -// type AffinityGroupHostLabelsServiceListResponse struct { labels *AffinityLabelSlice } @@ -566,24 +534,18 @@ func (p *AffinityGroupHostLabelsServiceListResponse) MustLabels() *AffinityLabel return p.labels } -// // List all host labels assigned to this affinity group. // The order of the returned labels isn't guaranteed. -// func (p *AffinityGroupHostLabelsService) List() *AffinityGroupHostLabelsServiceListRequest { return &AffinityGroupHostLabelsServiceListRequest{AffinityGroupHostLabelsService: p} } -// // Access the service that manages the host label assignment to this affinity group. -// func (op *AffinityGroupHostLabelsService) LabelService(id string) *AffinityGroupHostLabelService { return NewAffinityGroupHostLabelService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AffinityGroupHostLabelsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -599,9 +561,7 @@ func (op *AffinityGroupHostLabelsService) String() string { return fmt.Sprintf("AffinityGroupHostLabelsService:%s", op.path) } -// // This service manages a single host to affinity group assignment. -// type AffinityGroupHostService struct { BaseService } @@ -613,9 +573,7 @@ func NewAffinityGroupHostService(connection *Connection, path string) *AffinityG return &result } -// // Remove host from the affinity group. -// type AffinityGroupHostServiceRemoveRequest struct { AffinityGroupHostService *AffinityGroupHostService header map[string]string @@ -719,22 +677,16 @@ func (p *AffinityGroupHostServiceRemoveRequest) MustSend() *AffinityGroupHostSer } } -// // Remove host from the affinity group. -// type AffinityGroupHostServiceRemoveResponse struct { } -// // Remove host from the affinity group. -// func (p *AffinityGroupHostService) Remove() *AffinityGroupHostServiceRemoveRequest { return &AffinityGroupHostServiceRemoveRequest{AffinityGroupHostService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AffinityGroupHostService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -746,9 +698,7 @@ func (op *AffinityGroupHostService) String() string { return fmt.Sprintf("AffinityGroupHostService:%s", op.path) } -// // This service manages a collection of all hosts assigned to an affinity group. -// type AffinityGroupHostsService struct { BaseService } @@ -760,7 +710,6 @@ func NewAffinityGroupHostsService(connection *Connection, path string) *Affinity return &result } -// // Adds a host to the affinity group. // For example, to add the host `789` to the affinity group `456` of cluster `123`, send a request like // this: @@ -772,7 +721,6 @@ func NewAffinityGroupHostsService(connection *Connection, path string) *Affinity // ---- // // ---- -// type AffinityGroupHostsServiceAddRequest struct { AffinityGroupHostsService *AffinityGroupHostsService header map[string]string @@ -884,7 +832,6 @@ func (p *AffinityGroupHostsServiceAddRequest) MustSend() *AffinityGroupHostsServ } } -// // Adds a host to the affinity group. // For example, to add the host `789` to the affinity group `456` of cluster `123`, send a request like // this: @@ -896,7 +843,6 @@ func (p *AffinityGroupHostsServiceAddRequest) MustSend() *AffinityGroupHostsServ // ---- // // ---- -// type AffinityGroupHostsServiceAddResponse struct { host *Host } @@ -915,7 +861,6 @@ func (p *AffinityGroupHostsServiceAddResponse) MustHost() *Host { return p.host } -// // Adds a host to the affinity group. // For example, to add the host `789` to the affinity group `456` of cluster `123`, send a request like // this: @@ -927,15 +872,12 @@ func (p *AffinityGroupHostsServiceAddResponse) MustHost() *Host { // ---- // // ---- -// func (p *AffinityGroupHostsService) Add() *AffinityGroupHostsServiceAddRequest { return &AffinityGroupHostsServiceAddRequest{AffinityGroupHostsService: p} } -// // List all hosts assigned to this affinity group. // The order of the returned hosts isn't guaranteed. -// type AffinityGroupHostsServiceListRequest struct { AffinityGroupHostsService *AffinityGroupHostsService header map[string]string @@ -1054,10 +996,8 @@ func (p *AffinityGroupHostsServiceListRequest) MustSend() *AffinityGroupHostsSer } } -// // List all hosts assigned to this affinity group. // The order of the returned hosts isn't guaranteed. -// type AffinityGroupHostsServiceListResponse struct { hosts *HostSlice } @@ -1076,24 +1016,18 @@ func (p *AffinityGroupHostsServiceListResponse) MustHosts() *HostSlice { return p.hosts } -// // List all hosts assigned to this affinity group. // The order of the returned hosts isn't guaranteed. -// func (p *AffinityGroupHostsService) List() *AffinityGroupHostsServiceListRequest { return &AffinityGroupHostsServiceListRequest{AffinityGroupHostsService: p} } -// // Access the service that manages the host assignment to this affinity group. -// func (op *AffinityGroupHostsService) HostService(id string) *AffinityGroupHostService { return NewAffinityGroupHostService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AffinityGroupHostsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -1109,9 +1043,7 @@ func (op *AffinityGroupHostsService) String() string { return fmt.Sprintf("AffinityGroupHostsService:%s", op.path) } -// // This service manages a single affinity group. -// type AffinityGroupService struct { BaseService } @@ -1123,18 +1055,18 @@ func NewAffinityGroupService(connection *Connection, path string) *AffinityGroup return &result } -// // Retrieve the affinity group details. // [source,xml] // ---- // -// AF_GROUP_001 -// -// true -// true +// +// AF_GROUP_001 +// +// true +// true +// // // ---- -// type AffinityGroupServiceGetRequest struct { AffinityGroupService *AffinityGroupService header map[string]string @@ -1243,18 +1175,18 @@ func (p *AffinityGroupServiceGetRequest) MustSend() *AffinityGroupServiceGetResp } } -// // Retrieve the affinity group details. // [source,xml] // ---- // -// AF_GROUP_001 -// -// true -// true +// +// AF_GROUP_001 +// +// true +// true +// // // ---- -// type AffinityGroupServiceGetResponse struct { group *AffinityGroup } @@ -1273,29 +1205,27 @@ func (p *AffinityGroupServiceGetResponse) MustGroup() *AffinityGroup { return p.group } -// // Retrieve the affinity group details. // [source,xml] // ---- // -// AF_GROUP_001 -// -// true -// true +// +// AF_GROUP_001 +// +// true +// true +// // // ---- -// func (p *AffinityGroupService) Get() *AffinityGroupServiceGetRequest { return &AffinityGroupServiceGetRequest{AffinityGroupService: p} } -// // Remove the affinity group. // [source] // ---- // DELETE /ovirt-engine/api/clusters/000-000/affinitygroups/123-456 // ---- -// type AffinityGroupServiceRemoveRequest struct { AffinityGroupService *AffinityGroupService header map[string]string @@ -1399,30 +1329,24 @@ func (p *AffinityGroupServiceRemoveRequest) MustSend() *AffinityGroupServiceRemo } } -// // Remove the affinity group. // [source] // ---- // DELETE /ovirt-engine/api/clusters/000-000/affinitygroups/123-456 // ---- -// type AffinityGroupServiceRemoveResponse struct { } -// // Remove the affinity group. // [source] // ---- // DELETE /ovirt-engine/api/clusters/000-000/affinitygroups/123-456 // ---- -// func (p *AffinityGroupService) Remove() *AffinityGroupServiceRemoveRequest { return &AffinityGroupServiceRemoveRequest{AffinityGroupService: p} } -// // Update the affinity group. -// type AffinityGroupServiceUpdateRequest struct { AffinityGroupService *AffinityGroupService header map[string]string @@ -1544,9 +1468,7 @@ func (p *AffinityGroupServiceUpdateRequest) MustSend() *AffinityGroupServiceUpda } } -// // Update the affinity group. -// type AffinityGroupServiceUpdateResponse struct { group *AffinityGroup } @@ -1565,52 +1487,40 @@ func (p *AffinityGroupServiceUpdateResponse) MustGroup() *AffinityGroup { return p.group } -// // Update the affinity group. -// func (p *AffinityGroupService) Update() *AffinityGroupServiceUpdateRequest { return &AffinityGroupServiceUpdateRequest{AffinityGroupService: p} } -// // Returns a reference to the service that manages the // list of all host labels attached to this affinity // group. -// func (op *AffinityGroupService) HostLabelsService() *AffinityGroupHostLabelsService { return NewAffinityGroupHostLabelsService(op.connection, fmt.Sprintf("%s/hostlabels", op.path)) } -// // Returns a reference to the service that manages the // list of all hosts attached to this affinity // group. -// func (op *AffinityGroupService) HostsService() *AffinityGroupHostsService { return NewAffinityGroupHostsService(op.connection, fmt.Sprintf("%s/hosts", op.path)) } -// // Returns a reference to the service that manages the // list of all virtual machine labels attached to this affinity // group. -// func (op *AffinityGroupService) VmLabelsService() *AffinityGroupVmLabelsService { return NewAffinityGroupVmLabelsService(op.connection, fmt.Sprintf("%s/vmlabels", op.path)) } -// // Returns a reference to the service that manages the // list of all virtual machines attached to this affinity // group. -// func (op *AffinityGroupService) VmsService() *AffinityGroupVmsService { return NewAffinityGroupVmsService(op.connection, fmt.Sprintf("%s/vms", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AffinityGroupService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -1646,9 +1556,7 @@ func (op *AffinityGroupService) String() string { return fmt.Sprintf("AffinityGroupService:%s", op.path) } -// // This service manages a single virtual machine label assigned to an affinity group. -// type AffinityGroupVmLabelService struct { BaseService } @@ -1660,9 +1568,7 @@ func NewAffinityGroupVmLabelService(connection *Connection, path string) *Affini return &result } -// // Remove this label from the affinity group. -// type AffinityGroupVmLabelServiceRemoveRequest struct { AffinityGroupVmLabelService *AffinityGroupVmLabelService header map[string]string @@ -1766,22 +1672,16 @@ func (p *AffinityGroupVmLabelServiceRemoveRequest) MustSend() *AffinityGroupVmLa } } -// // Remove this label from the affinity group. -// type AffinityGroupVmLabelServiceRemoveResponse struct { } -// // Remove this label from the affinity group. -// func (p *AffinityGroupVmLabelService) Remove() *AffinityGroupVmLabelServiceRemoveRequest { return &AffinityGroupVmLabelServiceRemoveRequest{AffinityGroupVmLabelService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AffinityGroupVmLabelService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -1793,9 +1693,7 @@ func (op *AffinityGroupVmLabelService) String() string { return fmt.Sprintf("AffinityGroupVmLabelService:%s", op.path) } -// // This service manages a collection of all virtual machine labels assigned to an affinity group. -// type AffinityGroupVmLabelsService struct { BaseService } @@ -1807,7 +1705,6 @@ func NewAffinityGroupVmLabelsService(connection *Connection, path string) *Affin return &result } -// // Adds a virtual machine label to the affinity group. // For example, to add the label `789` to the affinity group `456` of cluster `123`, // send a request like this: @@ -1819,7 +1716,6 @@ func NewAffinityGroupVmLabelsService(connection *Connection, path string) *Affin // ---- // // ---- -// type AffinityGroupVmLabelsServiceAddRequest struct { AffinityGroupVmLabelsService *AffinityGroupVmLabelsService header map[string]string @@ -1931,7 +1827,6 @@ func (p *AffinityGroupVmLabelsServiceAddRequest) MustSend() *AffinityGroupVmLabe } } -// // Adds a virtual machine label to the affinity group. // For example, to add the label `789` to the affinity group `456` of cluster `123`, // send a request like this: @@ -1943,7 +1838,6 @@ func (p *AffinityGroupVmLabelsServiceAddRequest) MustSend() *AffinityGroupVmLabe // ---- // // ---- -// type AffinityGroupVmLabelsServiceAddResponse struct { label *AffinityLabel } @@ -1962,7 +1856,6 @@ func (p *AffinityGroupVmLabelsServiceAddResponse) MustLabel() *AffinityLabel { return p.label } -// // Adds a virtual machine label to the affinity group. // For example, to add the label `789` to the affinity group `456` of cluster `123`, // send a request like this: @@ -1974,15 +1867,12 @@ func (p *AffinityGroupVmLabelsServiceAddResponse) MustLabel() *AffinityLabel { // ---- // // ---- -// func (p *AffinityGroupVmLabelsService) Add() *AffinityGroupVmLabelsServiceAddRequest { return &AffinityGroupVmLabelsServiceAddRequest{AffinityGroupVmLabelsService: p} } -// // List all virtual machine labels assigned to this affinity group. // The order of the returned labels isn't guaranteed. -// type AffinityGroupVmLabelsServiceListRequest struct { AffinityGroupVmLabelsService *AffinityGroupVmLabelsService header map[string]string @@ -2101,10 +1991,8 @@ func (p *AffinityGroupVmLabelsServiceListRequest) MustSend() *AffinityGroupVmLab } } -// // List all virtual machine labels assigned to this affinity group. // The order of the returned labels isn't guaranteed. -// type AffinityGroupVmLabelsServiceListResponse struct { labels *AffinityLabelSlice } @@ -2123,24 +2011,18 @@ func (p *AffinityGroupVmLabelsServiceListResponse) MustLabels() *AffinityLabelSl return p.labels } -// // List all virtual machine labels assigned to this affinity group. // The order of the returned labels isn't guaranteed. -// func (p *AffinityGroupVmLabelsService) List() *AffinityGroupVmLabelsServiceListRequest { return &AffinityGroupVmLabelsServiceListRequest{AffinityGroupVmLabelsService: p} } -// // Access the service that manages the virtual machine label assignment to this affinity group. -// func (op *AffinityGroupVmLabelsService) LabelService(id string) *AffinityGroupVmLabelService { return NewAffinityGroupVmLabelService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AffinityGroupVmLabelsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -2156,9 +2038,7 @@ func (op *AffinityGroupVmLabelsService) String() string { return fmt.Sprintf("AffinityGroupVmLabelsService:%s", op.path) } -// // This service manages a single virtual machine to affinity group assignment. -// type AffinityGroupVmService struct { BaseService } @@ -2170,9 +2050,7 @@ func NewAffinityGroupVmService(connection *Connection, path string) *AffinityGro return &result } -// // Remove this virtual machine from the affinity group. -// type AffinityGroupVmServiceRemoveRequest struct { AffinityGroupVmService *AffinityGroupVmService header map[string]string @@ -2276,22 +2154,16 @@ func (p *AffinityGroupVmServiceRemoveRequest) MustSend() *AffinityGroupVmService } } -// // Remove this virtual machine from the affinity group. -// type AffinityGroupVmServiceRemoveResponse struct { } -// // Remove this virtual machine from the affinity group. -// func (p *AffinityGroupVmService) Remove() *AffinityGroupVmServiceRemoveRequest { return &AffinityGroupVmServiceRemoveRequest{AffinityGroupVmService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AffinityGroupVmService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -2303,9 +2175,7 @@ func (op *AffinityGroupVmService) String() string { return fmt.Sprintf("AffinityGroupVmService:%s", op.path) } -// // This service manages a collection of all the virtual machines assigned to an affinity group. -// type AffinityGroupVmsService struct { BaseService } @@ -2317,7 +2187,6 @@ func NewAffinityGroupVmsService(connection *Connection, path string) *AffinityGr return &result } -// // Adds a virtual machine to the affinity group. // For example, to add the virtual machine `789` to the affinity group `456` of cluster `123`, send a request like // this: @@ -2329,7 +2198,6 @@ func NewAffinityGroupVmsService(connection *Connection, path string) *AffinityGr // ---- // // ---- -// type AffinityGroupVmsServiceAddRequest struct { AffinityGroupVmsService *AffinityGroupVmsService header map[string]string @@ -2441,7 +2309,6 @@ func (p *AffinityGroupVmsServiceAddRequest) MustSend() *AffinityGroupVmsServiceA } } -// // Adds a virtual machine to the affinity group. // For example, to add the virtual machine `789` to the affinity group `456` of cluster `123`, send a request like // this: @@ -2453,7 +2320,6 @@ func (p *AffinityGroupVmsServiceAddRequest) MustSend() *AffinityGroupVmsServiceA // ---- // // ---- -// type AffinityGroupVmsServiceAddResponse struct { vm *Vm } @@ -2472,7 +2338,6 @@ func (p *AffinityGroupVmsServiceAddResponse) MustVm() *Vm { return p.vm } -// // Adds a virtual machine to the affinity group. // For example, to add the virtual machine `789` to the affinity group `456` of cluster `123`, send a request like // this: @@ -2484,15 +2349,12 @@ func (p *AffinityGroupVmsServiceAddResponse) MustVm() *Vm { // ---- // // ---- -// func (p *AffinityGroupVmsService) Add() *AffinityGroupVmsServiceAddRequest { return &AffinityGroupVmsServiceAddRequest{AffinityGroupVmsService: p} } -// // List all virtual machines assigned to this affinity group. // The order of the returned virtual machines isn't guaranteed. -// type AffinityGroupVmsServiceListRequest struct { AffinityGroupVmsService *AffinityGroupVmsService header map[string]string @@ -2611,10 +2473,8 @@ func (p *AffinityGroupVmsServiceListRequest) MustSend() *AffinityGroupVmsService } } -// // List all virtual machines assigned to this affinity group. // The order of the returned virtual machines isn't guaranteed. -// type AffinityGroupVmsServiceListResponse struct { vms *VmSlice } @@ -2633,24 +2493,18 @@ func (p *AffinityGroupVmsServiceListResponse) MustVms() *VmSlice { return p.vms } -// // List all virtual machines assigned to this affinity group. // The order of the returned virtual machines isn't guaranteed. -// func (p *AffinityGroupVmsService) List() *AffinityGroupVmsServiceListRequest { return &AffinityGroupVmsServiceListRequest{AffinityGroupVmsService: p} } -// // Access the service that manages the virtual machine assignment to this affinity group. -// func (op *AffinityGroupVmsService) VmService(id string) *AffinityGroupVmService { return NewAffinityGroupVmService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AffinityGroupVmsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -2666,9 +2520,7 @@ func (op *AffinityGroupVmsService) String() string { return fmt.Sprintf("AffinityGroupVmsService:%s", op.path) } -// // The affinity groups service manages virtual machine relationships and dependencies. -// type AffinityGroupsService struct { BaseService } @@ -2680,7 +2532,6 @@ func NewAffinityGroupsService(connection *Connection, path string) *AffinityGrou return &result } -// // Create a new affinity group. // Post a request like in the example below to create a new affinity group: // [source] @@ -2691,17 +2542,18 @@ func NewAffinityGroupsService(connection *Connection, path string) *AffinityGrou // [source,xml] // ---- // -// AF_GROUP_001 -// -// true -// true -// -// -// false -// +// +// AF_GROUP_001 +// +// true +// true +// +// +// false +// +// // // ---- -// type AffinityGroupsServiceAddRequest struct { AffinityGroupsService *AffinityGroupsService header map[string]string @@ -2813,7 +2665,6 @@ func (p *AffinityGroupsServiceAddRequest) MustSend() *AffinityGroupsServiceAddRe } } -// // Create a new affinity group. // Post a request like in the example below to create a new affinity group: // [source] @@ -2824,17 +2675,18 @@ func (p *AffinityGroupsServiceAddRequest) MustSend() *AffinityGroupsServiceAddRe // [source,xml] // ---- // -// AF_GROUP_001 -// -// true -// true -// -// -// false -// +// +// AF_GROUP_001 +// +// true +// true +// +// +// false +// +// // // ---- -// type AffinityGroupsServiceAddResponse struct { group *AffinityGroup } @@ -2853,7 +2705,6 @@ func (p *AffinityGroupsServiceAddResponse) MustGroup() *AffinityGroup { return p.group } -// // Create a new affinity group. // Post a request like in the example below to create a new affinity group: // [source] @@ -2864,25 +2715,24 @@ func (p *AffinityGroupsServiceAddResponse) MustGroup() *AffinityGroup { // [source,xml] // ---- // -// AF_GROUP_001 -// -// true -// true -// -// -// false -// +// +// AF_GROUP_001 +// +// true +// true +// +// +// false +// +// // // ---- -// func (p *AffinityGroupsService) Add() *AffinityGroupsServiceAddRequest { return &AffinityGroupsServiceAddRequest{AffinityGroupsService: p} } -// // List existing affinity groups. // The order of the affinity groups results isn't guaranteed. -// type AffinityGroupsServiceListRequest struct { AffinityGroupsService *AffinityGroupsService header map[string]string @@ -3001,10 +2851,8 @@ func (p *AffinityGroupsServiceListRequest) MustSend() *AffinityGroupsServiceList } } -// // List existing affinity groups. // The order of the affinity groups results isn't guaranteed. -// type AffinityGroupsServiceListResponse struct { groups *AffinityGroupSlice } @@ -3023,24 +2871,18 @@ func (p *AffinityGroupsServiceListResponse) MustGroups() *AffinityGroupSlice { return p.groups } -// // List existing affinity groups. // The order of the affinity groups results isn't guaranteed. -// func (p *AffinityGroupsService) List() *AffinityGroupsServiceListRequest { return &AffinityGroupsServiceListRequest{AffinityGroupsService: p} } -// // Access the affinity group service that manages the affinity group specified by an ID. -// func (op *AffinityGroupsService) GroupService(id string) *AffinityGroupService { return NewAffinityGroupService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AffinityGroupsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -3056,11 +2898,9 @@ func (op *AffinityGroupsService) String() string { return fmt.Sprintf("AffinityGroupsService:%s", op.path) } -// // This service represents a host that has a specific // label when accessed through the affinitylabels/hosts // subcollection. -// type AffinityLabelHostService struct { BaseService } @@ -3072,9 +2912,7 @@ func NewAffinityLabelHostService(connection *Connection, path string) *AffinityL return &result } -// // Retrieves details about a host that has this label assigned. -// type AffinityLabelHostServiceGetRequest struct { AffinityLabelHostService *AffinityLabelHostService header map[string]string @@ -3183,9 +3021,7 @@ func (p *AffinityLabelHostServiceGetRequest) MustSend() *AffinityLabelHostServic } } -// // Retrieves details about a host that has this label assigned. -// type AffinityLabelHostServiceGetResponse struct { host *Host } @@ -3204,16 +3040,12 @@ func (p *AffinityLabelHostServiceGetResponse) MustHost() *Host { return p.host } -// // Retrieves details about a host that has this label assigned. -// func (p *AffinityLabelHostService) Get() *AffinityLabelHostServiceGetRequest { return &AffinityLabelHostServiceGetRequest{AffinityLabelHostService: p} } -// // Remove a label from a host. -// type AffinityLabelHostServiceRemoveRequest struct { AffinityLabelHostService *AffinityLabelHostService header map[string]string @@ -3307,22 +3139,16 @@ func (p *AffinityLabelHostServiceRemoveRequest) MustSend() *AffinityLabelHostSer } } -// // Remove a label from a host. -// type AffinityLabelHostServiceRemoveResponse struct { } -// // Remove a label from a host. -// func (p *AffinityLabelHostService) Remove() *AffinityLabelHostServiceRemoveRequest { return &AffinityLabelHostServiceRemoveRequest{AffinityLabelHostService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AffinityLabelHostService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -3334,11 +3160,9 @@ func (op *AffinityLabelHostService) String() string { return fmt.Sprintf("AffinityLabelHostService:%s", op.path) } -// // This service represents list of hosts that have a specific // label when accessed through the affinitylabels/hosts // subcollection. -// type AffinityLabelHostsService struct { BaseService } @@ -3350,9 +3174,7 @@ func NewAffinityLabelHostsService(connection *Connection, path string) *Affinity return &result } -// // Add a label to a host. -// type AffinityLabelHostsServiceAddRequest struct { AffinityLabelHostsService *AffinityLabelHostsService header map[string]string @@ -3464,9 +3286,7 @@ func (p *AffinityLabelHostsServiceAddRequest) MustSend() *AffinityLabelHostsServ } } -// // Add a label to a host. -// type AffinityLabelHostsServiceAddResponse struct { host *Host } @@ -3485,17 +3305,13 @@ func (p *AffinityLabelHostsServiceAddResponse) MustHost() *Host { return p.host } -// // Add a label to a host. -// func (p *AffinityLabelHostsService) Add() *AffinityLabelHostsServiceAddRequest { return &AffinityLabelHostsServiceAddRequest{AffinityLabelHostsService: p} } -// // List all hosts with the label. // The order of the returned hosts isn't guaranteed. -// type AffinityLabelHostsServiceListRequest struct { AffinityLabelHostsService *AffinityLabelHostsService header map[string]string @@ -3604,10 +3420,8 @@ func (p *AffinityLabelHostsServiceListRequest) MustSend() *AffinityLabelHostsSer } } -// // List all hosts with the label. // The order of the returned hosts isn't guaranteed. -// type AffinityLabelHostsServiceListResponse struct { hosts *HostSlice } @@ -3626,25 +3440,19 @@ func (p *AffinityLabelHostsServiceListResponse) MustHosts() *HostSlice { return p.hosts } -// // List all hosts with the label. // The order of the returned hosts isn't guaranteed. -// func (p *AffinityLabelHostsService) List() *AffinityLabelHostsServiceListRequest { return &AffinityLabelHostsServiceListRequest{AffinityLabelHostsService: p} } -// // A link to the specific label-host assignment to // allow label removal. -// func (op *AffinityLabelHostsService) HostService(id string) *AffinityLabelHostService { return NewAffinityLabelHostService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AffinityLabelHostsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -3660,9 +3468,7 @@ func (op *AffinityLabelHostsService) String() string { return fmt.Sprintf("AffinityLabelHostsService:%s", op.path) } -// // The details of a single affinity label. -// type AffinityLabelService struct { BaseService } @@ -3674,9 +3480,7 @@ func NewAffinityLabelService(connection *Connection, path string) *AffinityLabel return &result } -// // Retrieves the details of a label. -// type AffinityLabelServiceGetRequest struct { AffinityLabelService *AffinityLabelService header map[string]string @@ -3785,9 +3589,7 @@ func (p *AffinityLabelServiceGetRequest) MustSend() *AffinityLabelServiceGetResp } } -// // Retrieves the details of a label. -// type AffinityLabelServiceGetResponse struct { label *AffinityLabel } @@ -3806,17 +3608,13 @@ func (p *AffinityLabelServiceGetResponse) MustLabel() *AffinityLabel { return p.label } -// // Retrieves the details of a label. -// func (p *AffinityLabelService) Get() *AffinityLabelServiceGetRequest { return &AffinityLabelServiceGetRequest{AffinityLabelService: p} } -// // Removes a label from the system and clears all assignments // of the removed label. -// type AffinityLabelServiceRemoveRequest struct { AffinityLabelService *AffinityLabelService header map[string]string @@ -3910,25 +3708,19 @@ func (p *AffinityLabelServiceRemoveRequest) MustSend() *AffinityLabelServiceRemo } } -// // Removes a label from the system and clears all assignments // of the removed label. -// type AffinityLabelServiceRemoveResponse struct { } -// // Removes a label from the system and clears all assignments // of the removed label. -// func (p *AffinityLabelService) Remove() *AffinityLabelServiceRemoveRequest { return &AffinityLabelServiceRemoveRequest{AffinityLabelService: p} } -// // Updates a label. This call will update all metadata, such as the name // or description. -// type AffinityLabelServiceUpdateRequest struct { AffinityLabelService *AffinityLabelService header map[string]string @@ -4040,10 +3832,8 @@ func (p *AffinityLabelServiceUpdateRequest) MustSend() *AffinityLabelServiceUpda } } -// // Updates a label. This call will update all metadata, such as the name // or description. -// type AffinityLabelServiceUpdateResponse struct { label *AffinityLabel } @@ -4062,31 +3852,23 @@ func (p *AffinityLabelServiceUpdateResponse) MustLabel() *AffinityLabel { return p.label } -// // Updates a label. This call will update all metadata, such as the name // or description. -// func (p *AffinityLabelService) Update() *AffinityLabelServiceUpdateRequest { return &AffinityLabelServiceUpdateRequest{AffinityLabelService: p} } -// // List all hosts with this label. -// func (op *AffinityLabelService) HostsService() *AffinityLabelHostsService { return NewAffinityLabelHostsService(op.connection, fmt.Sprintf("%s/hosts", op.path)) } -// // List all virtual machines with this label. -// func (op *AffinityLabelService) VmsService() *AffinityLabelVmsService { return NewAffinityLabelVmsService(op.connection, fmt.Sprintf("%s/vms", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AffinityLabelService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -4110,11 +3892,9 @@ func (op *AffinityLabelService) String() string { return fmt.Sprintf("AffinityLabelService:%s", op.path) } -// // This service represents a vm that has a specific // label when accessed through the affinitylabels/vms // subcollection. -// type AffinityLabelVmService struct { BaseService } @@ -4126,9 +3906,7 @@ func NewAffinityLabelVmService(connection *Connection, path string) *AffinityLab return &result } -// // Retrieves details about a vm that has this label assigned. -// type AffinityLabelVmServiceGetRequest struct { AffinityLabelVmService *AffinityLabelVmService header map[string]string @@ -4237,9 +4015,7 @@ func (p *AffinityLabelVmServiceGetRequest) MustSend() *AffinityLabelVmServiceGet } } -// // Retrieves details about a vm that has this label assigned. -// type AffinityLabelVmServiceGetResponse struct { vm *Vm } @@ -4258,16 +4034,12 @@ func (p *AffinityLabelVmServiceGetResponse) MustVm() *Vm { return p.vm } -// // Retrieves details about a vm that has this label assigned. -// func (p *AffinityLabelVmService) Get() *AffinityLabelVmServiceGetRequest { return &AffinityLabelVmServiceGetRequest{AffinityLabelVmService: p} } -// // Remove a label from a vm. -// type AffinityLabelVmServiceRemoveRequest struct { AffinityLabelVmService *AffinityLabelVmService header map[string]string @@ -4361,22 +4133,16 @@ func (p *AffinityLabelVmServiceRemoveRequest) MustSend() *AffinityLabelVmService } } -// // Remove a label from a vm. -// type AffinityLabelVmServiceRemoveResponse struct { } -// // Remove a label from a vm. -// func (p *AffinityLabelVmService) Remove() *AffinityLabelVmServiceRemoveRequest { return &AffinityLabelVmServiceRemoveRequest{AffinityLabelVmService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AffinityLabelVmService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -4388,11 +4154,9 @@ func (op *AffinityLabelVmService) String() string { return fmt.Sprintf("AffinityLabelVmService:%s", op.path) } -// // This service represents list of vms that have a specific // label when accessed through the affinitylabels/vms // subcollection. -// type AffinityLabelVmsService struct { BaseService } @@ -4404,9 +4168,7 @@ func NewAffinityLabelVmsService(connection *Connection, path string) *AffinityLa return &result } -// // Add a label to a vm. -// type AffinityLabelVmsServiceAddRequest struct { AffinityLabelVmsService *AffinityLabelVmsService header map[string]string @@ -4518,9 +4280,7 @@ func (p *AffinityLabelVmsServiceAddRequest) MustSend() *AffinityLabelVmsServiceA } } -// // Add a label to a vm. -// type AffinityLabelVmsServiceAddResponse struct { vm *Vm } @@ -4539,17 +4299,13 @@ func (p *AffinityLabelVmsServiceAddResponse) MustVm() *Vm { return p.vm } -// // Add a label to a vm. -// func (p *AffinityLabelVmsService) Add() *AffinityLabelVmsServiceAddRequest { return &AffinityLabelVmsServiceAddRequest{AffinityLabelVmsService: p} } -// // List all virtual machines with the label. // The order of the returned virtual machines isn't guaranteed. -// type AffinityLabelVmsServiceListRequest struct { AffinityLabelVmsService *AffinityLabelVmsService header map[string]string @@ -4658,10 +4414,8 @@ func (p *AffinityLabelVmsServiceListRequest) MustSend() *AffinityLabelVmsService } } -// // List all virtual machines with the label. // The order of the returned virtual machines isn't guaranteed. -// type AffinityLabelVmsServiceListResponse struct { vms *VmSlice } @@ -4680,25 +4434,19 @@ func (p *AffinityLabelVmsServiceListResponse) MustVms() *VmSlice { return p.vms } -// // List all virtual machines with the label. // The order of the returned virtual machines isn't guaranteed. -// func (p *AffinityLabelVmsService) List() *AffinityLabelVmsServiceListRequest { return &AffinityLabelVmsServiceListRequest{AffinityLabelVmsService: p} } -// // A link to the specific label-vm assignment to // allow label removal. -// func (op *AffinityLabelVmsService) VmService(id string) *AffinityLabelVmService { return NewAffinityLabelVmService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AffinityLabelVmsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -4714,9 +4462,7 @@ func (op *AffinityLabelVmsService) String() string { return fmt.Sprintf("AffinityLabelVmsService:%s", op.path) } -// // Manages the affinity labels available in the system. -// type AffinityLabelsService struct { BaseService } @@ -4728,10 +4474,8 @@ func NewAffinityLabelsService(connection *Connection, path string) *AffinityLabe return &result } -// // Creates a new label. The label is automatically attached // to all entities mentioned in the vms or hosts lists. -// type AffinityLabelsServiceAddRequest struct { AffinityLabelsService *AffinityLabelsService header map[string]string @@ -4843,10 +4587,8 @@ func (p *AffinityLabelsServiceAddRequest) MustSend() *AffinityLabelsServiceAddRe } } -// // Creates a new label. The label is automatically attached // to all entities mentioned in the vms or hosts lists. -// type AffinityLabelsServiceAddResponse struct { label *AffinityLabel } @@ -4865,18 +4607,14 @@ func (p *AffinityLabelsServiceAddResponse) MustLabel() *AffinityLabel { return p.label } -// // Creates a new label. The label is automatically attached // to all entities mentioned in the vms or hosts lists. -// func (p *AffinityLabelsService) Add() *AffinityLabelsServiceAddRequest { return &AffinityLabelsServiceAddRequest{AffinityLabelsService: p} } -// // Lists all labels present in the system. // The order of the returned labels isn't guaranteed. -// type AffinityLabelsServiceListRequest struct { AffinityLabelsService *AffinityLabelsService header map[string]string @@ -4995,10 +4733,8 @@ func (p *AffinityLabelsServiceListRequest) MustSend() *AffinityLabelsServiceList } } -// // Lists all labels present in the system. // The order of the returned labels isn't guaranteed. -// type AffinityLabelsServiceListResponse struct { labels *AffinityLabelSlice } @@ -5017,24 +4753,18 @@ func (p *AffinityLabelsServiceListResponse) MustLabels() *AffinityLabelSlice { return p.labels } -// // Lists all labels present in the system. // The order of the returned labels isn't guaranteed. -// func (p *AffinityLabelsService) List() *AffinityLabelsServiceListRequest { return &AffinityLabelsServiceListRequest{AffinityLabelsService: p} } -// // Link to a single label details. -// func (op *AffinityLabelsService) LabelService(id string) *AffinityLabelService { return NewAffinityLabelService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AffinityLabelsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -5050,10 +4780,8 @@ func (op *AffinityLabelsService) String() string { return fmt.Sprintf("AffinityLabelsService:%s", op.path) } -// // This service represents one label to entity assignment // when accessed using the entities/affinitylabels subcollection. -// type AssignedAffinityLabelService struct { BaseService } @@ -5065,9 +4793,7 @@ func NewAssignedAffinityLabelService(connection *Connection, path string) *Assig return &result } -// // Retrieves details about the attached label. -// type AssignedAffinityLabelServiceGetRequest struct { AssignedAffinityLabelService *AssignedAffinityLabelService header map[string]string @@ -5176,9 +4902,7 @@ func (p *AssignedAffinityLabelServiceGetRequest) MustSend() *AssignedAffinityLab } } -// // Retrieves details about the attached label. -// type AssignedAffinityLabelServiceGetResponse struct { label *AffinityLabel } @@ -5197,16 +4921,12 @@ func (p *AssignedAffinityLabelServiceGetResponse) MustLabel() *AffinityLabel { return p.label } -// // Retrieves details about the attached label. -// func (p *AssignedAffinityLabelService) Get() *AssignedAffinityLabelServiceGetRequest { return &AssignedAffinityLabelServiceGetRequest{AssignedAffinityLabelService: p} } -// // Removes the label from an entity. Does not touch the label itself. -// type AssignedAffinityLabelServiceRemoveRequest struct { AssignedAffinityLabelService *AssignedAffinityLabelService header map[string]string @@ -5300,22 +5020,16 @@ func (p *AssignedAffinityLabelServiceRemoveRequest) MustSend() *AssignedAffinity } } -// // Removes the label from an entity. Does not touch the label itself. -// type AssignedAffinityLabelServiceRemoveResponse struct { } -// // Removes the label from an entity. Does not touch the label itself. -// func (p *AssignedAffinityLabelService) Remove() *AssignedAffinityLabelServiceRemoveRequest { return &AssignedAffinityLabelServiceRemoveRequest{AssignedAffinityLabelService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AssignedAffinityLabelService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -5327,10 +5041,8 @@ func (op *AssignedAffinityLabelService) String() string { return fmt.Sprintf("AssignedAffinityLabelService:%s", op.path) } -// // This service is used to list and manipulate affinity labels that are // assigned to supported entities when accessed using entities/affinitylabels. -// type AssignedAffinityLabelsService struct { BaseService } @@ -5342,9 +5054,7 @@ func NewAssignedAffinityLabelsService(connection *Connection, path string) *Assi return &result } -// // Attaches a label to an entity. -// type AssignedAffinityLabelsServiceAddRequest struct { AssignedAffinityLabelsService *AssignedAffinityLabelsService header map[string]string @@ -5456,9 +5166,7 @@ func (p *AssignedAffinityLabelsServiceAddRequest) MustSend() *AssignedAffinityLa } } -// // Attaches a label to an entity. -// type AssignedAffinityLabelsServiceAddResponse struct { label *AffinityLabel } @@ -5477,17 +5185,13 @@ func (p *AssignedAffinityLabelsServiceAddResponse) MustLabel() *AffinityLabel { return p.label } -// // Attaches a label to an entity. -// func (p *AssignedAffinityLabelsService) Add() *AssignedAffinityLabelsServiceAddRequest { return &AssignedAffinityLabelsServiceAddRequest{AssignedAffinityLabelsService: p} } -// // Lists all labels that are attached to an entity. // The order of the returned entities isn't guaranteed. -// type AssignedAffinityLabelsServiceListRequest struct { AssignedAffinityLabelsService *AssignedAffinityLabelsService header map[string]string @@ -5596,10 +5300,8 @@ func (p *AssignedAffinityLabelsServiceListRequest) MustSend() *AssignedAffinityL } } -// // Lists all labels that are attached to an entity. // The order of the returned entities isn't guaranteed. -// type AssignedAffinityLabelsServiceListResponse struct { label *AffinityLabelSlice } @@ -5618,25 +5320,19 @@ func (p *AssignedAffinityLabelsServiceListResponse) MustLabel() *AffinityLabelSl return p.label } -// // Lists all labels that are attached to an entity. // The order of the returned entities isn't guaranteed. -// func (p *AssignedAffinityLabelsService) List() *AssignedAffinityLabelsServiceListRequest { return &AssignedAffinityLabelsServiceListRequest{AssignedAffinityLabelsService: p} } -// // Link to the specific entity-label assignment to allow // removal. -// func (op *AssignedAffinityLabelsService) LabelService(id string) *AssignedAffinityLabelService { return NewAssignedAffinityLabelService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AssignedAffinityLabelsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -5652,8 +5348,6 @@ func (op *AssignedAffinityLabelsService) String() string { return fmt.Sprintf("AssignedAffinityLabelsService:%s", op.path) } -// -// type AssignedCpuProfileService struct { BaseService } @@ -5665,8 +5359,6 @@ func NewAssignedCpuProfileService(connection *Connection, path string) *Assigned return &result } -// -// type AssignedCpuProfileServiceGetRequest struct { AssignedCpuProfileService *AssignedCpuProfileService header map[string]string @@ -5775,8 +5467,6 @@ func (p *AssignedCpuProfileServiceGetRequest) MustSend() *AssignedCpuProfileServ } } -// -// type AssignedCpuProfileServiceGetResponse struct { profile *CpuProfile } @@ -5795,14 +5485,10 @@ func (p *AssignedCpuProfileServiceGetResponse) MustProfile() *CpuProfile { return p.profile } -// -// func (p *AssignedCpuProfileService) Get() *AssignedCpuProfileServiceGetRequest { return &AssignedCpuProfileServiceGetRequest{AssignedCpuProfileService: p} } -// -// type AssignedCpuProfileServiceRemoveRequest struct { AssignedCpuProfileService *AssignedCpuProfileService header map[string]string @@ -5906,20 +5592,14 @@ func (p *AssignedCpuProfileServiceRemoveRequest) MustSend() *AssignedCpuProfileS } } -// -// type AssignedCpuProfileServiceRemoveResponse struct { } -// -// func (p *AssignedCpuProfileService) Remove() *AssignedCpuProfileServiceRemoveRequest { return &AssignedCpuProfileServiceRemoveRequest{AssignedCpuProfileService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AssignedCpuProfileService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -5931,8 +5611,6 @@ func (op *AssignedCpuProfileService) String() string { return fmt.Sprintf("AssignedCpuProfileService:%s", op.path) } -// -// type AssignedCpuProfilesService struct { BaseService } @@ -5944,9 +5622,7 @@ func NewAssignedCpuProfilesService(connection *Connection, path string) *Assigne return &result } -// // Add a new cpu profile for the cluster. -// type AssignedCpuProfilesServiceAddRequest struct { AssignedCpuProfilesService *AssignedCpuProfilesService header map[string]string @@ -6058,9 +5734,7 @@ func (p *AssignedCpuProfilesServiceAddRequest) MustSend() *AssignedCpuProfilesSe } } -// // Add a new cpu profile for the cluster. -// type AssignedCpuProfilesServiceAddResponse struct { profile *CpuProfile } @@ -6079,17 +5753,13 @@ func (p *AssignedCpuProfilesServiceAddResponse) MustProfile() *CpuProfile { return p.profile } -// // Add a new cpu profile for the cluster. -// func (p *AssignedCpuProfilesService) Add() *AssignedCpuProfilesServiceAddRequest { return &AssignedCpuProfilesServiceAddRequest{AssignedCpuProfilesService: p} } -// // List the CPU profiles assigned to the cluster. // The order of the returned CPU profiles isn't guaranteed. -// type AssignedCpuProfilesServiceListRequest struct { AssignedCpuProfilesService *AssignedCpuProfilesService header map[string]string @@ -6208,10 +5878,8 @@ func (p *AssignedCpuProfilesServiceListRequest) MustSend() *AssignedCpuProfilesS } } -// // List the CPU profiles assigned to the cluster. // The order of the returned CPU profiles isn't guaranteed. -// type AssignedCpuProfilesServiceListResponse struct { profiles *CpuProfileSlice } @@ -6230,23 +5898,17 @@ func (p *AssignedCpuProfilesServiceListResponse) MustProfiles() *CpuProfileSlice return p.profiles } -// // List the CPU profiles assigned to the cluster. // The order of the returned CPU profiles isn't guaranteed. -// func (p *AssignedCpuProfilesService) List() *AssignedCpuProfilesServiceListRequest { return &AssignedCpuProfilesServiceListRequest{AssignedCpuProfilesService: p} } -// -// func (op *AssignedCpuProfilesService) ProfileService(id string) *AssignedCpuProfileService { return NewAssignedCpuProfileService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AssignedCpuProfilesService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -6262,8 +5924,6 @@ func (op *AssignedCpuProfilesService) String() string { return fmt.Sprintf("AssignedCpuProfilesService:%s", op.path) } -// -// type AssignedDiskProfileService struct { BaseService } @@ -6275,8 +5935,6 @@ func NewAssignedDiskProfileService(connection *Connection, path string) *Assigne return &result } -// -// type AssignedDiskProfileServiceGetRequest struct { AssignedDiskProfileService *AssignedDiskProfileService header map[string]string @@ -6385,8 +6043,6 @@ func (p *AssignedDiskProfileServiceGetRequest) MustSend() *AssignedDiskProfileSe } } -// -// type AssignedDiskProfileServiceGetResponse struct { diskProfile *DiskProfile } @@ -6405,14 +6061,10 @@ func (p *AssignedDiskProfileServiceGetResponse) MustDiskProfile() *DiskProfile { return p.diskProfile } -// -// func (p *AssignedDiskProfileService) Get() *AssignedDiskProfileServiceGetRequest { return &AssignedDiskProfileServiceGetRequest{AssignedDiskProfileService: p} } -// -// type AssignedDiskProfileServiceRemoveRequest struct { AssignedDiskProfileService *AssignedDiskProfileService header map[string]string @@ -6516,20 +6168,14 @@ func (p *AssignedDiskProfileServiceRemoveRequest) MustSend() *AssignedDiskProfil } } -// -// type AssignedDiskProfileServiceRemoveResponse struct { } -// -// func (p *AssignedDiskProfileService) Remove() *AssignedDiskProfileServiceRemoveRequest { return &AssignedDiskProfileServiceRemoveRequest{AssignedDiskProfileService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AssignedDiskProfileService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -6541,8 +6187,6 @@ func (op *AssignedDiskProfileService) String() string { return fmt.Sprintf("AssignedDiskProfileService:%s", op.path) } -// -// type AssignedDiskProfilesService struct { BaseService } @@ -6554,9 +6198,7 @@ func NewAssignedDiskProfilesService(connection *Connection, path string) *Assign return &result } -// // Add a new disk profile for the storage domain. -// type AssignedDiskProfilesServiceAddRequest struct { AssignedDiskProfilesService *AssignedDiskProfilesService header map[string]string @@ -6668,9 +6310,7 @@ func (p *AssignedDiskProfilesServiceAddRequest) MustSend() *AssignedDiskProfiles } } -// // Add a new disk profile for the storage domain. -// type AssignedDiskProfilesServiceAddResponse struct { profile *DiskProfile } @@ -6689,17 +6329,13 @@ func (p *AssignedDiskProfilesServiceAddResponse) MustProfile() *DiskProfile { return p.profile } -// // Add a new disk profile for the storage domain. -// func (p *AssignedDiskProfilesService) Add() *AssignedDiskProfilesServiceAddRequest { return &AssignedDiskProfilesServiceAddRequest{AssignedDiskProfilesService: p} } -// // Returns the list of disk profiles assigned to the storage domain. // The order of the returned disk profiles isn't guaranteed. -// type AssignedDiskProfilesServiceListRequest struct { AssignedDiskProfilesService *AssignedDiskProfilesService header map[string]string @@ -6818,10 +6454,8 @@ func (p *AssignedDiskProfilesServiceListRequest) MustSend() *AssignedDiskProfile } } -// // Returns the list of disk profiles assigned to the storage domain. // The order of the returned disk profiles isn't guaranteed. -// type AssignedDiskProfilesServiceListResponse struct { profiles *DiskProfileSlice } @@ -6840,23 +6474,17 @@ func (p *AssignedDiskProfilesServiceListResponse) MustProfiles() *DiskProfileSli return p.profiles } -// // Returns the list of disk profiles assigned to the storage domain. // The order of the returned disk profiles isn't guaranteed. -// func (p *AssignedDiskProfilesService) List() *AssignedDiskProfilesServiceListRequest { return &AssignedDiskProfilesServiceListRequest{AssignedDiskProfilesService: p} } -// -// func (op *AssignedDiskProfilesService) ProfileService(id string) *AssignedDiskProfileService { return NewAssignedDiskProfileService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AssignedDiskProfilesService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -6872,9 +6500,7 @@ func (op *AssignedDiskProfilesService) String() string { return fmt.Sprintf("AssignedDiskProfilesService:%s", op.path) } -// // Represents a permission sub-collection, scoped by user, group or some entity type. -// type AssignedPermissionsService struct { BaseService } @@ -6886,7 +6512,6 @@ func NewAssignedPermissionsService(connection *Connection, path string) *Assigne return &result } -// // Assign a new permission to a user or group for specific entity. // For example, to assign the `UserVmManager` role to the virtual machine with id `123` to the user with id `456` // send a request like this: @@ -6897,10 +6522,12 @@ func NewAssignedPermissionsService(connection *Connection, path string) *Assigne // [source,xml] // ---- // -// -// UserVmManager -// -// +// +// +// UserVmManager +// +// +// // // ---- // To assign the `SuperUser` role to the system to the user with id `456` send a request like this: @@ -6911,10 +6538,12 @@ func NewAssignedPermissionsService(connection *Connection, path string) *Assigne // [source,xml] // ---- // -// -// SuperUser -// -// +// +// +// SuperUser +// +// +// // // ---- // If you want to assign permission to the group instead of the user please replace the `user` element with the @@ -6927,13 +6556,14 @@ func NewAssignedPermissionsService(connection *Connection, path string) *Assigne // [source,xml] // ---- // -// -// UserRole -// -// +// +// +// UserRole +// +// +// // // ---- -// type AssignedPermissionsServiceAddRequest struct { AssignedPermissionsService *AssignedPermissionsService header map[string]string @@ -7045,7 +6675,6 @@ func (p *AssignedPermissionsServiceAddRequest) MustSend() *AssignedPermissionsSe } } -// // Assign a new permission to a user or group for specific entity. // For example, to assign the `UserVmManager` role to the virtual machine with id `123` to the user with id `456` // send a request like this: @@ -7056,10 +6685,12 @@ func (p *AssignedPermissionsServiceAddRequest) MustSend() *AssignedPermissionsSe // [source,xml] // ---- // -// -// UserVmManager -// -// +// +// +// UserVmManager +// +// +// // // ---- // To assign the `SuperUser` role to the system to the user with id `456` send a request like this: @@ -7070,10 +6701,12 @@ func (p *AssignedPermissionsServiceAddRequest) MustSend() *AssignedPermissionsSe // [source,xml] // ---- // -// -// SuperUser -// -// +// +// +// SuperUser +// +// +// // // ---- // If you want to assign permission to the group instead of the user please replace the `user` element with the @@ -7086,13 +6719,14 @@ func (p *AssignedPermissionsServiceAddRequest) MustSend() *AssignedPermissionsSe // [source,xml] // ---- // -// -// UserRole -// -// +// +// +// UserRole +// +// +// // // ---- -// type AssignedPermissionsServiceAddResponse struct { permission *Permission } @@ -7111,7 +6745,6 @@ func (p *AssignedPermissionsServiceAddResponse) MustPermission() *Permission { return p.permission } -// // Assign a new permission to a user or group for specific entity. // For example, to assign the `UserVmManager` role to the virtual machine with id `123` to the user with id `456` // send a request like this: @@ -7122,10 +6755,12 @@ func (p *AssignedPermissionsServiceAddResponse) MustPermission() *Permission { // [source,xml] // ---- // -// -// UserVmManager -// -// +// +// +// UserVmManager +// +// +// // // ---- // To assign the `SuperUser` role to the system to the user with id `456` send a request like this: @@ -7136,10 +6771,12 @@ func (p *AssignedPermissionsServiceAddResponse) MustPermission() *Permission { // [source,xml] // ---- // -// -// SuperUser -// -// +// +// +// SuperUser +// +// +// // // ---- // If you want to assign permission to the group instead of the user please replace the `user` element with the @@ -7152,20 +6789,19 @@ func (p *AssignedPermissionsServiceAddResponse) MustPermission() *Permission { // [source,xml] // ---- // -// -// UserRole -// -// +// +// +// UserRole +// +// +// // // ---- -// func (p *AssignedPermissionsService) Add() *AssignedPermissionsServiceAddRequest { return &AssignedPermissionsServiceAddRequest{AssignedPermissionsService: p} } -// // Add a new permission on the cluster to the group in the system. -// type AssignedPermissionsServiceAddClusterPermissionRequest struct { AssignedPermissionsService *AssignedPermissionsService header map[string]string @@ -7277,9 +6913,7 @@ func (p *AssignedPermissionsServiceAddClusterPermissionRequest) MustSend() *Assi } } -// // Add a new permission on the cluster to the group in the system. -// type AssignedPermissionsServiceAddClusterPermissionResponse struct { permission *Permission } @@ -7298,16 +6932,12 @@ func (p *AssignedPermissionsServiceAddClusterPermissionResponse) MustPermission( return p.permission } -// // Add a new permission on the cluster to the group in the system. -// func (p *AssignedPermissionsService) AddClusterPermission() *AssignedPermissionsServiceAddClusterPermissionRequest { return &AssignedPermissionsServiceAddClusterPermissionRequest{AssignedPermissionsService: p} } -// // Add a new permission on the data center to the group in the system. -// type AssignedPermissionsServiceAddDataCenterPermissionRequest struct { AssignedPermissionsService *AssignedPermissionsService header map[string]string @@ -7419,9 +7049,7 @@ func (p *AssignedPermissionsServiceAddDataCenterPermissionRequest) MustSend() *A } } -// // Add a new permission on the data center to the group in the system. -// type AssignedPermissionsServiceAddDataCenterPermissionResponse struct { permission *Permission } @@ -7440,16 +7068,12 @@ func (p *AssignedPermissionsServiceAddDataCenterPermissionResponse) MustPermissi return p.permission } -// // Add a new permission on the data center to the group in the system. -// func (p *AssignedPermissionsService) AddDataCenterPermission() *AssignedPermissionsServiceAddDataCenterPermissionRequest { return &AssignedPermissionsServiceAddDataCenterPermissionRequest{AssignedPermissionsService: p} } -// // Add a new group level permission for a given virtual machine. -// type AssignedPermissionsServiceAddGroupLevelRequest struct { AssignedPermissionsService *AssignedPermissionsService header map[string]string @@ -7561,9 +7185,7 @@ func (p *AssignedPermissionsServiceAddGroupLevelRequest) MustSend() *AssignedPer } } -// // Add a new group level permission for a given virtual machine. -// type AssignedPermissionsServiceAddGroupLevelResponse struct { permission *Permission } @@ -7582,16 +7204,12 @@ func (p *AssignedPermissionsServiceAddGroupLevelResponse) MustPermission() *Perm return p.permission } -// // Add a new group level permission for a given virtual machine. -// func (p *AssignedPermissionsService) AddGroupLevel() *AssignedPermissionsServiceAddGroupLevelRequest { return &AssignedPermissionsServiceAddGroupLevelRequest{AssignedPermissionsService: p} } -// // Add a new permission on the host to the group in the system. -// type AssignedPermissionsServiceAddHostPermissionRequest struct { AssignedPermissionsService *AssignedPermissionsService header map[string]string @@ -7703,9 +7321,7 @@ func (p *AssignedPermissionsServiceAddHostPermissionRequest) MustSend() *Assigne } } -// // Add a new permission on the host to the group in the system. -// type AssignedPermissionsServiceAddHostPermissionResponse struct { permission *Permission } @@ -7724,14 +7340,11 @@ func (p *AssignedPermissionsServiceAddHostPermissionResponse) MustPermission() * return p.permission } -// // Add a new permission on the host to the group in the system. -// func (p *AssignedPermissionsService) AddHostPermission() *AssignedPermissionsServiceAddHostPermissionRequest { return &AssignedPermissionsServiceAddHostPermissionRequest{AssignedPermissionsService: p} } -// // List all the permissions of the specific entity. // For example to list all the permissions of the cluster with id `123` send a request like this: // .... @@ -7740,20 +7353,21 @@ func (p *AssignedPermissionsService) AddHostPermission() *AssignedPermissionsSer // [source,xml] // ---- // -// -// -// -// -// -// -// -// -// -// +// +// +// +// +// +// +// +// +// +// +// +// // // ---- // The order of the returned permissions isn't guaranteed. -// type AssignedPermissionsServiceListRequest struct { AssignedPermissionsService *AssignedPermissionsService header map[string]string @@ -7862,7 +7476,6 @@ func (p *AssignedPermissionsServiceListRequest) MustSend() *AssignedPermissionsS } } -// // List all the permissions of the specific entity. // For example to list all the permissions of the cluster with id `123` send a request like this: // .... @@ -7871,20 +7484,21 @@ func (p *AssignedPermissionsServiceListRequest) MustSend() *AssignedPermissionsS // [source,xml] // ---- // -// -// -// -// -// -// -// -// -// -// +// +// +// +// +// +// +// +// +// +// +// +// // // ---- // The order of the returned permissions isn't guaranteed. -// type AssignedPermissionsServiceListResponse struct { permissions *PermissionSlice } @@ -7903,7 +7517,6 @@ func (p *AssignedPermissionsServiceListResponse) MustPermissions() *PermissionSl return p.permissions } -// // List all the permissions of the specific entity. // For example to list all the permissions of the cluster with id `123` send a request like this: // .... @@ -7912,27 +7525,26 @@ func (p *AssignedPermissionsServiceListResponse) MustPermissions() *PermissionSl // [source,xml] // ---- // -// -// -// -// -// -// -// -// -// -// +// +// +// +// +// +// +// +// +// +// +// +// // // ---- // The order of the returned permissions isn't guaranteed. -// func (p *AssignedPermissionsService) List() *AssignedPermissionsServiceListRequest { return &AssignedPermissionsServiceListRequest{AssignedPermissionsService: p} } -// // Add a new permission on the storage domain to the group in the system. -// type AssignedPermissionsServiceAddStorageDomainPermissionRequest struct { AssignedPermissionsService *AssignedPermissionsService header map[string]string @@ -8044,9 +7656,7 @@ func (p *AssignedPermissionsServiceAddStorageDomainPermissionRequest) MustSend() } } -// // Add a new permission on the storage domain to the group in the system. -// type AssignedPermissionsServiceAddStorageDomainPermissionResponse struct { permission *Permission } @@ -8065,16 +7675,12 @@ func (p *AssignedPermissionsServiceAddStorageDomainPermissionResponse) MustPermi return p.permission } -// // Add a new permission on the storage domain to the group in the system. -// func (p *AssignedPermissionsService) AddStorageDomainPermission() *AssignedPermissionsServiceAddStorageDomainPermissionRequest { return &AssignedPermissionsServiceAddStorageDomainPermissionRequest{AssignedPermissionsService: p} } -// // Add a new permission on the template to the group in the system. -// type AssignedPermissionsServiceAddTemplatePermissionRequest struct { AssignedPermissionsService *AssignedPermissionsService header map[string]string @@ -8186,9 +7792,7 @@ func (p *AssignedPermissionsServiceAddTemplatePermissionRequest) MustSend() *Ass } } -// // Add a new permission on the template to the group in the system. -// type AssignedPermissionsServiceAddTemplatePermissionResponse struct { permission *Permission } @@ -8207,16 +7811,12 @@ func (p *AssignedPermissionsServiceAddTemplatePermissionResponse) MustPermission return p.permission } -// // Add a new permission on the template to the group in the system. -// func (p *AssignedPermissionsService) AddTemplatePermission() *AssignedPermissionsServiceAddTemplatePermissionRequest { return &AssignedPermissionsServiceAddTemplatePermissionRequest{AssignedPermissionsService: p} } -// // Add a new user level permission for a given virtual machine. -// type AssignedPermissionsServiceAddUserLevelRequest struct { AssignedPermissionsService *AssignedPermissionsService header map[string]string @@ -8328,9 +7928,7 @@ func (p *AssignedPermissionsServiceAddUserLevelRequest) MustSend() *AssignedPerm } } -// // Add a new user level permission for a given virtual machine. -// type AssignedPermissionsServiceAddUserLevelResponse struct { permission *Permission } @@ -8349,16 +7947,12 @@ func (p *AssignedPermissionsServiceAddUserLevelResponse) MustPermission() *Permi return p.permission } -// // Add a new user level permission for a given virtual machine. -// func (p *AssignedPermissionsService) AddUserLevel() *AssignedPermissionsServiceAddUserLevelRequest { return &AssignedPermissionsServiceAddUserLevelRequest{AssignedPermissionsService: p} } -// // Add a new permission on the vm to the group in the system. -// type AssignedPermissionsServiceAddVmPermissionRequest struct { AssignedPermissionsService *AssignedPermissionsService header map[string]string @@ -8470,9 +8064,7 @@ func (p *AssignedPermissionsServiceAddVmPermissionRequest) MustSend() *AssignedP } } -// // Add a new permission on the vm to the group in the system. -// type AssignedPermissionsServiceAddVmPermissionResponse struct { permission *Permission } @@ -8491,16 +8083,12 @@ func (p *AssignedPermissionsServiceAddVmPermissionResponse) MustPermission() *Pe return p.permission } -// // Add a new permission on the vm to the group in the system. -// func (p *AssignedPermissionsService) AddVmPermission() *AssignedPermissionsServiceAddVmPermissionRequest { return &AssignedPermissionsServiceAddVmPermissionRequest{AssignedPermissionsService: p} } -// // Add a new permission on the vm pool to the group in the system. -// type AssignedPermissionsServiceAddVmPoolPermissionRequest struct { AssignedPermissionsService *AssignedPermissionsService header map[string]string @@ -8612,9 +8200,7 @@ func (p *AssignedPermissionsServiceAddVmPoolPermissionRequest) MustSend() *Assig } } -// // Add a new permission on the vm pool to the group in the system. -// type AssignedPermissionsServiceAddVmPoolPermissionResponse struct { permission *Permission } @@ -8633,24 +8219,18 @@ func (p *AssignedPermissionsServiceAddVmPoolPermissionResponse) MustPermission() return p.permission } -// // Add a new permission on the vm pool to the group in the system. -// func (p *AssignedPermissionsService) AddVmPoolPermission() *AssignedPermissionsServiceAddVmPoolPermissionRequest { return &AssignedPermissionsServiceAddVmPoolPermissionRequest{AssignedPermissionsService: p} } -// // Sub-resource locator method, returns individual permission resource on which the remainder of the URI is // dispatched. -// func (op *AssignedPermissionsService) PermissionService(id string) *PermissionService { return NewPermissionService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AssignedPermissionsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -8666,9 +8246,7 @@ func (op *AssignedPermissionsService) String() string { return fmt.Sprintf("AssignedPermissionsService:%s", op.path) } -// // Represents a roles sub-collection, for example scoped by user. -// type AssignedRolesService struct { BaseService } @@ -8680,10 +8258,8 @@ func NewAssignedRolesService(connection *Connection, path string) *AssignedRoles return &result } -// // Returns the roles assigned to the permission. // The order of the returned roles isn't guaranteed. -// type AssignedRolesServiceListRequest struct { AssignedRolesService *AssignedRolesService header map[string]string @@ -8802,10 +8378,8 @@ func (p *AssignedRolesServiceListRequest) MustSend() *AssignedRolesServiceListRe } } -// // Returns the roles assigned to the permission. // The order of the returned roles isn't guaranteed. -// type AssignedRolesServiceListResponse struct { roles *RoleSlice } @@ -8824,24 +8398,18 @@ func (p *AssignedRolesServiceListResponse) MustRoles() *RoleSlice { return p.roles } -// // Returns the roles assigned to the permission. // The order of the returned roles isn't guaranteed. -// func (p *AssignedRolesService) List() *AssignedRolesServiceListRequest { return &AssignedRolesServiceListRequest{AssignedRolesService: p} } -// // Sub-resource locator method, returns individual role resource on which the remainder of the URI is dispatched. -// func (op *AssignedRolesService) RoleService(id string) *RoleService { return NewRoleService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AssignedRolesService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -8857,9 +8425,7 @@ func (op *AssignedRolesService) String() string { return fmt.Sprintf("AssignedRolesService:%s", op.path) } -// // A service to manage assignment of specific tag to specific entities in system. -// type AssignedTagService struct { BaseService } @@ -8871,7 +8437,6 @@ func NewAssignedTagService(connection *Connection, path string) *AssignedTagServ return &result } -// // Gets the information about the assigned tag. // For example to retrieve the information about the tag with the id `456` which is assigned to virtual machine // with id `123` send a request like this: @@ -8881,12 +8446,13 @@ func NewAssignedTagService(connection *Connection, path string) *AssignedTagServ // [source,xml] // ---- // -// root -// root -// +// +// root +// root +// +// // // ---- -// type AssignedTagServiceGetRequest struct { AssignedTagService *AssignedTagService header map[string]string @@ -8995,7 +8561,6 @@ func (p *AssignedTagServiceGetRequest) MustSend() *AssignedTagServiceGetResponse } } -// // Gets the information about the assigned tag. // For example to retrieve the information about the tag with the id `456` which is assigned to virtual machine // with id `123` send a request like this: @@ -9005,12 +8570,13 @@ func (p *AssignedTagServiceGetRequest) MustSend() *AssignedTagServiceGetResponse // [source,xml] // ---- // -// root -// root -// +// +// root +// root +// +// // // ---- -// type AssignedTagServiceGetResponse struct { tag *Tag } @@ -9029,7 +8595,6 @@ func (p *AssignedTagServiceGetResponse) MustTag() *Tag { return p.tag } -// // Gets the information about the assigned tag. // For example to retrieve the information about the tag with the id `456` which is assigned to virtual machine // with id `123` send a request like this: @@ -9039,23 +8604,22 @@ func (p *AssignedTagServiceGetResponse) MustTag() *Tag { // [source,xml] // ---- // -// root -// root -// +// +// root +// root +// +// // // ---- -// func (p *AssignedTagService) Get() *AssignedTagServiceGetRequest { return &AssignedTagServiceGetRequest{AssignedTagService: p} } -// // Unassign tag from specific entity in the system. // For example to unassign the tag with id `456` from virtual machine with id `123` send a request like this: // .... // DELETE /ovirt-engine/api/vms/123/tags/456 // .... -// type AssignedTagServiceRemoveRequest struct { AssignedTagService *AssignedTagService header map[string]string @@ -9159,30 +8723,24 @@ func (p *AssignedTagServiceRemoveRequest) MustSend() *AssignedTagServiceRemoveRe } } -// // Unassign tag from specific entity in the system. // For example to unassign the tag with id `456` from virtual machine with id `123` send a request like this: // .... // DELETE /ovirt-engine/api/vms/123/tags/456 // .... -// type AssignedTagServiceRemoveResponse struct { } -// // Unassign tag from specific entity in the system. // For example to unassign the tag with id `456` from virtual machine with id `123` send a request like this: // .... // DELETE /ovirt-engine/api/vms/123/tags/456 // .... -// func (p *AssignedTagService) Remove() *AssignedTagServiceRemoveRequest { return &AssignedTagServiceRemoveRequest{AssignedTagService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AssignedTagService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -9194,9 +8752,7 @@ func (op *AssignedTagService) String() string { return fmt.Sprintf("AssignedTagService:%s", op.path) } -// // A service to manage collection of assignment of tags to specific entities in system. -// type AssignedTagsService struct { BaseService } @@ -9208,7 +8764,6 @@ func NewAssignedTagsService(connection *Connection, path string) *AssignedTagsSe return &result } -// // Assign tag to specific entity in the system. // For example to assign tag `mytag` to virtual machine with the id `123` send a request like this: // .... @@ -9218,10 +8773,11 @@ func NewAssignedTagsService(connection *Connection, path string) *AssignedTagsSe // [source,xml] // ---- // -// mytag +// +// mytag +// // // ---- -// type AssignedTagsServiceAddRequest struct { AssignedTagsService *AssignedTagsService header map[string]string @@ -9333,7 +8889,6 @@ func (p *AssignedTagsServiceAddRequest) MustSend() *AssignedTagsServiceAddRespon } } -// // Assign tag to specific entity in the system. // For example to assign tag `mytag` to virtual machine with the id `123` send a request like this: // .... @@ -9343,10 +8898,11 @@ func (p *AssignedTagsServiceAddRequest) MustSend() *AssignedTagsServiceAddRespon // [source,xml] // ---- // -// mytag +// +// mytag +// // // ---- -// type AssignedTagsServiceAddResponse struct { tag *Tag } @@ -9365,7 +8921,6 @@ func (p *AssignedTagsServiceAddResponse) MustTag() *Tag { return p.tag } -// // Assign tag to specific entity in the system. // For example to assign tag `mytag` to virtual machine with the id `123` send a request like this: // .... @@ -9375,15 +8930,15 @@ func (p *AssignedTagsServiceAddResponse) MustTag() *Tag { // [source,xml] // ---- // -// mytag +// +// mytag +// // // ---- -// func (p *AssignedTagsService) Add() *AssignedTagsServiceAddRequest { return &AssignedTagsServiceAddRequest{AssignedTagsService: p} } -// // List all tags assigned to the specific entity. // For example to list all the tags of the virtual machine with id `123` send a request like this: // .... @@ -9392,15 +8947,16 @@ func (p *AssignedTagsService) Add() *AssignedTagsServiceAddRequest { // [source,xml] // ---- // -// -// mytag -// mytag -// -// +// +// +// mytag +// mytag +// +// +// // // ---- // The order of the returned tags isn't guaranteed. -// type AssignedTagsServiceListRequest struct { AssignedTagsService *AssignedTagsService header map[string]string @@ -9519,7 +9075,6 @@ func (p *AssignedTagsServiceListRequest) MustSend() *AssignedTagsServiceListResp } } -// // List all tags assigned to the specific entity. // For example to list all the tags of the virtual machine with id `123` send a request like this: // .... @@ -9528,15 +9083,16 @@ func (p *AssignedTagsServiceListRequest) MustSend() *AssignedTagsServiceListResp // [source,xml] // ---- // -// -// mytag -// mytag -// -// +// +// +// mytag +// mytag +// +// +// // // ---- // The order of the returned tags isn't guaranteed. -// type AssignedTagsServiceListResponse struct { tags *TagSlice } @@ -9555,7 +9111,6 @@ func (p *AssignedTagsServiceListResponse) MustTags() *TagSlice { return p.tags } -// // List all tags assigned to the specific entity. // For example to list all the tags of the virtual machine with id `123` send a request like this: // .... @@ -9564,29 +9119,26 @@ func (p *AssignedTagsServiceListResponse) MustTags() *TagSlice { // [source,xml] // ---- // -// -// mytag -// mytag -// -// +// +// +// mytag +// mytag +// +// +// // // ---- // The order of the returned tags isn't guaranteed. -// func (p *AssignedTagsService) List() *AssignedTagsServiceListRequest { return &AssignedTagsServiceListRequest{AssignedTagsService: p} } -// // Reference to the service that manages assignment of specific tag. -// func (op *AssignedTagsService) TagService(id string) *AssignedTagService { return NewAssignedTagService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AssignedTagsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -9602,8 +9154,6 @@ func (op *AssignedTagsService) String() string { return fmt.Sprintf("AssignedTagsService:%s", op.path) } -// -// type AssignedVnicProfileService struct { BaseService } @@ -9615,8 +9165,6 @@ func NewAssignedVnicProfileService(connection *Connection, path string) *Assigne return &result } -// -// type AssignedVnicProfileServiceGetRequest struct { AssignedVnicProfileService *AssignedVnicProfileService header map[string]string @@ -9725,8 +9273,6 @@ func (p *AssignedVnicProfileServiceGetRequest) MustSend() *AssignedVnicProfileSe } } -// -// type AssignedVnicProfileServiceGetResponse struct { profile *VnicProfile } @@ -9745,14 +9291,10 @@ func (p *AssignedVnicProfileServiceGetResponse) MustProfile() *VnicProfile { return p.profile } -// -// func (p *AssignedVnicProfileService) Get() *AssignedVnicProfileServiceGetRequest { return &AssignedVnicProfileServiceGetRequest{AssignedVnicProfileService: p} } -// -// type AssignedVnicProfileServiceRemoveRequest struct { AssignedVnicProfileService *AssignedVnicProfileService header map[string]string @@ -9856,26 +9398,18 @@ func (p *AssignedVnicProfileServiceRemoveRequest) MustSend() *AssignedVnicProfil } } -// -// type AssignedVnicProfileServiceRemoveResponse struct { } -// -// func (p *AssignedVnicProfileService) Remove() *AssignedVnicProfileServiceRemoveRequest { return &AssignedVnicProfileServiceRemoveRequest{AssignedVnicProfileService: p} } -// -// func (op *AssignedVnicProfileService) PermissionsService() *AssignedPermissionsService { return NewAssignedPermissionsService(op.connection, fmt.Sprintf("%s/permissions", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AssignedVnicProfileService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -9893,8 +9427,6 @@ func (op *AssignedVnicProfileService) String() string { return fmt.Sprintf("AssignedVnicProfileService:%s", op.path) } -// -// type AssignedVnicProfilesService struct { BaseService } @@ -9906,9 +9438,7 @@ func NewAssignedVnicProfilesService(connection *Connection, path string) *Assign return &result } -// // Add a new virtual network interface card profile for the network. -// type AssignedVnicProfilesServiceAddRequest struct { AssignedVnicProfilesService *AssignedVnicProfilesService header map[string]string @@ -10020,9 +9550,7 @@ func (p *AssignedVnicProfilesServiceAddRequest) MustSend() *AssignedVnicProfiles } } -// // Add a new virtual network interface card profile for the network. -// type AssignedVnicProfilesServiceAddResponse struct { profile *VnicProfile } @@ -10041,17 +9569,13 @@ func (p *AssignedVnicProfilesServiceAddResponse) MustProfile() *VnicProfile { return p.profile } -// // Add a new virtual network interface card profile for the network. -// func (p *AssignedVnicProfilesService) Add() *AssignedVnicProfilesServiceAddRequest { return &AssignedVnicProfilesServiceAddRequest{AssignedVnicProfilesService: p} } -// // Returns the list of VNIC profiles assifned to the network. // The order of the returned VNIC profiles isn't guaranteed. -// type AssignedVnicProfilesServiceListRequest struct { AssignedVnicProfilesService *AssignedVnicProfilesService header map[string]string @@ -10170,10 +9694,8 @@ func (p *AssignedVnicProfilesServiceListRequest) MustSend() *AssignedVnicProfile } } -// // Returns the list of VNIC profiles assifned to the network. // The order of the returned VNIC profiles isn't guaranteed. -// type AssignedVnicProfilesServiceListResponse struct { profiles *VnicProfileSlice } @@ -10192,23 +9714,17 @@ func (p *AssignedVnicProfilesServiceListResponse) MustProfiles() *VnicProfileSli return p.profiles } -// // Returns the list of VNIC profiles assifned to the network. // The order of the returned VNIC profiles isn't guaranteed. -// func (p *AssignedVnicProfilesService) List() *AssignedVnicProfilesServiceListRequest { return &AssignedVnicProfilesServiceListRequest{AssignedVnicProfilesService: p} } -// -// func (op *AssignedVnicProfilesService) ProfileService(id string) *AssignedVnicProfileService { return NewAssignedVnicProfileService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AssignedVnicProfilesService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -10224,13 +9740,11 @@ func (op *AssignedVnicProfilesService) String() string { return fmt.Sprintf("AssignedVnicProfilesService:%s", op.path) } -// // Manages a single disk available in a storage domain attached to a data center. // IMPORTANT: Since version 4.2 of the engine this service is intended only to list disks available in the storage // domain, and to register unregistered disks. All the other operations, like copying a disk, moving a disk, etc, have // been deprecated and will be removed in the future. To perform those operations use the <>, or the <>. -// type AttachedStorageDomainDiskService struct { BaseService } @@ -10242,12 +9756,10 @@ func NewAttachedStorageDomainDiskService(connection *Connection, path string) *A return &result } -// // Copies a disk to the specified storage domain. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To copy a disk use the <> // operation of the service that manages that disk. -// type AttachedStorageDomainDiskServiceCopyRequest struct { AttachedStorageDomainDiskService *AttachedStorageDomainDiskService header map[string]string @@ -10365,31 +9877,25 @@ func (p *AttachedStorageDomainDiskServiceCopyRequest) MustSend() *AttachedStorag } } -// // Copies a disk to the specified storage domain. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To copy a disk use the <> // operation of the service that manages that disk. -// type AttachedStorageDomainDiskServiceCopyResponse struct { } -// // Copies a disk to the specified storage domain. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To copy a disk use the <> // operation of the service that manages that disk. -// func (p *AttachedStorageDomainDiskService) Copy() *AttachedStorageDomainDiskServiceCopyRequest { return &AttachedStorageDomainDiskServiceCopyRequest{AttachedStorageDomainDiskService: p} } -// // Exports a disk to an export storage domain. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To export a disk use the <> // operation of the service that manages that disk. -// type AttachedStorageDomainDiskServiceExportRequest struct { AttachedStorageDomainDiskService *AttachedStorageDomainDiskService header map[string]string @@ -10500,28 +10006,22 @@ func (p *AttachedStorageDomainDiskServiceExportRequest) MustSend() *AttachedStor } } -// // Exports a disk to an export storage domain. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To export a disk use the <> // operation of the service that manages that disk. -// type AttachedStorageDomainDiskServiceExportResponse struct { } -// // Exports a disk to an export storage domain. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To export a disk use the <> // operation of the service that manages that disk. -// func (p *AttachedStorageDomainDiskService) Export() *AttachedStorageDomainDiskServiceExportRequest { return &AttachedStorageDomainDiskServiceExportRequest{AttachedStorageDomainDiskService: p} } -// // Retrieves the description of the disk. -// type AttachedStorageDomainDiskServiceGetRequest struct { AttachedStorageDomainDiskService *AttachedStorageDomainDiskService header map[string]string @@ -10630,9 +10130,7 @@ func (p *AttachedStorageDomainDiskServiceGetRequest) MustSend() *AttachedStorage } } -// // Retrieves the description of the disk. -// type AttachedStorageDomainDiskServiceGetResponse struct { disk *Disk } @@ -10651,19 +10149,15 @@ func (p *AttachedStorageDomainDiskServiceGetResponse) MustDisk() *Disk { return p.disk } -// // Retrieves the description of the disk. -// func (p *AttachedStorageDomainDiskService) Get() *AttachedStorageDomainDiskServiceGetRequest { return &AttachedStorageDomainDiskServiceGetRequest{AttachedStorageDomainDiskService: p} } -// // Moves a disk to another storage domain. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To move a disk use the <> // operation of the service that manages that disk. -// type AttachedStorageDomainDiskServiceMoveRequest struct { AttachedStorageDomainDiskService *AttachedStorageDomainDiskService header map[string]string @@ -10792,28 +10286,22 @@ func (p *AttachedStorageDomainDiskServiceMoveRequest) MustSend() *AttachedStorag } } -// // Moves a disk to another storage domain. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To move a disk use the <> // operation of the service that manages that disk. -// type AttachedStorageDomainDiskServiceMoveResponse struct { } -// // Moves a disk to another storage domain. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To move a disk use the <> // operation of the service that manages that disk. -// func (p *AttachedStorageDomainDiskService) Move() *AttachedStorageDomainDiskServiceMoveRequest { return &AttachedStorageDomainDiskServiceMoveRequest{AttachedStorageDomainDiskService: p} } -// // Registers an unregistered disk. -// type AttachedStorageDomainDiskServiceRegisterRequest struct { AttachedStorageDomainDiskService *AttachedStorageDomainDiskService header map[string]string @@ -10917,25 +10405,19 @@ func (p *AttachedStorageDomainDiskServiceRegisterRequest) MustSend() *AttachedSt } } -// // Registers an unregistered disk. -// type AttachedStorageDomainDiskServiceRegisterResponse struct { } -// // Registers an unregistered disk. -// func (p *AttachedStorageDomainDiskService) Register() *AttachedStorageDomainDiskServiceRegisterRequest { return &AttachedStorageDomainDiskServiceRegisterRequest{AttachedStorageDomainDiskService: p} } -// // Removes a disk. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To remove a disk use the <> // operation of the service that manages that disk. -// type AttachedStorageDomainDiskServiceRemoveRequest struct { AttachedStorageDomainDiskService *AttachedStorageDomainDiskService header map[string]string @@ -11029,31 +10511,25 @@ func (p *AttachedStorageDomainDiskServiceRemoveRequest) MustSend() *AttachedStor } } -// // Removes a disk. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To remove a disk use the <> // operation of the service that manages that disk. -// type AttachedStorageDomainDiskServiceRemoveResponse struct { } -// // Removes a disk. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To remove a disk use the <> // operation of the service that manages that disk. -// func (p *AttachedStorageDomainDiskService) Remove() *AttachedStorageDomainDiskServiceRemoveRequest { return &AttachedStorageDomainDiskServiceRemoveRequest{AttachedStorageDomainDiskService: p} } -// // Sparsify the disk. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To remove a disk use the <> // operation of the service that manages that disk. -// type AttachedStorageDomainDiskServiceSparsifyRequest struct { AttachedStorageDomainDiskService *AttachedStorageDomainDiskService header map[string]string @@ -11157,31 +10633,25 @@ func (p *AttachedStorageDomainDiskServiceSparsifyRequest) MustSend() *AttachedSt } } -// // Sparsify the disk. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To remove a disk use the <> // operation of the service that manages that disk. -// type AttachedStorageDomainDiskServiceSparsifyResponse struct { } -// // Sparsify the disk. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To remove a disk use the <> // operation of the service that manages that disk. -// func (p *AttachedStorageDomainDiskService) Sparsify() *AttachedStorageDomainDiskServiceSparsifyRequest { return &AttachedStorageDomainDiskServiceSparsifyRequest{AttachedStorageDomainDiskService: p} } -// // Updates the disk. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To update a disk use the // <> operation of the service that manages that disk. -// type AttachedStorageDomainDiskServiceUpdateRequest struct { AttachedStorageDomainDiskService *AttachedStorageDomainDiskService header map[string]string @@ -11293,12 +10763,10 @@ func (p *AttachedStorageDomainDiskServiceUpdateRequest) MustSend() *AttachedStor } } -// // Updates the disk. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To update a disk use the // <> operation of the service that manages that disk. -// type AttachedStorageDomainDiskServiceUpdateResponse struct { disk *Disk } @@ -11317,32 +10785,24 @@ func (p *AttachedStorageDomainDiskServiceUpdateResponse) MustDisk() *Disk { return p.disk } -// // Updates the disk. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To update a disk use the // <> operation of the service that manages that disk. -// func (p *AttachedStorageDomainDiskService) Update() *AttachedStorageDomainDiskServiceUpdateRequest { return &AttachedStorageDomainDiskServiceUpdateRequest{AttachedStorageDomainDiskService: p} } -// // Reference to the service that manages the permissions assigned to the disk. -// func (op *AttachedStorageDomainDiskService) PermissionsService() *AssignedPermissionsService { return NewAssignedPermissionsService(op.connection, fmt.Sprintf("%s/permissions", op.path)) } -// -// func (op *AttachedStorageDomainDiskService) StatisticsService() *StatisticsService { return NewStatisticsService(op.connection, fmt.Sprintf("%s/statistics", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AttachedStorageDomainDiskService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -11366,9 +10826,7 @@ func (op *AttachedStorageDomainDiskService) String() string { return fmt.Sprintf("AttachedStorageDomainDiskService:%s", op.path) } -// // Manages the collection of disks available inside an storage domain that is attached to a data center. -// type AttachedStorageDomainDisksService struct { BaseService } @@ -11380,14 +10838,12 @@ func NewAttachedStorageDomainDisksService(connection *Connection, path string) * return &result } -// // Adds or registers a disk. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To add a new disk use the <> // operation of the service that manages the disks of the system. To register an unregistered disk use the // <> operation of the service that manages // that disk. -// type AttachedStorageDomainDisksServiceAddRequest struct { AttachedStorageDomainDisksService *AttachedStorageDomainDisksService header map[string]string @@ -11509,14 +10965,12 @@ func (p *AttachedStorageDomainDisksServiceAddRequest) MustSend() *AttachedStorag } } -// // Adds or registers a disk. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To add a new disk use the <> // operation of the service that manages the disks of the system. To register an unregistered disk use the // <> operation of the service that manages // that disk. -// type AttachedStorageDomainDisksServiceAddResponse struct { disk *Disk } @@ -11535,21 +10989,17 @@ func (p *AttachedStorageDomainDisksServiceAddResponse) MustDisk() *Disk { return p.disk } -// // Adds or registers a disk. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To add a new disk use the <> // operation of the service that manages the disks of the system. To register an unregistered disk use the // <> operation of the service that manages // that disk. -// func (p *AttachedStorageDomainDisksService) Add() *AttachedStorageDomainDisksServiceAddRequest { return &AttachedStorageDomainDisksServiceAddRequest{AttachedStorageDomainDisksService: p} } -// // Retrieve the list of disks that are available in the storage domain. -// type AttachedStorageDomainDisksServiceListRequest struct { AttachedStorageDomainDisksService *AttachedStorageDomainDisksService header map[string]string @@ -11668,9 +11118,7 @@ func (p *AttachedStorageDomainDisksServiceListRequest) MustSend() *AttachedStora } } -// // Retrieve the list of disks that are available in the storage domain. -// type AttachedStorageDomainDisksServiceListResponse struct { disks *DiskSlice } @@ -11689,23 +11137,17 @@ func (p *AttachedStorageDomainDisksServiceListResponse) MustDisks() *DiskSlice { return p.disks } -// // Retrieve the list of disks that are available in the storage domain. -// func (p *AttachedStorageDomainDisksService) List() *AttachedStorageDomainDisksServiceListRequest { return &AttachedStorageDomainDisksServiceListRequest{AttachedStorageDomainDisksService: p} } -// // Reference to the service that manages a specific disk. -// func (op *AttachedStorageDomainDisksService) DiskService(id string) *AttachedStorageDomainDiskService { return NewAttachedStorageDomainDiskService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AttachedStorageDomainDisksService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -11721,8 +11163,6 @@ func (op *AttachedStorageDomainDisksService) String() string { return fmt.Sprintf("AttachedStorageDomainDisksService:%s", op.path) } -// -// type AttachedStorageDomainService struct { BaseService } @@ -11734,7 +11174,6 @@ func NewAttachedStorageDomainService(connection *Connection, path string) *Attac return &result } -// // This operation activates an attached storage domain. // Once the storage domain is activated it is ready for use with the data center. // [source] @@ -11747,7 +11186,6 @@ func NewAttachedStorageDomainService(connection *Connection, path string) *Attac // ---- // // ---- -// type AttachedStorageDomainServiceActivateRequest struct { AttachedStorageDomainService *AttachedStorageDomainService header map[string]string @@ -11860,7 +11298,6 @@ func (p *AttachedStorageDomainServiceActivateRequest) MustSend() *AttachedStorag } } -// // This operation activates an attached storage domain. // Once the storage domain is activated it is ready for use with the data center. // [source] @@ -11873,11 +11310,9 @@ func (p *AttachedStorageDomainServiceActivateRequest) MustSend() *AttachedStorag // ---- // // ---- -// type AttachedStorageDomainServiceActivateResponse struct { } -// // This operation activates an attached storage domain. // Once the storage domain is activated it is ready for use with the data center. // [source] @@ -11890,12 +11325,10 @@ type AttachedStorageDomainServiceActivateResponse struct { // ---- // // ---- -// func (p *AttachedStorageDomainService) Activate() *AttachedStorageDomainServiceActivateRequest { return &AttachedStorageDomainServiceActivateRequest{AttachedStorageDomainService: p} } -// // This operation deactivates an attached storage domain. // Once the storage domain is deactivated it will not be used with the data center. // For example, to deactivate storage domain `456`, send the following request: @@ -11911,7 +11344,6 @@ func (p *AttachedStorageDomainService) Activate() *AttachedStorageDomainServiceA // If the `force` parameter is `true` then the operation will succeed, even if the OVF update which takes place // before the deactivation of the storage domain failed. If the `force` parameter is `false` and the OVF update failed, // the deactivation of the storage domain will also fail. -// type AttachedStorageDomainServiceDeactivateRequest struct { AttachedStorageDomainService *AttachedStorageDomainService header map[string]string @@ -12033,7 +11465,6 @@ func (p *AttachedStorageDomainServiceDeactivateRequest) MustSend() *AttachedStor } } -// // This operation deactivates an attached storage domain. // Once the storage domain is deactivated it will not be used with the data center. // For example, to deactivate storage domain `456`, send the following request: @@ -12049,11 +11480,9 @@ func (p *AttachedStorageDomainServiceDeactivateRequest) MustSend() *AttachedStor // If the `force` parameter is `true` then the operation will succeed, even if the OVF update which takes place // before the deactivation of the storage domain failed. If the `force` parameter is `false` and the OVF update failed, // the deactivation of the storage domain will also fail. -// type AttachedStorageDomainServiceDeactivateResponse struct { } -// // This operation deactivates an attached storage domain. // Once the storage domain is deactivated it will not be used with the data center. // For example, to deactivate storage domain `456`, send the following request: @@ -12069,13 +11498,10 @@ type AttachedStorageDomainServiceDeactivateResponse struct { // If the `force` parameter is `true` then the operation will succeed, even if the OVF update which takes place // before the deactivation of the storage domain failed. If the `force` parameter is `false` and the OVF update failed, // the deactivation of the storage domain will also fail. -// func (p *AttachedStorageDomainService) Deactivate() *AttachedStorageDomainServiceDeactivateRequest { return &AttachedStorageDomainServiceDeactivateRequest{AttachedStorageDomainService: p} } -// -// type AttachedStorageDomainServiceGetRequest struct { AttachedStorageDomainService *AttachedStorageDomainService header map[string]string @@ -12184,8 +11610,6 @@ func (p *AttachedStorageDomainServiceGetRequest) MustSend() *AttachedStorageDoma } } -// -// type AttachedStorageDomainServiceGetResponse struct { storageDomain *StorageDomain } @@ -12204,14 +11628,10 @@ func (p *AttachedStorageDomainServiceGetResponse) MustStorageDomain() *StorageDo return p.storageDomain } -// -// func (p *AttachedStorageDomainService) Get() *AttachedStorageDomainServiceGetRequest { return &AttachedStorageDomainServiceGetRequest{AttachedStorageDomainService: p} } -// -// type AttachedStorageDomainServiceRemoveRequest struct { AttachedStorageDomainService *AttachedStorageDomainService header map[string]string @@ -12315,26 +11735,18 @@ func (p *AttachedStorageDomainServiceRemoveRequest) MustSend() *AttachedStorageD } } -// -// type AttachedStorageDomainServiceRemoveResponse struct { } -// -// func (p *AttachedStorageDomainService) Remove() *AttachedStorageDomainServiceRemoveRequest { return &AttachedStorageDomainServiceRemoveRequest{AttachedStorageDomainService: p} } -// -// func (op *AttachedStorageDomainService) DisksService() *AttachedStorageDomainDisksService { return NewAttachedStorageDomainDisksService(op.connection, fmt.Sprintf("%s/disks", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AttachedStorageDomainService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -12352,9 +11764,7 @@ func (op *AttachedStorageDomainService) String() string { return fmt.Sprintf("AttachedStorageDomainService:%s", op.path) } -// // Manages the storage domains attached to a data center. -// type AttachedStorageDomainsService struct { BaseService } @@ -12366,9 +11776,7 @@ func NewAttachedStorageDomainsService(connection *Connection, path string) *Atta return &result } -// // Attaches an existing storage domain to the data center. -// type AttachedStorageDomainsServiceAddRequest struct { AttachedStorageDomainsService *AttachedStorageDomainsService header map[string]string @@ -12480,9 +11888,7 @@ func (p *AttachedStorageDomainsServiceAddRequest) MustSend() *AttachedStorageDom } } -// // Attaches an existing storage domain to the data center. -// type AttachedStorageDomainsServiceAddResponse struct { storageDomain *StorageDomain } @@ -12501,17 +11907,13 @@ func (p *AttachedStorageDomainsServiceAddResponse) MustStorageDomain() *StorageD return p.storageDomain } -// // Attaches an existing storage domain to the data center. -// func (p *AttachedStorageDomainsService) Add() *AttachedStorageDomainsServiceAddRequest { return &AttachedStorageDomainsServiceAddRequest{AttachedStorageDomainsService: p} } -// // Returns the list of storage domains attached to the data center. // The order of the returned storage domains isn't guaranteed. -// type AttachedStorageDomainsServiceListRequest struct { AttachedStorageDomainsService *AttachedStorageDomainsService header map[string]string @@ -12630,10 +12032,8 @@ func (p *AttachedStorageDomainsServiceListRequest) MustSend() *AttachedStorageDo } } -// // Returns the list of storage domains attached to the data center. // The order of the returned storage domains isn't guaranteed. -// type AttachedStorageDomainsServiceListResponse struct { storageDomains *StorageDomainSlice } @@ -12652,23 +12052,17 @@ func (p *AttachedStorageDomainsServiceListResponse) MustStorageDomains() *Storag return p.storageDomains } -// // Returns the list of storage domains attached to the data center. // The order of the returned storage domains isn't guaranteed. -// func (p *AttachedStorageDomainsService) List() *AttachedStorageDomainsServiceListRequest { return &AttachedStorageDomainsServiceListRequest{AttachedStorageDomainsService: p} } -// -// func (op *AttachedStorageDomainsService) StorageDomainService(id string) *AttachedStorageDomainService { return NewAttachedStorageDomainService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *AttachedStorageDomainsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -12684,8 +12078,6 @@ func (op *AttachedStorageDomainsService) String() string { return fmt.Sprintf("AttachedStorageDomainsService:%s", op.path) } -// -// type BalanceService struct { BaseService } @@ -12697,8 +12089,6 @@ func NewBalanceService(connection *Connection, path string) *BalanceService { return &result } -// -// type BalanceServiceGetRequest struct { BalanceService *BalanceService header map[string]string @@ -12817,8 +12207,6 @@ func (p *BalanceServiceGetRequest) MustSend() *BalanceServiceGetResponse { } } -// -// type BalanceServiceGetResponse struct { balance *Balance } @@ -12837,14 +12225,10 @@ func (p *BalanceServiceGetResponse) MustBalance() *Balance { return p.balance } -// -// func (p *BalanceService) Get() *BalanceServiceGetRequest { return &BalanceServiceGetRequest{BalanceService: p} } -// -// type BalanceServiceRemoveRequest struct { BalanceService *BalanceService header map[string]string @@ -12948,20 +12332,14 @@ func (p *BalanceServiceRemoveRequest) MustSend() *BalanceServiceRemoveResponse { } } -// -// type BalanceServiceRemoveResponse struct { } -// -// func (p *BalanceService) Remove() *BalanceServiceRemoveRequest { return &BalanceServiceRemoveRequest{BalanceService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *BalanceService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -12973,8 +12351,6 @@ func (op *BalanceService) String() string { return fmt.Sprintf("BalanceService:%s", op.path) } -// -// type BalancesService struct { BaseService } @@ -12986,9 +12362,7 @@ func NewBalancesService(connection *Connection, path string) *BalancesService { return &result } -// // Add a balance module to a specified user defined scheduling policy. -// type BalancesServiceAddRequest struct { BalancesService *BalancesService header map[string]string @@ -13100,9 +12474,7 @@ func (p *BalancesServiceAddRequest) MustSend() *BalancesServiceAddResponse { } } -// // Add a balance module to a specified user defined scheduling policy. -// type BalancesServiceAddResponse struct { balance *Balance } @@ -13121,17 +12493,13 @@ func (p *BalancesServiceAddResponse) MustBalance() *Balance { return p.balance } -// // Add a balance module to a specified user defined scheduling policy. -// func (p *BalancesService) Add() *BalancesServiceAddRequest { return &BalancesServiceAddRequest{BalancesService: p} } -// // Returns the list of balance modules used by the scheduling policy. // The order of the returned balance modules isn't guaranteed. -// type BalancesServiceListRequest struct { BalancesService *BalancesService header map[string]string @@ -13260,10 +12628,8 @@ func (p *BalancesServiceListRequest) MustSend() *BalancesServiceListResponse { } } -// // Returns the list of balance modules used by the scheduling policy. // The order of the returned balance modules isn't guaranteed. -// type BalancesServiceListResponse struct { balances *BalanceSlice } @@ -13282,23 +12648,17 @@ func (p *BalancesServiceListResponse) MustBalances() *BalanceSlice { return p.balances } -// // Returns the list of balance modules used by the scheduling policy. // The order of the returned balance modules isn't guaranteed. -// func (p *BalancesService) List() *BalancesServiceListRequest { return &BalancesServiceListRequest{BalancesService: p} } -// -// func (op *BalancesService) BalanceService(id string) *BalanceService { return NewBalanceService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *BalancesService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -13314,9 +12674,7 @@ func (op *BalancesService) String() string { return fmt.Sprintf("BalancesService:%s", op.path) } -// // A service to manage a bookmark. -// type BookmarkService struct { BaseService } @@ -13328,7 +12686,6 @@ func NewBookmarkService(connection *Connection, path string) *BookmarkService { return &result } -// // Get a bookmark. // An example for getting a bookmark: // [source] @@ -13338,11 +12695,12 @@ func NewBookmarkService(connection *Connection, path string) *BookmarkService { // [source,xml] // ---- // -// example_vm -// vm: name=example* +// +// example_vm +// vm: name=example* +// // // ---- -// type BookmarkServiceGetRequest struct { BookmarkService *BookmarkService header map[string]string @@ -13451,7 +12809,6 @@ func (p *BookmarkServiceGetRequest) MustSend() *BookmarkServiceGetResponse { } } -// // Get a bookmark. // An example for getting a bookmark: // [source] @@ -13461,11 +12818,12 @@ func (p *BookmarkServiceGetRequest) MustSend() *BookmarkServiceGetResponse { // [source,xml] // ---- // -// example_vm -// vm: name=example* +// +// example_vm +// vm: name=example* +// // // ---- -// type BookmarkServiceGetResponse struct { bookmark *Bookmark } @@ -13484,7 +12842,6 @@ func (p *BookmarkServiceGetResponse) MustBookmark() *Bookmark { return p.bookmark } -// // Get a bookmark. // An example for getting a bookmark: // [source] @@ -13494,23 +12851,22 @@ func (p *BookmarkServiceGetResponse) MustBookmark() *Bookmark { // [source,xml] // ---- // -// example_vm -// vm: name=example* +// +// example_vm +// vm: name=example* +// // // ---- -// func (p *BookmarkService) Get() *BookmarkServiceGetRequest { return &BookmarkServiceGetRequest{BookmarkService: p} } -// // Remove a bookmark. // An example for removing a bookmark: // [source] // ---- // DELETE /ovirt-engine/api/bookmarks/123 // ---- -// type BookmarkServiceRemoveRequest struct { BookmarkService *BookmarkService header map[string]string @@ -13614,30 +12970,25 @@ func (p *BookmarkServiceRemoveRequest) MustSend() *BookmarkServiceRemoveResponse } } -// // Remove a bookmark. // An example for removing a bookmark: // [source] // ---- // DELETE /ovirt-engine/api/bookmarks/123 // ---- -// type BookmarkServiceRemoveResponse struct { } -// // Remove a bookmark. // An example for removing a bookmark: // [source] // ---- // DELETE /ovirt-engine/api/bookmarks/123 // ---- -// func (p *BookmarkService) Remove() *BookmarkServiceRemoveRequest { return &BookmarkServiceRemoveRequest{BookmarkService: p} } -// // Update a bookmark. // An example for updating a bookmark: // [source] @@ -13648,11 +12999,12 @@ func (p *BookmarkService) Remove() *BookmarkServiceRemoveRequest { // [source,xml] // ---- // -// new_example_vm -// vm: name=new_example* +// +// new_example_vm +// vm: name=new_example* +// // // ---- -// type BookmarkServiceUpdateRequest struct { BookmarkService *BookmarkService header map[string]string @@ -13774,7 +13126,6 @@ func (p *BookmarkServiceUpdateRequest) MustSend() *BookmarkServiceUpdateResponse } } -// // Update a bookmark. // An example for updating a bookmark: // [source] @@ -13785,11 +13136,12 @@ func (p *BookmarkServiceUpdateRequest) MustSend() *BookmarkServiceUpdateResponse // [source,xml] // ---- // -// new_example_vm -// vm: name=new_example* +// +// new_example_vm +// vm: name=new_example* +// // // ---- -// type BookmarkServiceUpdateResponse struct { bookmark *Bookmark } @@ -13808,7 +13160,6 @@ func (p *BookmarkServiceUpdateResponse) MustBookmark() *Bookmark { return p.bookmark } -// // Update a bookmark. // An example for updating a bookmark: // [source] @@ -13819,18 +13170,17 @@ func (p *BookmarkServiceUpdateResponse) MustBookmark() *Bookmark { // [source,xml] // ---- // -// new_example_vm -// vm: name=new_example* +// +// new_example_vm +// vm: name=new_example* +// // // ---- -// func (p *BookmarkService) Update() *BookmarkServiceUpdateRequest { return &BookmarkServiceUpdateRequest{BookmarkService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *BookmarkService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -13842,9 +13192,7 @@ func (op *BookmarkService) String() string { return fmt.Sprintf("BookmarkService:%s", op.path) } -// // A service to manage bookmarks. -// type BookmarksService struct { BaseService } @@ -13856,7 +13204,6 @@ func NewBookmarksService(connection *Connection, path string) *BookmarksService return &result } -// // Adding a new bookmark. // Example of adding a bookmark: // [source] @@ -13866,11 +13213,12 @@ func NewBookmarksService(connection *Connection, path string) *BookmarksService // [source,xml] // ---- // -// new_example_vm -// vm: name=new_example* +// +// new_example_vm +// vm: name=new_example* +// // // ---- -// type BookmarksServiceAddRequest struct { BookmarksService *BookmarksService header map[string]string @@ -13982,7 +13330,6 @@ func (p *BookmarksServiceAddRequest) MustSend() *BookmarksServiceAddResponse { } } -// // Adding a new bookmark. // Example of adding a bookmark: // [source] @@ -13992,11 +13339,12 @@ func (p *BookmarksServiceAddRequest) MustSend() *BookmarksServiceAddResponse { // [source,xml] // ---- // -// new_example_vm -// vm: name=new_example* +// +// new_example_vm +// vm: name=new_example* +// // // ---- -// type BookmarksServiceAddResponse struct { bookmark *Bookmark } @@ -14015,7 +13363,6 @@ func (p *BookmarksServiceAddResponse) MustBookmark() *Bookmark { return p.bookmark } -// // Adding a new bookmark. // Example of adding a bookmark: // [source] @@ -14025,16 +13372,16 @@ func (p *BookmarksServiceAddResponse) MustBookmark() *Bookmark { // [source,xml] // ---- // -// new_example_vm -// vm: name=new_example* +// +// new_example_vm +// vm: name=new_example* +// // // ---- -// func (p *BookmarksService) Add() *BookmarksServiceAddRequest { return &BookmarksServiceAddRequest{BookmarksService: p} } -// // Listing all the available bookmarks. // Example of listing bookmarks: // [source] @@ -14044,18 +13391,19 @@ func (p *BookmarksService) Add() *BookmarksServiceAddRequest { // [source,xml] // ---- // -// -// database -// vm: name=database* -// -// -// example -// vm: name=example* -// +// +// +// database +// vm: name=database* +// +// +// example +// vm: name=example* +// +// // // ---- // The order of the returned bookmarks isn't guaranteed. -// type BookmarksServiceListRequest struct { BookmarksService *BookmarksService header map[string]string @@ -14174,7 +13522,6 @@ func (p *BookmarksServiceListRequest) MustSend() *BookmarksServiceListResponse { } } -// // Listing all the available bookmarks. // Example of listing bookmarks: // [source] @@ -14184,18 +13531,19 @@ func (p *BookmarksServiceListRequest) MustSend() *BookmarksServiceListResponse { // [source,xml] // ---- // -// -// database -// vm: name=database* -// -// -// example -// vm: name=example* -// +// +// +// database +// vm: name=database* +// +// +// example +// vm: name=example* +// +// // // ---- // The order of the returned bookmarks isn't guaranteed. -// type BookmarksServiceListResponse struct { bookmarks *BookmarkSlice } @@ -14214,7 +13562,6 @@ func (p *BookmarksServiceListResponse) MustBookmarks() *BookmarkSlice { return p.bookmarks } -// // Listing all the available bookmarks. // Example of listing bookmarks: // [source] @@ -14224,32 +13571,29 @@ func (p *BookmarksServiceListResponse) MustBookmarks() *BookmarkSlice { // [source,xml] // ---- // -// -// database -// vm: name=database* -// -// -// example -// vm: name=example* -// +// +// +// database +// vm: name=database* +// +// +// example +// vm: name=example* +// +// // // ---- // The order of the returned bookmarks isn't guaranteed. -// func (p *BookmarksService) List() *BookmarksServiceListRequest { return &BookmarksServiceListRequest{BookmarksService: p} } -// // A reference to the service managing a specific bookmark. -// func (op *BookmarksService) BookmarkService(id string) *BookmarkService { return NewBookmarkService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *BookmarksService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -14265,9 +13609,7 @@ func (op *BookmarksService) String() string { return fmt.Sprintf("BookmarksService:%s", op.path) } -// // Represents a feature enabled for the cluster. -// type ClusterEnabledFeatureService struct { BaseService } @@ -14279,7 +13621,6 @@ func NewClusterEnabledFeatureService(connection *Connection, path string) *Clust return &result } -// // Provides the information about the cluster feature enabled. // For example, to find details of the enabled feature `456` for cluster `123`, send a request like this: // [source] @@ -14290,10 +13631,11 @@ func NewClusterEnabledFeatureService(connection *Connection, path string) *Clust // [source,xml] // ---- // -// libgfapi_supported +// +// libgfapi_supported +// // // ---- -// type ClusterEnabledFeatureServiceGetRequest struct { ClusterEnabledFeatureService *ClusterEnabledFeatureService header map[string]string @@ -14402,7 +13744,6 @@ func (p *ClusterEnabledFeatureServiceGetRequest) MustSend() *ClusterEnabledFeatu } } -// // Provides the information about the cluster feature enabled. // For example, to find details of the enabled feature `456` for cluster `123`, send a request like this: // [source] @@ -14413,10 +13754,11 @@ func (p *ClusterEnabledFeatureServiceGetRequest) MustSend() *ClusterEnabledFeatu // [source,xml] // ---- // -// libgfapi_supported +// +// libgfapi_supported +// // // ---- -// type ClusterEnabledFeatureServiceGetResponse struct { feature *ClusterFeature } @@ -14435,7 +13777,6 @@ func (p *ClusterEnabledFeatureServiceGetResponse) MustFeature() *ClusterFeature return p.feature } -// // Provides the information about the cluster feature enabled. // For example, to find details of the enabled feature `456` for cluster `123`, send a request like this: // [source] @@ -14446,22 +13787,21 @@ func (p *ClusterEnabledFeatureServiceGetResponse) MustFeature() *ClusterFeature // [source,xml] // ---- // -// libgfapi_supported +// +// libgfapi_supported +// // // ---- -// func (p *ClusterEnabledFeatureService) Get() *ClusterEnabledFeatureServiceGetRequest { return &ClusterEnabledFeatureServiceGetRequest{ClusterEnabledFeatureService: p} } -// // Disables a cluster feature. // For example, to disable the feature `456` of cluster `123` send a request like this: // [source] // ---- // DELETE /ovirt-engine/api/clusters/123/enabledfeatures/456 // ---- -// type ClusterEnabledFeatureServiceRemoveRequest struct { ClusterEnabledFeatureService *ClusterEnabledFeatureService header map[string]string @@ -14555,32 +13895,26 @@ func (p *ClusterEnabledFeatureServiceRemoveRequest) MustSend() *ClusterEnabledFe } } -// // Disables a cluster feature. // For example, to disable the feature `456` of cluster `123` send a request like this: // [source] // ---- // DELETE /ovirt-engine/api/clusters/123/enabledfeatures/456 // ---- -// type ClusterEnabledFeatureServiceRemoveResponse struct { } -// // Disables a cluster feature. // For example, to disable the feature `456` of cluster `123` send a request like this: // [source] // ---- // DELETE /ovirt-engine/api/clusters/123/enabledfeatures/456 // ---- -// func (p *ClusterEnabledFeatureService) Remove() *ClusterEnabledFeatureServiceRemoveRequest { return &ClusterEnabledFeatureServiceRemoveRequest{ClusterEnabledFeatureService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *ClusterEnabledFeatureService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -14592,10 +13926,8 @@ func (op *ClusterEnabledFeatureService) String() string { return fmt.Sprintf("ClusterEnabledFeatureService:%s", op.path) } -// // Provides information about the additional features that are enabled for this cluster. // The features that are enabled are the available features for the cluster level -// type ClusterEnabledFeaturesService struct { BaseService } @@ -14607,7 +13939,6 @@ func NewClusterEnabledFeaturesService(connection *Connection, path string) *Clus return &result } -// // Enable an additional feature for a cluster. // For example, to enable a feature `456` on cluster `123`, send a request like this: // [source] @@ -14619,7 +13950,6 @@ func NewClusterEnabledFeaturesService(connection *Connection, path string) *Clus // ---- // // ---- -// type ClusterEnabledFeaturesServiceAddRequest struct { ClusterEnabledFeaturesService *ClusterEnabledFeaturesService header map[string]string @@ -14731,7 +14061,6 @@ func (p *ClusterEnabledFeaturesServiceAddRequest) MustSend() *ClusterEnabledFeat } } -// // Enable an additional feature for a cluster. // For example, to enable a feature `456` on cluster `123`, send a request like this: // [source] @@ -14743,7 +14072,6 @@ func (p *ClusterEnabledFeaturesServiceAddRequest) MustSend() *ClusterEnabledFeat // ---- // // ---- -// type ClusterEnabledFeaturesServiceAddResponse struct { feature *ClusterFeature } @@ -14762,7 +14090,6 @@ func (p *ClusterEnabledFeaturesServiceAddResponse) MustFeature() *ClusterFeature return p.feature } -// // Enable an additional feature for a cluster. // For example, to enable a feature `456` on cluster `123`, send a request like this: // [source] @@ -14774,12 +14101,10 @@ func (p *ClusterEnabledFeaturesServiceAddResponse) MustFeature() *ClusterFeature // ---- // // ---- -// func (p *ClusterEnabledFeaturesService) Add() *ClusterEnabledFeaturesServiceAddRequest { return &ClusterEnabledFeaturesServiceAddRequest{ClusterEnabledFeaturesService: p} } -// // Lists the additional features enabled for the cluster. // For example, to get the features enabled for cluster `123` send a request like this: // [source] @@ -14790,13 +14115,14 @@ func (p *ClusterEnabledFeaturesService) Add() *ClusterEnabledFeaturesServiceAddR // [source,xml] // ---- // -// -// test_feature -// -// ... +// +// +// test_feature +// +// ... +// // // ---- -// type ClusterEnabledFeaturesServiceListRequest struct { ClusterEnabledFeaturesService *ClusterEnabledFeaturesService header map[string]string @@ -14905,7 +14231,6 @@ func (p *ClusterEnabledFeaturesServiceListRequest) MustSend() *ClusterEnabledFea } } -// // Lists the additional features enabled for the cluster. // For example, to get the features enabled for cluster `123` send a request like this: // [source] @@ -14916,13 +14241,14 @@ func (p *ClusterEnabledFeaturesServiceListRequest) MustSend() *ClusterEnabledFea // [source,xml] // ---- // -// -// test_feature -// -// ... +// +// +// test_feature +// +// ... +// // // ---- -// type ClusterEnabledFeaturesServiceListResponse struct { features *ClusterFeatureSlice } @@ -14941,7 +14267,6 @@ func (p *ClusterEnabledFeaturesServiceListResponse) MustFeatures() *ClusterFeatu return p.features } -// // Lists the additional features enabled for the cluster. // For example, to get the features enabled for cluster `123` send a request like this: // [source] @@ -14952,28 +14277,25 @@ func (p *ClusterEnabledFeaturesServiceListResponse) MustFeatures() *ClusterFeatu // [source,xml] // ---- // -// -// test_feature -// -// ... +// +// +// test_feature +// +// ... +// // // ---- -// func (p *ClusterEnabledFeaturesService) List() *ClusterEnabledFeaturesServiceListRequest { return &ClusterEnabledFeaturesServiceListRequest{ClusterEnabledFeaturesService: p} } -// // A reference to the service that provides information about a specific // feature enabled for the cluster. -// func (op *ClusterEnabledFeaturesService) FeatureService(id string) *ClusterEnabledFeatureService { return NewClusterEnabledFeatureService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *ClusterEnabledFeaturesService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -14989,9 +14311,7 @@ func (op *ClusterEnabledFeaturesService) String() string { return fmt.Sprintf("ClusterEnabledFeaturesService:%s", op.path) } -// // This service lists external providers. -// type ClusterExternalProvidersService struct { BaseService } @@ -15003,10 +14323,8 @@ func NewClusterExternalProvidersService(connection *Connection, path string) *Cl return &result } -// // Returns the list of external providers. // The order of the returned list of providers is not guaranteed. -// type ClusterExternalProvidersServiceListRequest struct { ClusterExternalProvidersService *ClusterExternalProvidersService header map[string]string @@ -15115,10 +14433,8 @@ func (p *ClusterExternalProvidersServiceListRequest) MustSend() *ClusterExternal } } -// // Returns the list of external providers. // The order of the returned list of providers is not guaranteed. -// type ClusterExternalProvidersServiceListResponse struct { providers *ExternalProviderSlice } @@ -15137,17 +14453,13 @@ func (p *ClusterExternalProvidersServiceListResponse) MustProviders() *ExternalP return p.providers } -// // Returns the list of external providers. // The order of the returned list of providers is not guaranteed. -// func (p *ClusterExternalProvidersService) List() *ClusterExternalProvidersServiceListRequest { return &ClusterExternalProvidersServiceListRequest{ClusterExternalProvidersService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *ClusterExternalProvidersService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -15159,9 +14471,7 @@ func (op *ClusterExternalProvidersService) String() string { return fmt.Sprintf("ClusterExternalProvidersService:%s", op.path) } -// // Represents a feature enabled for the cluster level -// type ClusterFeatureService struct { BaseService } @@ -15173,7 +14483,6 @@ func NewClusterFeatureService(connection *Connection, path string) *ClusterFeatu return &result } -// // Provides the information about the a cluster feature supported by a cluster level. // For example, to find details of the cluster feature `456` for cluster level 4.1, send a request like this: // [source] @@ -15184,10 +14493,11 @@ func NewClusterFeatureService(connection *Connection, path string) *ClusterFeatu // [source,xml] // ---- // -// libgfapi_supported +// +// libgfapi_supported +// // // ---- -// type ClusterFeatureServiceGetRequest struct { ClusterFeatureService *ClusterFeatureService header map[string]string @@ -15296,7 +14606,6 @@ func (p *ClusterFeatureServiceGetRequest) MustSend() *ClusterFeatureServiceGetRe } } -// // Provides the information about the a cluster feature supported by a cluster level. // For example, to find details of the cluster feature `456` for cluster level 4.1, send a request like this: // [source] @@ -15307,10 +14616,11 @@ func (p *ClusterFeatureServiceGetRequest) MustSend() *ClusterFeatureServiceGetRe // [source,xml] // ---- // -// libgfapi_supported +// +// libgfapi_supported +// // // ---- -// type ClusterFeatureServiceGetResponse struct { feature *ClusterFeature } @@ -15329,7 +14639,6 @@ func (p *ClusterFeatureServiceGetResponse) MustFeature() *ClusterFeature { return p.feature } -// // Provides the information about the a cluster feature supported by a cluster level. // For example, to find details of the cluster feature `456` for cluster level 4.1, send a request like this: // [source] @@ -15340,17 +14649,16 @@ func (p *ClusterFeatureServiceGetResponse) MustFeature() *ClusterFeature { // [source,xml] // ---- // -// libgfapi_supported +// +// libgfapi_supported +// // // ---- -// func (p *ClusterFeatureService) Get() *ClusterFeatureServiceGetRequest { return &ClusterFeatureServiceGetRequest{ClusterFeatureService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *ClusterFeatureService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -15362,9 +14670,7 @@ func (op *ClusterFeatureService) String() string { return fmt.Sprintf("ClusterFeatureService:%s", op.path) } -// // Provides information about the cluster features that are supported by a cluster level. -// type ClusterFeaturesService struct { BaseService } @@ -15376,7 +14682,6 @@ func NewClusterFeaturesService(connection *Connection, path string) *ClusterFeat return &result } -// // Lists the cluster features supported by the cluster level. // [source] // ---- @@ -15386,13 +14691,14 @@ func NewClusterFeaturesService(connection *Connection, path string) *ClusterFeat // [source,xml] // ---- // -// -// test_feature -// -// ... +// +// +// test_feature +// +// ... +// // // ---- -// type ClusterFeaturesServiceListRequest struct { ClusterFeaturesService *ClusterFeaturesService header map[string]string @@ -15501,7 +14807,6 @@ func (p *ClusterFeaturesServiceListRequest) MustSend() *ClusterFeaturesServiceLi } } -// // Lists the cluster features supported by the cluster level. // [source] // ---- @@ -15511,13 +14816,14 @@ func (p *ClusterFeaturesServiceListRequest) MustSend() *ClusterFeaturesServiceLi // [source,xml] // ---- // -// -// test_feature -// -// ... +// +// +// test_feature +// +// ... +// // // ---- -// type ClusterFeaturesServiceListResponse struct { features *ClusterFeatureSlice } @@ -15536,7 +14842,6 @@ func (p *ClusterFeaturesServiceListResponse) MustFeatures() *ClusterFeatureSlice return p.features } -// // Lists the cluster features supported by the cluster level. // [source] // ---- @@ -15546,27 +14851,24 @@ func (p *ClusterFeaturesServiceListResponse) MustFeatures() *ClusterFeatureSlice // [source,xml] // ---- // -// -// test_feature -// -// ... +// +// +// test_feature +// +// ... +// // // ---- -// func (p *ClusterFeaturesService) List() *ClusterFeaturesServiceListRequest { return &ClusterFeaturesServiceListRequest{ClusterFeaturesService: p} } -// // Reference to the service that provides information about a specific feature. -// func (op *ClusterFeaturesService) FeatureService(id string) *ClusterFeatureService { return NewClusterFeatureService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *ClusterFeaturesService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -15582,10 +14884,8 @@ func (op *ClusterFeaturesService) String() string { return fmt.Sprintf("ClusterFeaturesService:%s", op.path) } -// // Provides information about a specific cluster level. See the <> service for // more information. -// type ClusterLevelService struct { BaseService } @@ -15597,7 +14897,6 @@ func NewClusterLevelService(connection *Connection, path string) *ClusterLevelSe return &result } -// // Provides the information about the capabilities of the specific cluster level managed by this service. // For example, to find what CPU types are supported by level 3.6 you can send a request like this: // [source] @@ -15609,24 +14908,25 @@ func NewClusterLevelService(connection *Connection, path string) *ClusterLevelSe // [source,xml] // ---- // -// -// -// Intel Nehalem Family -// 3 -// x86_64 -// -// ... -// -// -// -// create_vm -// false -// -// ... -// +// +// +// +// Intel Nehalem Family +// 3 +// x86_64 +// +// ... +// +// +// +// create_vm +// false +// +// ... +// +// // // ---- -// type ClusterLevelServiceGetRequest struct { ClusterLevelService *ClusterLevelService header map[string]string @@ -15735,7 +15035,6 @@ func (p *ClusterLevelServiceGetRequest) MustSend() *ClusterLevelServiceGetRespon } } -// // Provides the information about the capabilities of the specific cluster level managed by this service. // For example, to find what CPU types are supported by level 3.6 you can send a request like this: // [source] @@ -15747,24 +15046,25 @@ func (p *ClusterLevelServiceGetRequest) MustSend() *ClusterLevelServiceGetRespon // [source,xml] // ---- // -// -// -// Intel Nehalem Family -// 3 -// x86_64 -// -// ... -// -// -// -// create_vm -// false -// -// ... -// +// +// +// +// Intel Nehalem Family +// 3 +// x86_64 +// +// ... +// +// +// +// create_vm +// false +// +// ... +// +// // // ---- -// type ClusterLevelServiceGetResponse struct { level *ClusterLevel } @@ -15783,7 +15083,6 @@ func (p *ClusterLevelServiceGetResponse) MustLevel() *ClusterLevel { return p.level } -// // Provides the information about the capabilities of the specific cluster level managed by this service. // For example, to find what CPU types are supported by level 3.6 you can send a request like this: // [source] @@ -15795,38 +15094,35 @@ func (p *ClusterLevelServiceGetResponse) MustLevel() *ClusterLevel { // [source,xml] // ---- // -// -// -// Intel Nehalem Family -// 3 -// x86_64 -// -// ... -// -// -// -// create_vm -// false -// -// ... -// +// +// +// +// Intel Nehalem Family +// 3 +// x86_64 +// +// ... +// +// +// +// create_vm +// false +// +// ... +// +// // // ---- -// func (p *ClusterLevelService) Get() *ClusterLevelServiceGetRequest { return &ClusterLevelServiceGetRequest{ClusterLevelService: p} } -// // Reference to the service that manages the collection of supported features for this cluster level. -// func (op *ClusterLevelService) ClusterFeaturesService() *ClusterFeaturesService { return NewClusterFeaturesService(op.connection, fmt.Sprintf("%s/clusterfeatures", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *ClusterLevelService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -15844,11 +15140,9 @@ func (op *ClusterLevelService) String() string { return fmt.Sprintf("ClusterLevelService:%s", op.path) } -// // Provides information about the capabilities of different cluster levels supported by the engine. Version 4.0 of the // engine supports levels 4.0 and 3.6. Each of these levels support different sets of CPU types, for example. This // service provides that information. -// type ClusterLevelsService struct { BaseService } @@ -15860,7 +15154,6 @@ func NewClusterLevelsService(connection *Connection, path string) *ClusterLevels return &result } -// // Lists the cluster levels supported by the system. // [source] // ---- @@ -15870,14 +15163,15 @@ func NewClusterLevelsService(connection *Connection, path string) *ClusterLevels // [source,xml] // ---- // -// -// ... -// -// ... +// +// +// ... +// +// ... +// // // ---- // The order of the returned cluster levels isn't guaranteed. -// type ClusterLevelsServiceListRequest struct { ClusterLevelsService *ClusterLevelsService header map[string]string @@ -15986,7 +15280,6 @@ func (p *ClusterLevelsServiceListRequest) MustSend() *ClusterLevelsServiceListRe } } -// // Lists the cluster levels supported by the system. // [source] // ---- @@ -15996,14 +15289,15 @@ func (p *ClusterLevelsServiceListRequest) MustSend() *ClusterLevelsServiceListRe // [source,xml] // ---- // -// -// ... -// -// ... +// +// +// ... +// +// ... +// // // ---- // The order of the returned cluster levels isn't guaranteed. -// type ClusterLevelsServiceListResponse struct { levels *ClusterLevelSlice } @@ -16022,7 +15316,6 @@ func (p *ClusterLevelsServiceListResponse) MustLevels() *ClusterLevelSlice { return p.levels } -// // Lists the cluster levels supported by the system. // [source] // ---- @@ -16032,28 +15325,25 @@ func (p *ClusterLevelsServiceListResponse) MustLevels() *ClusterLevelSlice { // [source,xml] // ---- // -// -// ... -// -// ... +// +// +// ... +// +// ... +// // // ---- // The order of the returned cluster levels isn't guaranteed. -// func (p *ClusterLevelsService) List() *ClusterLevelsServiceListRequest { return &ClusterLevelsServiceListRequest{ClusterLevelsService: p} } -// // Reference to the service that provides information about an specific cluster level. -// func (op *ClusterLevelsService) LevelService(id string) *ClusterLevelService { return NewClusterLevelService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *ClusterLevelsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -16069,9 +15359,7 @@ func (op *ClusterLevelsService) String() string { return fmt.Sprintf("ClusterLevelsService:%s", op.path) } -// // A service to manage a specific cluster network. -// type ClusterNetworkService struct { BaseService } @@ -16083,9 +15371,7 @@ func NewClusterNetworkService(connection *Connection, path string) *ClusterNetwo return &result } -// // Retrieves the cluster network details. -// type ClusterNetworkServiceGetRequest struct { ClusterNetworkService *ClusterNetworkService header map[string]string @@ -16194,9 +15480,7 @@ func (p *ClusterNetworkServiceGetRequest) MustSend() *ClusterNetworkServiceGetRe } } -// // Retrieves the cluster network details. -// type ClusterNetworkServiceGetResponse struct { network *Network } @@ -16215,16 +15499,12 @@ func (p *ClusterNetworkServiceGetResponse) MustNetwork() *Network { return p.network } -// // Retrieves the cluster network details. -// func (p *ClusterNetworkService) Get() *ClusterNetworkServiceGetRequest { return &ClusterNetworkServiceGetRequest{ClusterNetworkService: p} } -// // Unassigns the network from a cluster. -// type ClusterNetworkServiceRemoveRequest struct { ClusterNetworkService *ClusterNetworkService header map[string]string @@ -16318,22 +15598,16 @@ func (p *ClusterNetworkServiceRemoveRequest) MustSend() *ClusterNetworkServiceRe } } -// // Unassigns the network from a cluster. -// type ClusterNetworkServiceRemoveResponse struct { } -// // Unassigns the network from a cluster. -// func (p *ClusterNetworkService) Remove() *ClusterNetworkServiceRemoveRequest { return &ClusterNetworkServiceRemoveRequest{ClusterNetworkService: p} } -// // Updates the network in the cluster. -// type ClusterNetworkServiceUpdateRequest struct { ClusterNetworkService *ClusterNetworkService header map[string]string @@ -16445,9 +15719,7 @@ func (p *ClusterNetworkServiceUpdateRequest) MustSend() *ClusterNetworkServiceUp } } -// // Updates the network in the cluster. -// type ClusterNetworkServiceUpdateResponse struct { network *Network } @@ -16466,16 +15738,12 @@ func (p *ClusterNetworkServiceUpdateResponse) MustNetwork() *Network { return p.network } -// // Updates the network in the cluster. -// func (p *ClusterNetworkService) Update() *ClusterNetworkServiceUpdateRequest { return &ClusterNetworkServiceUpdateRequest{ClusterNetworkService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *ClusterNetworkService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -16487,9 +15755,7 @@ func (op *ClusterNetworkService) String() string { return fmt.Sprintf("ClusterNetworkService:%s", op.path) } -// // A service to manage cluster networks. -// type ClusterNetworksService struct { BaseService } @@ -16501,7 +15767,6 @@ func NewClusterNetworksService(connection *Connection, path string) *ClusterNetw return &result } -// // Assigns the network to a cluster. // Post a request like in the example below to assign the network to a cluster: // [source] @@ -16513,7 +15778,6 @@ func NewClusterNetworksService(connection *Connection, path string) *ClusterNetw // ---- // // ---- -// type ClusterNetworksServiceAddRequest struct { ClusterNetworksService *ClusterNetworksService header map[string]string @@ -16625,7 +15889,6 @@ func (p *ClusterNetworksServiceAddRequest) MustSend() *ClusterNetworksServiceAdd } } -// // Assigns the network to a cluster. // Post a request like in the example below to assign the network to a cluster: // [source] @@ -16637,7 +15900,6 @@ func (p *ClusterNetworksServiceAddRequest) MustSend() *ClusterNetworksServiceAdd // ---- // // ---- -// type ClusterNetworksServiceAddResponse struct { network *Network } @@ -16656,7 +15918,6 @@ func (p *ClusterNetworksServiceAddResponse) MustNetwork() *Network { return p.network } -// // Assigns the network to a cluster. // Post a request like in the example below to assign the network to a cluster: // [source] @@ -16668,15 +15929,12 @@ func (p *ClusterNetworksServiceAddResponse) MustNetwork() *Network { // ---- // // ---- -// func (p *ClusterNetworksService) Add() *ClusterNetworksServiceAddRequest { return &ClusterNetworksServiceAddRequest{ClusterNetworksService: p} } -// // Lists the networks that are assigned to the cluster. // The order of the returned clusters isn't guaranteed. -// type ClusterNetworksServiceListRequest struct { ClusterNetworksService *ClusterNetworksService header map[string]string @@ -16795,10 +16053,8 @@ func (p *ClusterNetworksServiceListRequest) MustSend() *ClusterNetworksServiceLi } } -// // Lists the networks that are assigned to the cluster. // The order of the returned clusters isn't guaranteed. -// type ClusterNetworksServiceListResponse struct { networks *NetworkSlice } @@ -16817,24 +16073,18 @@ func (p *ClusterNetworksServiceListResponse) MustNetworks() *NetworkSlice { return p.networks } -// // Lists the networks that are assigned to the cluster. // The order of the returned clusters isn't guaranteed. -// func (p *ClusterNetworksService) List() *ClusterNetworksServiceListRequest { return &ClusterNetworksServiceListRequest{ClusterNetworksService: p} } -// // Access the cluster network service that manages the cluster network specified by an ID. -// func (op *ClusterNetworksService) NetworkService(id string) *ClusterNetworkService { return NewClusterNetworkService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *ClusterNetworksService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -16850,9 +16100,7 @@ func (op *ClusterNetworksService) String() string { return fmt.Sprintf("ClusterNetworksService:%s", op.path) } -// // A service to manage a specific cluster. -// type ClusterService struct { BaseService } @@ -16864,7 +16112,6 @@ func NewClusterService(connection *Connection, path string) *ClusterService { return &result } -// // Gets information about the cluster. // An example of getting a cluster: // [source] @@ -16874,72 +16121,73 @@ func NewClusterService(connection *Connection, path string) *ClusterService { // [source,xml] // ---- // -// -// -// -// Default -// The default server cluster -// -// -// -// -// -// -// false -// -// x86_64 -// Intel Nehalem Family -// -// -// migrate -// -// -// true -// -// false -// 50 -// -// -// false -// -// -// false -// false -// -// true -// true -// -// -// -// 100 -// -// -// true -// -// -// -// inherit -// -// auto -// -// inherit -// -// -// random -// -// -// false -// false -// false -// -// 4 -// 0 -// -// true -// +// +// +// +// +// Default +// The default server cluster +// +// +// +// +// +// +// false +// +// x86_64 +// Intel Nehalem Family +// +// +// migrate +// +// +// true +// +// false +// 50 +// +// +// false +// +// +// false +// false +// +// true +// true +// +// +// +// 100 +// +// +// true +// +// +// +// inherit +// +// auto +// +// inherit +// +// +// random +// +// +// false +// false +// false +// +// 4 +// 0 +// +// true +// +// // // ---- -// type ClusterServiceGetRequest struct { ClusterService *ClusterService header map[string]string @@ -17058,7 +16306,6 @@ func (p *ClusterServiceGetRequest) MustSend() *ClusterServiceGetResponse { } } -// // Gets information about the cluster. // An example of getting a cluster: // [source] @@ -17068,72 +16315,73 @@ func (p *ClusterServiceGetRequest) MustSend() *ClusterServiceGetResponse { // [source,xml] // ---- // -// -// -// -// Default -// The default server cluster -// -// -// -// -// -// -// false -// -// x86_64 -// Intel Nehalem Family -// -// -// migrate -// -// -// true -// -// false -// 50 -// -// -// false -// -// -// false -// false -// -// true -// true -// -// -// -// 100 -// -// -// true -// -// -// -// inherit -// -// auto -// -// inherit -// -// -// random -// -// -// false -// false -// false -// -// 4 -// 0 -// -// true -// +// +// +// +// +// Default +// The default server cluster +// +// +// +// +// +// +// false +// +// x86_64 +// Intel Nehalem Family +// +// +// migrate +// +// +// true +// +// false +// 50 +// +// +// false +// +// +// false +// false +// +// true +// true +// +// +// +// 100 +// +// +// true +// +// +// +// inherit +// +// auto +// +// inherit +// +// +// random +// +// +// false +// false +// false +// +// 4 +// 0 +// +// true +// +// // // ---- -// type ClusterServiceGetResponse struct { cluster *Cluster } @@ -17152,7 +16400,6 @@ func (p *ClusterServiceGetResponse) MustCluster() *Cluster { return p.cluster } -// // Gets information about the cluster. // An example of getting a cluster: // [source] @@ -17162,77 +16409,77 @@ func (p *ClusterServiceGetResponse) MustCluster() *Cluster { // [source,xml] // ---- // -// -// -// -// Default -// The default server cluster -// -// -// -// -// -// -// false -// -// x86_64 -// Intel Nehalem Family -// -// -// migrate -// -// -// true -// -// false -// 50 -// -// -// false -// -// -// false -// false -// -// true -// true -// -// -// -// 100 -// -// -// true -// -// -// -// inherit -// -// auto -// -// inherit -// -// -// random -// -// -// false -// false -// false -// -// 4 -// 0 -// -// true -// +// +// +// +// +// Default +// The default server cluster +// +// +// +// +// +// +// false +// +// x86_64 +// Intel Nehalem Family +// +// +// migrate +// +// +// true +// +// false +// 50 +// +// +// false +// +// +// false +// false +// +// true +// true +// +// +// +// 100 +// +// +// true +// +// +// +// inherit +// +// auto +// +// inherit +// +// +// random +// +// +// false +// false +// false +// +// 4 +// 0 +// +// true +// +// // // ---- -// func (p *ClusterService) Get() *ClusterServiceGetRequest { return &ClusterServiceGetRequest{ClusterService: p} } -// // Refresh the Gluster heal info for all volumes in cluster. // For example, Cluster `123`, send a request like // this: @@ -17240,7 +16487,6 @@ func (p *ClusterService) Get() *ClusterServiceGetRequest { // ---- // POST /ovirt-engine/api/clusters/123/refreshglusterhealstatus // ---- -// type ClusterServiceRefreshGlusterHealStatusRequest struct { ClusterService *ClusterService header map[string]string @@ -17344,7 +16590,6 @@ func (p *ClusterServiceRefreshGlusterHealStatusRequest) MustSend() *ClusterServi } } -// // Refresh the Gluster heal info for all volumes in cluster. // For example, Cluster `123`, send a request like // this: @@ -17352,11 +16597,9 @@ func (p *ClusterServiceRefreshGlusterHealStatusRequest) MustSend() *ClusterServi // ---- // POST /ovirt-engine/api/clusters/123/refreshglusterhealstatus // ---- -// type ClusterServiceRefreshGlusterHealStatusResponse struct { } -// // Refresh the Gluster heal info for all volumes in cluster. // For example, Cluster `123`, send a request like // this: @@ -17364,18 +16607,15 @@ type ClusterServiceRefreshGlusterHealStatusResponse struct { // ---- // POST /ovirt-engine/api/clusters/123/refreshglusterhealstatus // ---- -// func (p *ClusterService) RefreshGlusterHealStatus() *ClusterServiceRefreshGlusterHealStatusRequest { return &ClusterServiceRefreshGlusterHealStatusRequest{ClusterService: p} } -// // Removes the cluster from the system. // [source] // ---- // DELETE /ovirt-engine/api/clusters/00000000-0000-0000-0000-000000000000 // ---- -// type ClusterServiceRemoveRequest struct { ClusterService *ClusterService header map[string]string @@ -17479,29 +16719,23 @@ func (p *ClusterServiceRemoveRequest) MustSend() *ClusterServiceRemoveResponse { } } -// // Removes the cluster from the system. // [source] // ---- // DELETE /ovirt-engine/api/clusters/00000000-0000-0000-0000-000000000000 // ---- -// type ClusterServiceRemoveResponse struct { } -// // Removes the cluster from the system. // [source] // ---- // DELETE /ovirt-engine/api/clusters/00000000-0000-0000-0000-000000000000 // ---- -// func (p *ClusterService) Remove() *ClusterServiceRemoveRequest { return &ClusterServiceRemoveRequest{ClusterService: p} } -// -// type ClusterServiceResetEmulatedMachineRequest struct { ClusterService *ClusterService header map[string]string @@ -17614,18 +16848,13 @@ func (p *ClusterServiceResetEmulatedMachineRequest) MustSend() *ClusterServiceRe } } -// -// type ClusterServiceResetEmulatedMachineResponse struct { } -// -// func (p *ClusterService) ResetEmulatedMachine() *ClusterServiceResetEmulatedMachineRequest { return &ClusterServiceResetEmulatedMachineRequest{ClusterService: p} } -// // Synchronizes all networks on the cluster. // [source] // ---- @@ -17636,7 +16865,6 @@ func (p *ClusterService) ResetEmulatedMachine() *ClusterServiceResetEmulatedMach // ---- // // ---- -// type ClusterServiceSyncAllNetworksRequest struct { ClusterService *ClusterService header map[string]string @@ -17749,7 +16977,6 @@ func (p *ClusterServiceSyncAllNetworksRequest) MustSend() *ClusterServiceSyncAll } } -// // Synchronizes all networks on the cluster. // [source] // ---- @@ -17760,11 +16987,9 @@ func (p *ClusterServiceSyncAllNetworksRequest) MustSend() *ClusterServiceSyncAll // ---- // // ---- -// type ClusterServiceSyncAllNetworksResponse struct { } -// // Synchronizes all networks on the cluster. // [source] // ---- @@ -17775,12 +17000,10 @@ type ClusterServiceSyncAllNetworksResponse struct { // ---- // // ---- -// func (p *ClusterService) SyncAllNetworks() *ClusterServiceSyncAllNetworksRequest { return &ClusterServiceSyncAllNetworksRequest{ClusterService: p} } -// // Updates information about the cluster. // Only the specified fields are updated; others remain unchanged. // For example, to update the cluster's CPU: @@ -17792,12 +17015,13 @@ func (p *ClusterService) SyncAllNetworks() *ClusterServiceSyncAllNetworksRequest // [source,xml] // ---- // -// -// Intel Haswell-noTSX Family -// +// +// +// Intel Haswell-noTSX Family +// +// // // ---- -// type ClusterServiceUpdateRequest struct { ClusterService *ClusterService header map[string]string @@ -17919,7 +17143,6 @@ func (p *ClusterServiceUpdateRequest) MustSend() *ClusterServiceUpdateResponse { } } -// // Updates information about the cluster. // Only the specified fields are updated; others remain unchanged. // For example, to update the cluster's CPU: @@ -17931,12 +17154,13 @@ func (p *ClusterServiceUpdateRequest) MustSend() *ClusterServiceUpdateResponse { // [source,xml] // ---- // -// -// Intel Haswell-noTSX Family -// +// +// +// Intel Haswell-noTSX Family +// +// // // ---- -// type ClusterServiceUpdateResponse struct { cluster *Cluster } @@ -17955,7 +17179,6 @@ func (p *ClusterServiceUpdateResponse) MustCluster() *Cluster { return p.cluster } -// // Updates information about the cluster. // Only the specified fields are updated; others remain unchanged. // For example, to update the cluster's CPU: @@ -17967,17 +17190,17 @@ func (p *ClusterServiceUpdateResponse) MustCluster() *Cluster { // [source,xml] // ---- // -// -// Intel Haswell-noTSX Family -// +// +// +// Intel Haswell-noTSX Family +// +// // // ---- -// func (p *ClusterService) Update() *ClusterServiceUpdateRequest { return &ClusterServiceUpdateRequest{ClusterService: p} } -// // Start or finish upgrade process for the cluster based on the action value. This action marks the cluster for // upgrade or clears the upgrade running flag on the cluster based on the action value which takes values of // start or stop. @@ -17989,12 +17212,13 @@ func (p *ClusterService) Update() *ClusterServiceUpdateRequest { // [source,xml] // ---- // -// -// start -// +// +// +// start +// +// // // ---- -// type ClusterServiceUpgradeRequest struct { ClusterService *ClusterService header map[string]string @@ -18116,7 +17340,6 @@ func (p *ClusterServiceUpgradeRequest) MustSend() *ClusterServiceUpgradeResponse } } -// // Start or finish upgrade process for the cluster based on the action value. This action marks the cluster for // upgrade or clears the upgrade running flag on the cluster based on the action value which takes values of // start or stop. @@ -18128,16 +17351,16 @@ func (p *ClusterServiceUpgradeRequest) MustSend() *ClusterServiceUpgradeResponse // [source,xml] // ---- // -// -// start -// +// +// +// start +// +// // // ---- -// type ClusterServiceUpgradeResponse struct { } -// // Start or finish upgrade process for the cluster based on the action value. This action marks the cluster for // upgrade or clears the upgrade running flag on the cluster based on the action value which takes values of // start or stop. @@ -18149,82 +17372,63 @@ type ClusterServiceUpgradeResponse struct { // [source,xml] // ---- // -// -// start -// +// +// +// start +// +// // // ---- -// func (p *ClusterService) Upgrade() *ClusterServiceUpgradeRequest { return &ClusterServiceUpgradeRequest{ClusterService: p} } -// // A reference to the service that manages affinity groups. -// func (op *ClusterService) AffinityGroupsService() *AffinityGroupsService { return NewAffinityGroupsService(op.connection, fmt.Sprintf("%s/affinitygroups", op.path)) } -// // A reference to the service that manages assigned CPU profiles for the cluster. -// func (op *ClusterService) CpuProfilesService() *AssignedCpuProfilesService { return NewAssignedCpuProfilesService(op.connection, fmt.Sprintf("%s/cpuprofiles", op.path)) } -// // A reference to the service that manages the collection of enabled features for the cluster. -// func (op *ClusterService) EnabledFeaturesService() *ClusterEnabledFeaturesService { return NewClusterEnabledFeaturesService(op.connection, fmt.Sprintf("%s/enabledfeatures", op.path)) } -// // A reference to the service that manages the collection of external network providers. -// func (op *ClusterService) ExternalNetworkProvidersService() *ClusterExternalProvidersService { return NewClusterExternalProvidersService(op.connection, fmt.Sprintf("%s/externalnetworkproviders", op.path)) } -// // A reference to the service that manages the Gluster hooks for the cluster. -// func (op *ClusterService) GlusterHooksService() *GlusterHooksService { return NewGlusterHooksService(op.connection, fmt.Sprintf("%s/glusterhooks", op.path)) } -// // A reference to the service that manages Gluster volumes for the cluster. -// func (op *ClusterService) GlusterVolumesService() *GlusterVolumesService { return NewGlusterVolumesService(op.connection, fmt.Sprintf("%s/glustervolumes", op.path)) } -// // A sub-collection with all the supported network filters for the cluster. -// func (op *ClusterService) NetworkFiltersService() *NetworkFiltersService { return NewNetworkFiltersService(op.connection, fmt.Sprintf("%s/networkfilters", op.path)) } -// // A reference to the service that manages assigned networks for the cluster. -// func (op *ClusterService) NetworksService() *ClusterNetworksService { return NewClusterNetworksService(op.connection, fmt.Sprintf("%s/networks", op.path)) } -// // A reference to permissions. -// func (op *ClusterService) PermissionsService() *AssignedPermissionsService { return NewAssignedPermissionsService(op.connection, fmt.Sprintf("%s/permissions", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *ClusterService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -18290,9 +17494,7 @@ func (op *ClusterService) String() string { return fmt.Sprintf("ClusterService:%s", op.path) } -// // A service to manage clusters. -// type ClustersService struct { BaseService } @@ -18304,7 +17506,6 @@ func NewClustersService(connection *Connection, path string) *ClustersService { return &result } -// // Creates a new cluster. // This requires the `name`, `cpu.type`, and `data_center` attributes. Identify the data center with either the `id` // or `name` attribute. @@ -18316,11 +17517,13 @@ func NewClustersService(connection *Connection, path string) *ClustersService { // [source,xml] // ---- // -// mycluster -// -// Intel Nehalem Family -// -// +// +// mycluster +// +// Intel Nehalem Family +// +// +// // // ---- // To create a cluster with an external network provider to be deployed on @@ -18333,17 +17536,18 @@ func NewClustersService(connection *Connection, path string) *ClustersService { // [source,xml] // ---- // -// mycluster -// -// Intel Nehalem Family -// -// -// -// -// +// +// mycluster +// +// Intel Nehalem Family +// +// +// +// +// +// // // ---- -// type ClustersServiceAddRequest struct { ClustersService *ClustersService header map[string]string @@ -18455,7 +17659,6 @@ func (p *ClustersServiceAddRequest) MustSend() *ClustersServiceAddResponse { } } -// // Creates a new cluster. // This requires the `name`, `cpu.type`, and `data_center` attributes. Identify the data center with either the `id` // or `name` attribute. @@ -18467,11 +17670,13 @@ func (p *ClustersServiceAddRequest) MustSend() *ClustersServiceAddResponse { // [source,xml] // ---- // -// mycluster -// -// Intel Nehalem Family -// -// +// +// mycluster +// +// Intel Nehalem Family +// +// +// // // ---- // To create a cluster with an external network provider to be deployed on @@ -18484,17 +17689,18 @@ func (p *ClustersServiceAddRequest) MustSend() *ClustersServiceAddResponse { // [source,xml] // ---- // -// mycluster -// -// Intel Nehalem Family -// -// -// -// -// +// +// mycluster +// +// Intel Nehalem Family +// +// +// +// +// +// // // ---- -// type ClustersServiceAddResponse struct { cluster *Cluster } @@ -18513,7 +17719,6 @@ func (p *ClustersServiceAddResponse) MustCluster() *Cluster { return p.cluster } -// // Creates a new cluster. // This requires the `name`, `cpu.type`, and `data_center` attributes. Identify the data center with either the `id` // or `name` attribute. @@ -18525,11 +17730,13 @@ func (p *ClustersServiceAddResponse) MustCluster() *Cluster { // [source,xml] // ---- // -// mycluster -// -// Intel Nehalem Family -// -// +// +// mycluster +// +// Intel Nehalem Family +// +// +// // // ---- // To create a cluster with an external network provider to be deployed on @@ -18542,26 +17749,25 @@ func (p *ClustersServiceAddResponse) MustCluster() *Cluster { // [source,xml] // ---- // -// mycluster -// -// Intel Nehalem Family -// -// -// -// -// +// +// mycluster +// +// Intel Nehalem Family +// +// +// +// +// +// // // ---- -// func (p *ClustersService) Add() *ClustersServiceAddRequest { return &ClustersServiceAddRequest{ClustersService: p} } -// // Returns the list of clusters of the system. // The order of the returned clusters is guaranteed only if the `sortby` clause is included in the // `search` parameter. -// type ClustersServiceListRequest struct { ClustersService *ClustersService header map[string]string @@ -18710,11 +17916,9 @@ func (p *ClustersServiceListRequest) MustSend() *ClustersServiceListResponse { } } -// // Returns the list of clusters of the system. // The order of the returned clusters is guaranteed only if the `sortby` clause is included in the // `search` parameter. -// type ClustersServiceListResponse struct { clusters *ClusterSlice } @@ -18733,25 +17937,19 @@ func (p *ClustersServiceListResponse) MustClusters() *ClusterSlice { return p.clusters } -// // Returns the list of clusters of the system. // The order of the returned clusters is guaranteed only if the `sortby` clause is included in the // `search` parameter. -// func (p *ClustersService) List() *ClustersServiceListRequest { return &ClustersServiceListRequest{ClustersService: p} } -// // A reference to the service that manages a specific cluster. -// func (op *ClustersService) ClusterService(id string) *ClusterService { return NewClusterService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *ClustersService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -18767,8 +17965,6 @@ func (op *ClustersService) String() string { return fmt.Sprintf("ClustersService:%s", op.path) } -// -// type CopyableService struct { BaseService } @@ -18780,8 +17976,6 @@ func NewCopyableService(connection *Connection, path string) *CopyableService { return &result } -// -// type CopyableServiceCopyRequest struct { CopyableService *CopyableService header map[string]string @@ -18894,20 +18088,14 @@ func (p *CopyableServiceCopyRequest) MustSend() *CopyableServiceCopyResponse { } } -// -// type CopyableServiceCopyResponse struct { } -// -// func (p *CopyableService) Copy() *CopyableServiceCopyRequest { return &CopyableServiceCopyRequest{CopyableService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *CopyableService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -18919,8 +18107,6 @@ func (op *CopyableService) String() string { return fmt.Sprintf("CopyableService:%s", op.path) } -// -// type CpuProfileService struct { BaseService } @@ -18932,8 +18118,6 @@ func NewCpuProfileService(connection *Connection, path string) *CpuProfileServic return &result } -// -// type CpuProfileServiceGetRequest struct { CpuProfileService *CpuProfileService header map[string]string @@ -19042,8 +18226,6 @@ func (p *CpuProfileServiceGetRequest) MustSend() *CpuProfileServiceGetResponse { } } -// -// type CpuProfileServiceGetResponse struct { profile *CpuProfile } @@ -19062,14 +18244,10 @@ func (p *CpuProfileServiceGetResponse) MustProfile() *CpuProfile { return p.profile } -// -// func (p *CpuProfileService) Get() *CpuProfileServiceGetRequest { return &CpuProfileServiceGetRequest{CpuProfileService: p} } -// -// type CpuProfileServiceRemoveRequest struct { CpuProfileService *CpuProfileService header map[string]string @@ -19173,20 +18351,14 @@ func (p *CpuProfileServiceRemoveRequest) MustSend() *CpuProfileServiceRemoveResp } } -// -// type CpuProfileServiceRemoveResponse struct { } -// -// func (p *CpuProfileService) Remove() *CpuProfileServiceRemoveRequest { return &CpuProfileServiceRemoveRequest{CpuProfileService: p} } -// // Update the specified cpu profile in the system. -// type CpuProfileServiceUpdateRequest struct { CpuProfileService *CpuProfileService header map[string]string @@ -19308,9 +18480,7 @@ func (p *CpuProfileServiceUpdateRequest) MustSend() *CpuProfileServiceUpdateResp } } -// // Update the specified cpu profile in the system. -// type CpuProfileServiceUpdateResponse struct { profile *CpuProfile } @@ -19329,22 +18499,16 @@ func (p *CpuProfileServiceUpdateResponse) MustProfile() *CpuProfile { return p.profile } -// // Update the specified cpu profile in the system. -// func (p *CpuProfileService) Update() *CpuProfileServiceUpdateRequest { return &CpuProfileServiceUpdateRequest{CpuProfileService: p} } -// -// func (op *CpuProfileService) PermissionsService() *AssignedPermissionsService { return NewAssignedPermissionsService(op.connection, fmt.Sprintf("%s/permissions", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *CpuProfileService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -19362,8 +18526,6 @@ func (op *CpuProfileService) String() string { return fmt.Sprintf("CpuProfileService:%s", op.path) } -// -// type CpuProfilesService struct { BaseService } @@ -19375,9 +18537,7 @@ func NewCpuProfilesService(connection *Connection, path string) *CpuProfilesServ return &result } -// // Add a new cpu profile to the system. -// type CpuProfilesServiceAddRequest struct { CpuProfilesService *CpuProfilesService header map[string]string @@ -19489,9 +18649,7 @@ func (p *CpuProfilesServiceAddRequest) MustSend() *CpuProfilesServiceAddResponse } } -// // Add a new cpu profile to the system. -// type CpuProfilesServiceAddResponse struct { profile *CpuProfile } @@ -19510,17 +18668,13 @@ func (p *CpuProfilesServiceAddResponse) MustProfile() *CpuProfile { return p.profile } -// // Add a new cpu profile to the system. -// func (p *CpuProfilesService) Add() *CpuProfilesServiceAddRequest { return &CpuProfilesServiceAddRequest{CpuProfilesService: p} } -// // Returns the list of CPU profiles of the system. // The order of the returned list of CPU profiles is random. -// type CpuProfilesServiceListRequest struct { CpuProfilesService *CpuProfilesService header map[string]string @@ -19639,10 +18793,8 @@ func (p *CpuProfilesServiceListRequest) MustSend() *CpuProfilesServiceListRespon } } -// // Returns the list of CPU profiles of the system. // The order of the returned list of CPU profiles is random. -// type CpuProfilesServiceListResponse struct { profile *CpuProfileSlice } @@ -19661,23 +18813,17 @@ func (p *CpuProfilesServiceListResponse) MustProfile() *CpuProfileSlice { return p.profile } -// // Returns the list of CPU profiles of the system. // The order of the returned list of CPU profiles is random. -// func (p *CpuProfilesService) List() *CpuProfilesServiceListRequest { return &CpuProfilesServiceListRequest{CpuProfilesService: p} } -// -// func (op *CpuProfilesService) ProfileService(id string) *CpuProfileService { return NewCpuProfileService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *CpuProfilesService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -19693,9 +18839,7 @@ func (op *CpuProfilesService) String() string { return fmt.Sprintf("CpuProfilesService:%s", op.path) } -// // A service to manage a specific data center network. -// type DataCenterNetworkService struct { BaseService } @@ -19707,9 +18851,7 @@ func NewDataCenterNetworkService(connection *Connection, path string) *DataCente return &result } -// // Retrieves the data center network details. -// type DataCenterNetworkServiceGetRequest struct { DataCenterNetworkService *DataCenterNetworkService header map[string]string @@ -19818,9 +18960,7 @@ func (p *DataCenterNetworkServiceGetRequest) MustSend() *DataCenterNetworkServic } } -// // Retrieves the data center network details. -// type DataCenterNetworkServiceGetResponse struct { network *Network } @@ -19839,16 +18979,12 @@ func (p *DataCenterNetworkServiceGetResponse) MustNetwork() *Network { return p.network } -// // Retrieves the data center network details. -// func (p *DataCenterNetworkService) Get() *DataCenterNetworkServiceGetRequest { return &DataCenterNetworkServiceGetRequest{DataCenterNetworkService: p} } -// // Removes the network. -// type DataCenterNetworkServiceRemoveRequest struct { DataCenterNetworkService *DataCenterNetworkService header map[string]string @@ -19942,22 +19078,16 @@ func (p *DataCenterNetworkServiceRemoveRequest) MustSend() *DataCenterNetworkSer } } -// // Removes the network. -// type DataCenterNetworkServiceRemoveResponse struct { } -// // Removes the network. -// func (p *DataCenterNetworkService) Remove() *DataCenterNetworkServiceRemoveRequest { return &DataCenterNetworkServiceRemoveRequest{DataCenterNetworkService: p} } -// // Updates the network in the data center. -// type DataCenterNetworkServiceUpdateRequest struct { DataCenterNetworkService *DataCenterNetworkService header map[string]string @@ -20069,9 +19199,7 @@ func (p *DataCenterNetworkServiceUpdateRequest) MustSend() *DataCenterNetworkSer } } -// // Updates the network in the data center. -// type DataCenterNetworkServiceUpdateResponse struct { network *Network } @@ -20090,16 +19218,12 @@ func (p *DataCenterNetworkServiceUpdateResponse) MustNetwork() *Network { return p.network } -// // Updates the network in the data center. -// func (p *DataCenterNetworkService) Update() *DataCenterNetworkServiceUpdateRequest { return &DataCenterNetworkServiceUpdateRequest{DataCenterNetworkService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *DataCenterNetworkService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -20111,9 +19235,7 @@ func (op *DataCenterNetworkService) String() string { return fmt.Sprintf("DataCenterNetworkService:%s", op.path) } -// // A service to manage data center networks. -// type DataCenterNetworksService struct { BaseService } @@ -20125,7 +19247,6 @@ func NewDataCenterNetworksService(connection *Connection, path string) *DataCent return &result } -// // Create a new network in a data center. // Post a request like in the example below to create a new network in a data center with an ID of `123`. // [source] @@ -20136,10 +19257,11 @@ func NewDataCenterNetworksService(connection *Connection, path string) *DataCent // [source,xml] // ---- // -// mynetwork +// +// mynetwork +// // // ---- -// type DataCenterNetworksServiceAddRequest struct { DataCenterNetworksService *DataCenterNetworksService header map[string]string @@ -20251,7 +19373,6 @@ func (p *DataCenterNetworksServiceAddRequest) MustSend() *DataCenterNetworksServ } } -// // Create a new network in a data center. // Post a request like in the example below to create a new network in a data center with an ID of `123`. // [source] @@ -20262,10 +19383,11 @@ func (p *DataCenterNetworksServiceAddRequest) MustSend() *DataCenterNetworksServ // [source,xml] // ---- // -// mynetwork +// +// mynetwork +// // // ---- -// type DataCenterNetworksServiceAddResponse struct { network *Network } @@ -20284,7 +19406,6 @@ func (p *DataCenterNetworksServiceAddResponse) MustNetwork() *Network { return p.network } -// // Create a new network in a data center. // Post a request like in the example below to create a new network in a data center with an ID of `123`. // [source] @@ -20295,18 +19416,17 @@ func (p *DataCenterNetworksServiceAddResponse) MustNetwork() *Network { // [source,xml] // ---- // -// mynetwork +// +// mynetwork +// // // ---- -// func (p *DataCenterNetworksService) Add() *DataCenterNetworksServiceAddRequest { return &DataCenterNetworksServiceAddRequest{DataCenterNetworksService: p} } -// // Lists networks in the data center. // The order of the returned list of networks isn't guaranteed. -// type DataCenterNetworksServiceListRequest struct { DataCenterNetworksService *DataCenterNetworksService header map[string]string @@ -20425,10 +19545,8 @@ func (p *DataCenterNetworksServiceListRequest) MustSend() *DataCenterNetworksSer } } -// // Lists networks in the data center. // The order of the returned list of networks isn't guaranteed. -// type DataCenterNetworksServiceListResponse struct { networks *NetworkSlice } @@ -20447,24 +19565,18 @@ func (p *DataCenterNetworksServiceListResponse) MustNetworks() *NetworkSlice { return p.networks } -// // Lists networks in the data center. // The order of the returned list of networks isn't guaranteed. -// func (p *DataCenterNetworksService) List() *DataCenterNetworksServiceListRequest { return &DataCenterNetworksServiceListRequest{DataCenterNetworksService: p} } -// // Access the data center network service that manages the data center network specified by an ID. -// func (op *DataCenterNetworksService) NetworkService(id string) *DataCenterNetworkService { return NewDataCenterNetworkService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *DataCenterNetworksService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -20480,9 +19592,7 @@ func (op *DataCenterNetworksService) String() string { return fmt.Sprintf("DataCenterNetworksService:%s", op.path) } -// // A service to manage a data center. -// type DataCenterService struct { BaseService } @@ -20494,7 +19604,6 @@ func NewDataCenterService(connection *Connection, path string) *DataCenterServic return &result } -// // Currently, the storage pool manager (SPM) fails to // switch to another host if the SPM has uncleared tasks. // Clearing all finished tasks enables the SPM switching. @@ -20508,7 +19617,6 @@ func NewDataCenterService(connection *Connection, path string) *DataCenterServic // ---- // // ---- -// type DataCenterServiceCleanFinishedTasksRequest struct { DataCenterService *DataCenterService header map[string]string @@ -20621,7 +19729,6 @@ func (p *DataCenterServiceCleanFinishedTasksRequest) MustSend() *DataCenterServi } } -// // Currently, the storage pool manager (SPM) fails to // switch to another host if the SPM has uncleared tasks. // Clearing all finished tasks enables the SPM switching. @@ -20635,11 +19742,9 @@ func (p *DataCenterServiceCleanFinishedTasksRequest) MustSend() *DataCenterServi // ---- // // ---- -// type DataCenterServiceCleanFinishedTasksResponse struct { } -// // Currently, the storage pool manager (SPM) fails to // switch to another host if the SPM has uncleared tasks. // Clearing all finished tasks enables the SPM switching. @@ -20653,12 +19758,10 @@ type DataCenterServiceCleanFinishedTasksResponse struct { // ---- // // ---- -// func (p *DataCenterService) CleanFinishedTasks() *DataCenterServiceCleanFinishedTasksRequest { return &DataCenterServiceCleanFinishedTasksRequest{DataCenterService: p} } -// // Get a data center. // An example of getting a data center: // [source] @@ -20668,33 +19771,34 @@ func (p *DataCenterService) CleanFinishedTasks() *DataCenterServiceCleanFinished // [source,xml] // ---- // -// Default -// The default Data Center -// -// -// -// -// -// -// -// false -// disabled -// up -// v3 -// -// -// 4 -// 0 -// -// -// -// 4 -// 0 -// -// +// +// Default +// The default Data Center +// +// +// +// +// +// +// +// false +// disabled +// up +// v3 +// +// +// 4 +// 0 +// +// +// +// 4 +// 0 +// +// +// // // ---- -// type DataCenterServiceGetRequest struct { DataCenterService *DataCenterService header map[string]string @@ -20813,7 +19917,6 @@ func (p *DataCenterServiceGetRequest) MustSend() *DataCenterServiceGetResponse { } } -// // Get a data center. // An example of getting a data center: // [source] @@ -20823,33 +19926,34 @@ func (p *DataCenterServiceGetRequest) MustSend() *DataCenterServiceGetResponse { // [source,xml] // ---- // -// Default -// The default Data Center -// -// -// -// -// -// -// -// false -// disabled -// up -// v3 -// -// -// 4 -// 0 -// -// -// -// 4 -// 0 -// -// +// +// Default +// The default Data Center +// +// +// +// +// +// +// +// false +// disabled +// up +// v3 +// +// +// 4 +// 0 +// +// +// +// 4 +// 0 +// +// +// // // ---- -// type DataCenterServiceGetResponse struct { dataCenter *DataCenter } @@ -20868,7 +19972,6 @@ func (p *DataCenterServiceGetResponse) MustDataCenter() *DataCenter { return p.dataCenter } -// // Get a data center. // An example of getting a data center: // [source] @@ -20878,38 +19981,38 @@ func (p *DataCenterServiceGetResponse) MustDataCenter() *DataCenter { // [source,xml] // ---- // -// Default -// The default Data Center -// -// -// -// -// -// -// -// false -// disabled -// up -// v3 -// -// -// 4 -// 0 -// -// -// -// 4 -// 0 -// -// +// +// Default +// The default Data Center +// +// +// +// +// +// +// +// false +// disabled +// up +// v3 +// +// +// 4 +// 0 +// +// +// +// 4 +// 0 +// +// +// // // ---- -// func (p *DataCenterService) Get() *DataCenterServiceGetRequest { return &DataCenterServiceGetRequest{DataCenterService: p} } -// // Removes the data center. // [source] // ---- @@ -20921,7 +20024,6 @@ func (p *DataCenterService) Get() *DataCenterServiceGetRequest { // If the `force` parameter is `true` then the operation will always succeed, even if something fails while removing // one storage domain, for example. The failure is just ignored and the data center is removed from the database // anyway. -// type DataCenterServiceRemoveRequest struct { DataCenterService *DataCenterService header map[string]string @@ -21035,7 +20137,6 @@ func (p *DataCenterServiceRemoveRequest) MustSend() *DataCenterServiceRemoveResp } } -// // Removes the data center. // [source] // ---- @@ -21047,11 +20148,9 @@ func (p *DataCenterServiceRemoveRequest) MustSend() *DataCenterServiceRemoveResp // If the `force` parameter is `true` then the operation will always succeed, even if something fails while removing // one storage domain, for example. The failure is just ignored and the data center is removed from the database // anyway. -// type DataCenterServiceRemoveResponse struct { } -// // Removes the data center. // [source] // ---- @@ -21063,12 +20162,10 @@ type DataCenterServiceRemoveResponse struct { // If the `force` parameter is `true` then the operation will always succeed, even if something fails while removing // one storage domain, for example. The failure is just ignored and the data center is removed from the database // anyway. -// func (p *DataCenterService) Remove() *DataCenterServiceRemoveRequest { return &DataCenterServiceRemoveRequest{DataCenterService: p} } -// // Used for manually setting a storage domain in the data center as a master. // For example, for setting a storage domain with ID '456' as a master on a data center with ID '123', // send a request like this: @@ -21080,11 +20177,12 @@ func (p *DataCenterService) Remove() *DataCenterServiceRemoveRequest { // [source,xml] // ---- // -// +// +// +// // // ---- // The new master storage domain can be also specified by its name. -// type DataCenterServiceSetMasterRequest struct { DataCenterService *DataCenterService header map[string]string @@ -21204,7 +20302,6 @@ func (p *DataCenterServiceSetMasterRequest) MustSend() *DataCenterServiceSetMast } } -// // Used for manually setting a storage domain in the data center as a master. // For example, for setting a storage domain with ID '456' as a master on a data center with ID '123', // send a request like this: @@ -21216,15 +20313,15 @@ func (p *DataCenterServiceSetMasterRequest) MustSend() *DataCenterServiceSetMast // [source,xml] // ---- // -// +// +// +// // // ---- // The new master storage domain can be also specified by its name. -// type DataCenterServiceSetMasterResponse struct { } -// // Used for manually setting a storage domain in the data center as a master. // For example, for setting a storage domain with ID '456' as a master on a data center with ID '123', // send a request like this: @@ -21236,16 +20333,16 @@ type DataCenterServiceSetMasterResponse struct { // [source,xml] // ---- // -// +// +// +// // // ---- // The new master storage domain can be also specified by its name. -// func (p *DataCenterService) SetMaster() *DataCenterServiceSetMasterRequest { return &DataCenterServiceSetMasterRequest{DataCenterService: p} } -// // Updates the data center. // The `name`, `description`, `storage_type`, `version`, `storage_format` and `mac_pool` elements are updatable // post-creation. For example, to change the name and description of data center `123` send a request like this: @@ -21257,11 +20354,12 @@ func (p *DataCenterService) SetMaster() *DataCenterServiceSetMasterRequest { // [source,xml] // ---- // -// myupdatedname -// An updated description for the data center +// +// myupdatedname +// An updated description for the data center +// // // ---- -// type DataCenterServiceUpdateRequest struct { DataCenterService *DataCenterService header map[string]string @@ -21383,7 +20481,6 @@ func (p *DataCenterServiceUpdateRequest) MustSend() *DataCenterServiceUpdateResp } } -// // Updates the data center. // The `name`, `description`, `storage_type`, `version`, `storage_format` and `mac_pool` elements are updatable // post-creation. For example, to change the name and description of data center `123` send a request like this: @@ -21395,11 +20492,12 @@ func (p *DataCenterServiceUpdateRequest) MustSend() *DataCenterServiceUpdateResp // [source,xml] // ---- // -// myupdatedname -// An updated description for the data center +// +// myupdatedname +// An updated description for the data center +// // // ---- -// type DataCenterServiceUpdateResponse struct { dataCenter *DataCenter } @@ -21418,7 +20516,6 @@ func (p *DataCenterServiceUpdateResponse) MustDataCenter() *DataCenter { return p.dataCenter } -// // Updates the data center. // The `name`, `description`, `storage_type`, `version`, `storage_format` and `mac_pool` elements are updatable // post-creation. For example, to change the name and description of data center `123` send a request like this: @@ -21430,57 +20527,45 @@ func (p *DataCenterServiceUpdateResponse) MustDataCenter() *DataCenter { // [source,xml] // ---- // -// myupdatedname -// An updated description for the data center +// +// myupdatedname +// An updated description for the data center +// // // ---- -// func (p *DataCenterService) Update() *DataCenterServiceUpdateRequest { return &DataCenterServiceUpdateRequest{DataCenterService: p} } -// -// func (op *DataCenterService) ClustersService() *ClustersService { return NewClustersService(op.connection, fmt.Sprintf("%s/clusters", op.path)) } -// // Reference to the iSCSI bonds service. -// func (op *DataCenterService) IscsiBondsService() *IscsiBondsService { return NewIscsiBondsService(op.connection, fmt.Sprintf("%s/iscsibonds", op.path)) } -// // Returns a reference to the service, that manages the networks, that are associated with the data center. -// func (op *DataCenterService) NetworksService() *DataCenterNetworksService { return NewDataCenterNetworksService(op.connection, fmt.Sprintf("%s/networks", op.path)) } -// // Reference to the permissions service. -// func (op *DataCenterService) PermissionsService() *AssignedPermissionsService { return NewAssignedPermissionsService(op.connection, fmt.Sprintf("%s/permissions", op.path)) } -// // Reference to the QOSs service. -// func (op *DataCenterService) QossService() *QossService { return NewQossService(op.connection, fmt.Sprintf("%s/qoss", op.path)) } -// // Reference to the quotas service. -// func (op *DataCenterService) QuotasService() *QuotasService { return NewQuotasService(op.connection, fmt.Sprintf("%s/quotas", op.path)) } -// // Attach and detach storage domains to and from a data center. // For attaching a single storage domain we should use the following POST request: // [source] @@ -21491,7 +20576,9 @@ func (op *DataCenterService) QuotasService() *QuotasService { // [source,xml] // ---- // -// data1 +// +// data1 +// // // ---- // For detaching a single storage domain we should use the following DELETE request: @@ -21499,14 +20586,11 @@ func (op *DataCenterService) QuotasService() *QuotasService { // ---- // DELETE /ovirt-engine/api/datacenters/123/storagedomains/123 // ---- -// func (op *DataCenterService) StorageDomainsService() *AttachedStorageDomainsService { return NewAttachedStorageDomainsService(op.connection, fmt.Sprintf("%s/storagedomains", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *DataCenterService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -21560,9 +20644,7 @@ func (op *DataCenterService) String() string { return fmt.Sprintf("DataCenterService:%s", op.path) } -// // A service to manage data centers. -// type DataCentersService struct { BaseService } @@ -21574,7 +20656,6 @@ func NewDataCentersService(connection *Connection, path string) *DataCentersServ return &result } -// // Creates a new data center. // Creation of a new data center requires the `name` and `local` elements. For example, to create a data center // named `mydc` that uses shared storage (NFS, iSCSI or fibre channel) send a request like this: @@ -21586,11 +20667,12 @@ func NewDataCentersService(connection *Connection, path string) *DataCentersServ // [source,xml] // ---- // -// mydc -// false +// +// mydc +// false +// // // ---- -// type DataCentersServiceAddRequest struct { DataCentersService *DataCentersService header map[string]string @@ -21702,7 +20784,6 @@ func (p *DataCentersServiceAddRequest) MustSend() *DataCentersServiceAddResponse } } -// // Creates a new data center. // Creation of a new data center requires the `name` and `local` elements. For example, to create a data center // named `mydc` that uses shared storage (NFS, iSCSI or fibre channel) send a request like this: @@ -21714,11 +20795,12 @@ func (p *DataCentersServiceAddRequest) MustSend() *DataCentersServiceAddResponse // [source,xml] // ---- // -// mydc -// false +// +// mydc +// false +// // // ---- -// type DataCentersServiceAddResponse struct { dataCenter *DataCenter } @@ -21737,7 +20819,6 @@ func (p *DataCentersServiceAddResponse) MustDataCenter() *DataCenter { return p.dataCenter } -// // Creates a new data center. // Creation of a new data center requires the `name` and `local` elements. For example, to create a data center // named `mydc` that uses shared storage (NFS, iSCSI or fibre channel) send a request like this: @@ -21749,16 +20830,16 @@ func (p *DataCentersServiceAddResponse) MustDataCenter() *DataCenter { // [source,xml] // ---- // -// mydc -// false +// +// mydc +// false +// // // ---- -// func (p *DataCentersService) Add() *DataCentersServiceAddRequest { return &DataCentersServiceAddRequest{DataCentersService: p} } -// // Lists the data centers. // The following request retrieves a representation of the data centers: // [source] @@ -21780,28 +20861,30 @@ func (p *DataCentersService) Add() *DataCentersServiceAddRequest { // [source,xml] // ---- // -// Default -// The default Data Center -// -// -// -// -// -// -// -// false -// disabled -// up -// -// -// 4 -// 0 -// -// -// -// 4 -// 0 -// +// +// Default +// The default Data Center +// +// +// +// +// +// +// +// false +// disabled +// up +// +// +// 4 +// 0 +// +// +// +// 4 +// 0 +// +// // // ---- // Note the `id` code of your `Default` data center. This code identifies this data center in relation to other @@ -21810,7 +20893,6 @@ func (p *DataCentersService) Add() *DataCentersServiceAddRequest { // attach storage domains from the storage domains main collection. // The order of the returned list of data centers is guaranteed only if the `sortby` clause is included in the // `search` parameter. -// type DataCentersServiceListRequest struct { DataCentersService *DataCentersService header map[string]string @@ -21959,7 +21041,77 @@ func (p *DataCentersServiceListRequest) MustSend() *DataCentersServiceListRespon } } +// Lists the data centers. +// The following request retrieves a representation of the data centers: +// [source] +// ---- +// GET /ovirt-engine/api/datacenters +// ---- +// The above request performed with `curl`: +// [source,bash] +// ---- +// curl \ +// --request GET \ +// --cacert /etc/pki/ovirt-engine/ca.pem \ +// --header "Version: 4" \ +// --header "Accept: application/xml" \ +// --user "admin@internal:mypassword" \ +// https://myengine.example.com/ovirt-engine/api/datacenters +// ---- +// This is what an example response could look like: +// [source,xml] +// ---- +// +// +// Default +// The default Data Center +// +// +// +// +// +// +// +// false +// disabled +// up +// +// +// 4 +// 0 +// +// +// +// 4 +// 0 +// // +// +// ---- +// Note the `id` code of your `Default` data center. This code identifies this data center in relation to other +// resources of your virtual environment. +// The data center also contains a link to the storage domains collection. The data center uses this collection to +// attach storage domains from the storage domains main collection. +// The order of the returned list of data centers is guaranteed only if the `sortby` clause is included in the +// `search` parameter. +type DataCentersServiceListResponse struct { + dataCenters *DataCenterSlice +} + +func (p *DataCentersServiceListResponse) DataCenters() (*DataCenterSlice, bool) { + if p.dataCenters != nil { + return p.dataCenters, true + } + return nil, false +} + +func (p *DataCentersServiceListResponse) MustDataCenters() *DataCenterSlice { + if p.dataCenters == nil { + panic("dataCenters in response does not exist") + } + return p.dataCenters +} + // Lists the data centers. // The following request retrieves a representation of the data centers: // [source] @@ -21981,99 +21133,30 @@ func (p *DataCentersServiceListRequest) MustSend() *DataCentersServiceListRespon // [source,xml] // ---- // -// Default -// The default Data Center -// -// -// -// -// -// -// -// false -// disabled -// up -// -// -// 4 -// 0 -// -// -// -// 4 -// 0 -// -// -// ---- -// Note the `id` code of your `Default` data center. This code identifies this data center in relation to other -// resources of your virtual environment. -// The data center also contains a link to the storage domains collection. The data center uses this collection to -// attach storage domains from the storage domains main collection. -// The order of the returned list of data centers is guaranteed only if the `sortby` clause is included in the -// `search` parameter. // -type DataCentersServiceListResponse struct { - dataCenters *DataCenterSlice -} - -func (p *DataCentersServiceListResponse) DataCenters() (*DataCenterSlice, bool) { - if p.dataCenters != nil { - return p.dataCenters, true - } - return nil, false -} - -func (p *DataCentersServiceListResponse) MustDataCenters() *DataCenterSlice { - if p.dataCenters == nil { - panic("dataCenters in response does not exist") - } - return p.dataCenters -} - +// Default +// The default Data Center +// +// +// +// +// +// +// +// false +// disabled +// up +// +// +// 4 +// 0 +// +// +// +// 4 +// 0 +// // -// Lists the data centers. -// The following request retrieves a representation of the data centers: -// [source] -// ---- -// GET /ovirt-engine/api/datacenters -// ---- -// The above request performed with `curl`: -// [source,bash] -// ---- -// curl \ -// --request GET \ -// --cacert /etc/pki/ovirt-engine/ca.pem \ -// --header "Version: 4" \ -// --header "Accept: application/xml" \ -// --user "admin@internal:mypassword" \ -// https://myengine.example.com/ovirt-engine/api/datacenters -// ---- -// This is what an example response could look like: -// [source,xml] -// ---- -// -// Default -// The default Data Center -// -// -// -// -// -// -// -// false -// disabled -// up -// -// -// 4 -// 0 -// -// -// -// 4 -// 0 -// // // ---- // Note the `id` code of your `Default` data center. This code identifies this data center in relation to other @@ -22082,21 +21165,16 @@ func (p *DataCentersServiceListResponse) MustDataCenters() *DataCenterSlice { // attach storage domains from the storage domains main collection. // The order of the returned list of data centers is guaranteed only if the `sortby` clause is included in the // `search` parameter. -// func (p *DataCentersService) List() *DataCentersServiceListRequest { return &DataCentersServiceListRequest{DataCentersService: p} } -// // Reference to the service that manages a specific data center. -// func (op *DataCentersService) DataCenterService(id string) *DataCenterService { return NewDataCenterService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *DataCentersService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -22112,9 +21190,7 @@ func (op *DataCentersService) String() string { return fmt.Sprintf("DataCentersService:%s", op.path) } -// // This service manages the attachment of a disk to a virtual machine. -// type DiskAttachmentService struct { BaseService } @@ -22126,7 +21202,6 @@ func NewDiskAttachmentService(connection *Connection, path string) *DiskAttachme return &result } -// // Returns the details of the attachment, including the bootable flag and link to the disk. // An example of getting a disk attachment: // [source] @@ -22136,14 +21211,15 @@ func NewDiskAttachmentService(connection *Connection, path string) *DiskAttachme // [source,xml] // ---- // -// true -// true -// virtio -// -// +// +// true +// true +// virtio +// +// +// // // ---- -// type DiskAttachmentServiceGetRequest struct { DiskAttachmentService *DiskAttachmentService header map[string]string @@ -22252,7 +21328,6 @@ func (p *DiskAttachmentServiceGetRequest) MustSend() *DiskAttachmentServiceGetRe } } -// // Returns the details of the attachment, including the bootable flag and link to the disk. // An example of getting a disk attachment: // [source] @@ -22262,14 +21337,15 @@ func (p *DiskAttachmentServiceGetRequest) MustSend() *DiskAttachmentServiceGetRe // [source,xml] // ---- // -// true -// true -// virtio -// -// +// +// true +// true +// virtio +// +// +// // // ---- -// type DiskAttachmentServiceGetResponse struct { attachment *DiskAttachment } @@ -22288,7 +21364,6 @@ func (p *DiskAttachmentServiceGetResponse) MustAttachment() *DiskAttachment { return p.attachment } -// // Returns the details of the attachment, including the bootable flag and link to the disk. // An example of getting a disk attachment: // [source] @@ -22298,19 +21373,19 @@ func (p *DiskAttachmentServiceGetResponse) MustAttachment() *DiskAttachment { // [source,xml] // ---- // -// true -// true -// virtio -// -// +// +// true +// true +// virtio +// +// +// // // ---- -// func (p *DiskAttachmentService) Get() *DiskAttachmentServiceGetRequest { return &DiskAttachmentServiceGetRequest{DiskAttachmentService: p} } -// // Removes the disk attachment. // This will only detach the disk from the virtual machine, but won't remove it from // the system, unless the `detach_only` parameter is `false`. @@ -22319,7 +21394,6 @@ func (p *DiskAttachmentService) Get() *DiskAttachmentServiceGetRequest { // ---- // DELETE /ovirt-engine/api/vms/123/diskattachments/456?detach_only=true // ---- -// type DiskAttachmentServiceRemoveRequest struct { DiskAttachmentService *DiskAttachmentService header map[string]string @@ -22423,7 +21497,6 @@ func (p *DiskAttachmentServiceRemoveRequest) MustSend() *DiskAttachmentServiceRe } } -// // Removes the disk attachment. // This will only detach the disk from the virtual machine, but won't remove it from // the system, unless the `detach_only` parameter is `false`. @@ -22432,11 +21505,9 @@ func (p *DiskAttachmentServiceRemoveRequest) MustSend() *DiskAttachmentServiceRe // ---- // DELETE /ovirt-engine/api/vms/123/diskattachments/456?detach_only=true // ---- -// type DiskAttachmentServiceRemoveResponse struct { } -// // Removes the disk attachment. // This will only detach the disk from the virtual machine, but won't remove it from // the system, unless the `detach_only` parameter is `false`. @@ -22445,28 +21516,27 @@ type DiskAttachmentServiceRemoveResponse struct { // ---- // DELETE /ovirt-engine/api/vms/123/diskattachments/456?detach_only=true // ---- -// func (p *DiskAttachmentService) Remove() *DiskAttachmentServiceRemoveRequest { return &DiskAttachmentServiceRemoveRequest{DiskAttachmentService: p} } -// // Update the disk attachment and the disk properties within it. // [source] // ---- // PUT /vms/{vm:id}/disksattachments/{attachment:id} // -// true -// ide -// true -// -// mydisk -// 1024 -// ... -// +// +// true +// ide +// true +// +// mydisk +// 1024 +// ... +// +// // // ---- -// type DiskAttachmentServiceUpdateRequest struct { DiskAttachmentService *DiskAttachmentService header map[string]string @@ -22578,23 +21648,23 @@ func (p *DiskAttachmentServiceUpdateRequest) MustSend() *DiskAttachmentServiceUp } } -// // Update the disk attachment and the disk properties within it. // [source] // ---- // PUT /vms/{vm:id}/disksattachments/{attachment:id} // -// true -// ide -// true -// -// mydisk -// 1024 -// ... -// +// +// true +// ide +// true +// +// mydisk +// 1024 +// ... +// +// // // ---- -// type DiskAttachmentServiceUpdateResponse struct { diskAttachment *DiskAttachment } @@ -22613,30 +21683,28 @@ func (p *DiskAttachmentServiceUpdateResponse) MustDiskAttachment() *DiskAttachme return p.diskAttachment } -// // Update the disk attachment and the disk properties within it. // [source] // ---- // PUT /vms/{vm:id}/disksattachments/{attachment:id} // -// true -// ide -// true -// -// mydisk -// 1024 -// ... -// +// +// true +// ide +// true +// +// mydisk +// 1024 +// ... +// +// // // ---- -// func (p *DiskAttachmentService) Update() *DiskAttachmentServiceUpdateRequest { return &DiskAttachmentServiceUpdateRequest{DiskAttachmentService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *DiskAttachmentService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -22648,11 +21716,9 @@ func (op *DiskAttachmentService) String() string { return fmt.Sprintf("DiskAttachmentService:%s", op.path) } -// // This service manages the set of disks attached to a virtual machine. Each attached disk is represented by a // <>, containing the bootable flag, the disk interface and the reference to // the disk. -// type DiskAttachmentsService struct { BaseService } @@ -22664,32 +21730,35 @@ func NewDiskAttachmentsService(connection *Connection, path string) *DiskAttachm return &result } -// // Adds a new disk attachment to the virtual machine. The `attachment` parameter can contain just a reference, if // the disk already exists: // [source,xml] // ---- // -// true -// true -// ide -// true -// +// +// true +// true +// ide +// true +// +// // // ---- // Or it can contain the complete representation of the disk, if the disk doesn't exist yet: // [source,xml] // ---- // -// true -// true -// ide -// true -// -// mydisk -// 1024 -// ... -// +// +// true +// true +// ide +// true +// +// mydisk +// 1024 +// ... +// +// // // ---- // In this case the disk will be created and then attached to the virtual machine. @@ -22702,7 +21771,6 @@ func NewDiskAttachmentsService(connection *Connection, path string) *DiskAttachm // undefined. In some cases the disk will be automatically activated and in other cases it won't. To // avoid issues it is strongly recommended to always include the `active` attribute with the desired // value. -// type DiskAttachmentsServiceAddRequest struct { DiskAttachmentsService *DiskAttachmentsService header map[string]string @@ -22814,32 +21882,35 @@ func (p *DiskAttachmentsServiceAddRequest) MustSend() *DiskAttachmentsServiceAdd } } -// // Adds a new disk attachment to the virtual machine. The `attachment` parameter can contain just a reference, if // the disk already exists: // [source,xml] // ---- // -// true -// true -// ide -// true -// +// +// true +// true +// ide +// true +// +// // // ---- // Or it can contain the complete representation of the disk, if the disk doesn't exist yet: // [source,xml] // ---- // -// true -// true -// ide -// true -// -// mydisk -// 1024 -// ... -// +// +// true +// true +// ide +// true +// +// mydisk +// 1024 +// ... +// +// // // ---- // In this case the disk will be created and then attached to the virtual machine. @@ -22852,7 +21923,6 @@ func (p *DiskAttachmentsServiceAddRequest) MustSend() *DiskAttachmentsServiceAdd // undefined. In some cases the disk will be automatically activated and in other cases it won't. To // avoid issues it is strongly recommended to always include the `active` attribute with the desired // value. -// type DiskAttachmentsServiceAddResponse struct { attachment *DiskAttachment } @@ -22871,32 +21941,35 @@ func (p *DiskAttachmentsServiceAddResponse) MustAttachment() *DiskAttachment { return p.attachment } -// // Adds a new disk attachment to the virtual machine. The `attachment` parameter can contain just a reference, if // the disk already exists: // [source,xml] // ---- // -// true -// true -// ide -// true -// +// +// true +// true +// ide +// true +// +// // // ---- // Or it can contain the complete representation of the disk, if the disk doesn't exist yet: // [source,xml] // ---- // -// true -// true -// ide -// true -// -// mydisk -// 1024 -// ... -// +// +// true +// true +// ide +// true +// +// mydisk +// 1024 +// ... +// +// // // ---- // In this case the disk will be created and then attached to the virtual machine. @@ -22909,15 +21982,12 @@ func (p *DiskAttachmentsServiceAddResponse) MustAttachment() *DiskAttachment { // undefined. In some cases the disk will be automatically activated and in other cases it won't. To // avoid issues it is strongly recommended to always include the `active` attribute with the desired // value. -// func (p *DiskAttachmentsService) Add() *DiskAttachmentsServiceAddRequest { return &DiskAttachmentsServiceAddRequest{DiskAttachmentsService: p} } -// // List the disk that are attached to the virtual machine. // The order of the returned list of disks attachments isn't guaranteed. -// type DiskAttachmentsServiceListRequest struct { DiskAttachmentsService *DiskAttachmentsService header map[string]string @@ -23026,10 +22096,8 @@ func (p *DiskAttachmentsServiceListRequest) MustSend() *DiskAttachmentsServiceLi } } -// // List the disk that are attached to the virtual machine. // The order of the returned list of disks attachments isn't guaranteed. -// type DiskAttachmentsServiceListResponse struct { attachments *DiskAttachmentSlice } @@ -23048,16 +22116,12 @@ func (p *DiskAttachmentsServiceListResponse) MustAttachments() *DiskAttachmentSl return p.attachments } -// // List the disk that are attached to the virtual machine. // The order of the returned list of disks attachments isn't guaranteed. -// func (p *DiskAttachmentsService) List() *DiskAttachmentsServiceListRequest { return &DiskAttachmentsServiceListRequest{DiskAttachmentsService: p} } -// -// type DiskAttachmentsServiceAddProvidingDiskIdRequest struct { DiskAttachmentsService *DiskAttachmentsService header map[string]string @@ -23169,8 +22233,6 @@ func (p *DiskAttachmentsServiceAddProvidingDiskIdRequest) MustSend() *DiskAttach } } -// -// type DiskAttachmentsServiceAddProvidingDiskIdResponse struct { attachment *DiskAttachment } @@ -23189,14 +22251,10 @@ func (p *DiskAttachmentsServiceAddProvidingDiskIdResponse) MustAttachment() *Dis return p.attachment } -// -// func (p *DiskAttachmentsService) AddProvidingDiskId() *DiskAttachmentsServiceAddProvidingDiskIdRequest { return &DiskAttachmentsServiceAddProvidingDiskIdRequest{DiskAttachmentsService: p} } -// -// type DiskAttachmentsServiceAddSignature1Request struct { DiskAttachmentsService *DiskAttachmentsService header map[string]string @@ -23308,8 +22366,6 @@ func (p *DiskAttachmentsServiceAddSignature1Request) MustSend() *DiskAttachments } } -// -// type DiskAttachmentsServiceAddSignature1Response struct { attachment *DiskAttachment } @@ -23328,22 +22384,16 @@ func (p *DiskAttachmentsServiceAddSignature1Response) MustAttachment() *DiskAtta return p.attachment } -// -// func (p *DiskAttachmentsService) AddSignature1() *DiskAttachmentsServiceAddSignature1Request { return &DiskAttachmentsServiceAddSignature1Request{DiskAttachmentsService: p} } -// // Reference to the service that manages a specific attachment. -// func (op *DiskAttachmentsService) AttachmentService(id string) *DiskAttachmentService { return NewDiskAttachmentService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *DiskAttachmentsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -23359,8 +22409,6 @@ func (op *DiskAttachmentsService) String() string { return fmt.Sprintf("DiskAttachmentsService:%s", op.path) } -// -// type DiskProfileService struct { BaseService } @@ -23372,8 +22420,6 @@ func NewDiskProfileService(connection *Connection, path string) *DiskProfileServ return &result } -// -// type DiskProfileServiceGetRequest struct { DiskProfileService *DiskProfileService header map[string]string @@ -23482,8 +22528,6 @@ func (p *DiskProfileServiceGetRequest) MustSend() *DiskProfileServiceGetResponse } } -// -// type DiskProfileServiceGetResponse struct { profile *DiskProfile } @@ -23502,14 +22546,10 @@ func (p *DiskProfileServiceGetResponse) MustProfile() *DiskProfile { return p.profile } -// -// func (p *DiskProfileService) Get() *DiskProfileServiceGetRequest { return &DiskProfileServiceGetRequest{DiskProfileService: p} } -// -// type DiskProfileServiceRemoveRequest struct { DiskProfileService *DiskProfileService header map[string]string @@ -23613,20 +22653,14 @@ func (p *DiskProfileServiceRemoveRequest) MustSend() *DiskProfileServiceRemoveRe } } -// -// type DiskProfileServiceRemoveResponse struct { } -// -// func (p *DiskProfileService) Remove() *DiskProfileServiceRemoveRequest { return &DiskProfileServiceRemoveRequest{DiskProfileService: p} } -// // Update the specified disk profile in the system. -// type DiskProfileServiceUpdateRequest struct { DiskProfileService *DiskProfileService header map[string]string @@ -23748,9 +22782,7 @@ func (p *DiskProfileServiceUpdateRequest) MustSend() *DiskProfileServiceUpdateRe } } -// // Update the specified disk profile in the system. -// type DiskProfileServiceUpdateResponse struct { profile *DiskProfile } @@ -23769,22 +22801,16 @@ func (p *DiskProfileServiceUpdateResponse) MustProfile() *DiskProfile { return p.profile } -// // Update the specified disk profile in the system. -// func (p *DiskProfileService) Update() *DiskProfileServiceUpdateRequest { return &DiskProfileServiceUpdateRequest{DiskProfileService: p} } -// -// func (op *DiskProfileService) PermissionsService() *AssignedPermissionsService { return NewAssignedPermissionsService(op.connection, fmt.Sprintf("%s/permissions", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *DiskProfileService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -23802,8 +22828,6 @@ func (op *DiskProfileService) String() string { return fmt.Sprintf("DiskProfileService:%s", op.path) } -// -// type DiskProfilesService struct { BaseService } @@ -23815,9 +22839,7 @@ func NewDiskProfilesService(connection *Connection, path string) *DiskProfilesSe return &result } -// // Add a new disk profile to the system. -// type DiskProfilesServiceAddRequest struct { DiskProfilesService *DiskProfilesService header map[string]string @@ -23929,9 +22951,7 @@ func (p *DiskProfilesServiceAddRequest) MustSend() *DiskProfilesServiceAddRespon } } -// // Add a new disk profile to the system. -// type DiskProfilesServiceAddResponse struct { profile *DiskProfile } @@ -23950,17 +22970,13 @@ func (p *DiskProfilesServiceAddResponse) MustProfile() *DiskProfile { return p.profile } -// // Add a new disk profile to the system. -// func (p *DiskProfilesService) Add() *DiskProfilesServiceAddRequest { return &DiskProfilesServiceAddRequest{DiskProfilesService: p} } -// // Returns the list of disk profiles of the system. // The order of the returned list of disk profiles isn't guaranteed. -// type DiskProfilesServiceListRequest struct { DiskProfilesService *DiskProfilesService header map[string]string @@ -24079,10 +23095,8 @@ func (p *DiskProfilesServiceListRequest) MustSend() *DiskProfilesServiceListResp } } -// // Returns the list of disk profiles of the system. // The order of the returned list of disk profiles isn't guaranteed. -// type DiskProfilesServiceListResponse struct { profile *DiskProfileSlice } @@ -24101,23 +23115,17 @@ func (p *DiskProfilesServiceListResponse) MustProfile() *DiskProfileSlice { return p.profile } -// // Returns the list of disk profiles of the system. // The order of the returned list of disk profiles isn't guaranteed. -// func (p *DiskProfilesService) List() *DiskProfilesServiceListRequest { return &DiskProfilesServiceListRequest{DiskProfilesService: p} } -// -// func (op *DiskProfilesService) DiskProfileService(id string) *DiskProfileService { return NewDiskProfileService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *DiskProfilesService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -24133,9 +23141,7 @@ func (op *DiskProfilesService) String() string { return fmt.Sprintf("DiskProfilesService:%s", op.path) } -// // Manages a single disk. -// type DiskService struct { BaseService } @@ -24147,7 +23153,6 @@ func NewDiskService(connection *Connection, path string) *DiskService { return &result } -// // This operation copies a disk to the specified storage domain. // For example, a disk can be copied using the following request: // [source] @@ -24158,10 +23163,12 @@ func NewDiskService(connection *Connection, path string) *DiskService { // [source,xml] // ---- // -// -// -// mydisk -// +// +// +// +// mydisk +// +// // // ---- // If the disk profile or the quota currently used by the disk are not defined for the new storage domain, they @@ -24170,12 +23177,13 @@ func NewDiskService(connection *Connection, path string) *DiskService { // [source,xml] // ---- // -// -// -// +// +// +// +// +// // // ---- -// type DiskServiceCopyRequest struct { DiskService *DiskService header map[string]string @@ -24325,7 +23333,6 @@ func (p *DiskServiceCopyRequest) MustSend() *DiskServiceCopyResponse { } } -// // This operation copies a disk to the specified storage domain. // For example, a disk can be copied using the following request: // [source] @@ -24336,10 +23343,12 @@ func (p *DiskServiceCopyRequest) MustSend() *DiskServiceCopyResponse { // [source,xml] // ---- // -// -// -// mydisk -// +// +// +// +// mydisk +// +// // // ---- // If the disk profile or the quota currently used by the disk are not defined for the new storage domain, they @@ -24348,16 +23357,16 @@ func (p *DiskServiceCopyRequest) MustSend() *DiskServiceCopyResponse { // [source,xml] // ---- // -// -// -// +// +// +// +// +// // // ---- -// type DiskServiceCopyResponse struct { } -// // This operation copies a disk to the specified storage domain. // For example, a disk can be copied using the following request: // [source] @@ -24368,10 +23377,12 @@ type DiskServiceCopyResponse struct { // [source,xml] // ---- // -// -// -// mydisk -// +// +// +// +// mydisk +// +// // // ---- // If the disk profile or the quota currently used by the disk are not defined for the new storage domain, they @@ -24380,19 +23391,18 @@ type DiskServiceCopyResponse struct { // [source,xml] // ---- // -// -// -// +// +// +// +// +// // // ---- -// func (p *DiskService) Copy() *DiskServiceCopyRequest { return &DiskServiceCopyRequest{DiskService: p} } -// // Exports a disk to an export storage domain. -// type DiskServiceExportRequest struct { DiskService *DiskService header map[string]string @@ -24521,22 +23531,16 @@ func (p *DiskServiceExportRequest) MustSend() *DiskServiceExportResponse { } } -// // Exports a disk to an export storage domain. -// type DiskServiceExportResponse struct { } -// // Exports a disk to an export storage domain. -// func (p *DiskService) Export() *DiskServiceExportRequest { return &DiskServiceExportRequest{DiskService: p} } -// // Retrieves the description of the disk. -// type DiskServiceGetRequest struct { DiskService *DiskService header map[string]string @@ -24655,9 +23659,7 @@ func (p *DiskServiceGetRequest) MustSend() *DiskServiceGetResponse { } } -// // Retrieves the description of the disk. -// type DiskServiceGetResponse struct { disk *Disk } @@ -24676,14 +23678,11 @@ func (p *DiskServiceGetResponse) MustDisk() *Disk { return p.disk } -// // Retrieves the description of the disk. -// func (p *DiskService) Get() *DiskServiceGetRequest { return &DiskServiceGetRequest{DiskService: p} } -// // Moves a disk to another storage domain. // For example, to move the disk with identifier `123` to a storage domain with identifier `456` send the following // request: @@ -24695,7 +23694,9 @@ func (p *DiskService) Get() *DiskServiceGetRequest { // [source,xml] // ---- // -// +// +// +// // // ---- // If the disk profile or the quota used currently by @@ -24708,12 +23709,13 @@ func (p *DiskService) Get() *DiskServiceGetRequest { // [source,xml] // ---- // -// -// -// +// +// +// +// +// // // ---- -// type DiskServiceMoveRequest struct { DiskService *DiskService header map[string]string @@ -24856,7 +23858,6 @@ func (p *DiskServiceMoveRequest) MustSend() *DiskServiceMoveResponse { } } -// // Moves a disk to another storage domain. // For example, to move the disk with identifier `123` to a storage domain with identifier `456` send the following // request: @@ -24868,7 +23869,9 @@ func (p *DiskServiceMoveRequest) MustSend() *DiskServiceMoveResponse { // [source,xml] // ---- // -// +// +// +// // // ---- // If the disk profile or the quota used currently by @@ -24881,16 +23884,16 @@ func (p *DiskServiceMoveRequest) MustSend() *DiskServiceMoveResponse { // [source,xml] // ---- // -// -// -// +// +// +// +// +// // // ---- -// type DiskServiceMoveResponse struct { } -// // Moves a disk to another storage domain. // For example, to move the disk with identifier `123` to a storage domain with identifier `456` send the following // request: @@ -24902,7 +23905,9 @@ type DiskServiceMoveResponse struct { // [source,xml] // ---- // -// +// +// +// // // ---- // If the disk profile or the quota used currently by @@ -24915,22 +23920,21 @@ type DiskServiceMoveResponse struct { // [source,xml] // ---- // -// -// -// +// +// +// +// +// // // ---- -// func (p *DiskService) Move() *DiskServiceMoveRequest { return &DiskServiceMoveRequest{DiskService: p} } -// // Reduces the size of the disk image. // Invokes _reduce_ on the logical volume (i.e. this is only applicable for block storage domains). // This is applicable for floating disks and disks attached to non-running virtual machines. // There is no need to specify the size as the optimal size is calculated automatically. -// type DiskServiceReduceRequest struct { DiskService *DiskService header map[string]string @@ -25043,31 +24047,27 @@ func (p *DiskServiceReduceRequest) MustSend() *DiskServiceReduceResponse { } } -// // Reduces the size of the disk image. // Invokes _reduce_ on the logical volume (i.e. this is only applicable for block storage domains). // This is applicable for floating disks and disks attached to non-running virtual machines. // There is no need to specify the size as the optimal size is calculated automatically. -// type DiskServiceReduceResponse struct { } -// // Reduces the size of the disk image. // Invokes _reduce_ on the logical volume (i.e. this is only applicable for block storage domains). // This is applicable for floating disks and disks attached to non-running virtual machines. // There is no need to specify the size as the optimal size is calculated automatically. -// func (p *DiskService) Reduce() *DiskServiceReduceRequest { return &DiskServiceReduceRequest{DiskService: p} } -// // Refreshes a direct LUN disk with up-to-date information from the storage. // Refreshing a direct LUN disk is useful when: -// - The LUN was added using the API without the host parameter, and therefore does not contain -// any information from the storage (see <>). -// - New information about the LUN is available on the storage and you want to update the LUN with it. +// - The LUN was added using the API without the host parameter, and therefore does not contain +// any information from the storage (see <>). +// - New information about the LUN is available on the storage and you want to update the LUN with it. +// // To refresh direct LUN disk `123` using host `456`, send the following request: // [source] // ---- @@ -25077,10 +24077,11 @@ func (p *DiskService) Reduce() *DiskServiceReduceRequest { // [source,xml] // ---- // -// +// +// +// // // ---- -// type DiskServiceRefreshLunRequest struct { DiskService *DiskService header map[string]string @@ -25191,12 +24192,12 @@ func (p *DiskServiceRefreshLunRequest) MustSend() *DiskServiceRefreshLunResponse } } -// // Refreshes a direct LUN disk with up-to-date information from the storage. // Refreshing a direct LUN disk is useful when: -// - The LUN was added using the API without the host parameter, and therefore does not contain -// any information from the storage (see <>). -// - New information about the LUN is available on the storage and you want to update the LUN with it. +// - The LUN was added using the API without the host parameter, and therefore does not contain +// any information from the storage (see <>). +// - New information about the LUN is available on the storage and you want to update the LUN with it. +// // To refresh direct LUN disk `123` using host `456`, send the following request: // [source] // ---- @@ -25206,19 +24207,20 @@ func (p *DiskServiceRefreshLunRequest) MustSend() *DiskServiceRefreshLunResponse // [source,xml] // ---- // -// +// +// +// // // ---- -// type DiskServiceRefreshLunResponse struct { } -// // Refreshes a direct LUN disk with up-to-date information from the storage. // Refreshing a direct LUN disk is useful when: -// - The LUN was added using the API without the host parameter, and therefore does not contain -// any information from the storage (see <>). -// - New information about the LUN is available on the storage and you want to update the LUN with it. +// - The LUN was added using the API without the host parameter, and therefore does not contain +// any information from the storage (see <>). +// - New information about the LUN is available on the storage and you want to update the LUN with it. +// // To refresh direct LUN disk `123` using host `456`, send the following request: // [source] // ---- @@ -25228,17 +24230,16 @@ type DiskServiceRefreshLunResponse struct { // [source,xml] // ---- // -// +// +// +// // // ---- -// func (p *DiskService) RefreshLun() *DiskServiceRefreshLunRequest { return &DiskServiceRefreshLunRequest{DiskService: p} } -// // Removes a disk. -// type DiskServiceRemoveRequest struct { DiskService *DiskService header map[string]string @@ -25342,26 +24343,20 @@ func (p *DiskServiceRemoveRequest) MustSend() *DiskServiceRemoveResponse { } } -// // Removes a disk. -// type DiskServiceRemoveResponse struct { } -// // Removes a disk. -// func (p *DiskService) Remove() *DiskServiceRemoveRequest { return &DiskServiceRemoveRequest{DiskService: p} } -// // Sparsify the disk. // Sparsification frees space in the disk image that is not used by its // filesystem. As a result, the image will occupy less space on the storage. // Currently sparsification works only on disks without snapshots. Disks // having derived disks are also not allowed. -// type DiskServiceSparsifyRequest struct { DiskService *DiskService header map[string]string @@ -25465,28 +24460,23 @@ func (p *DiskServiceSparsifyRequest) MustSend() *DiskServiceSparsifyResponse { } } -// // Sparsify the disk. // Sparsification frees space in the disk image that is not used by its // filesystem. As a result, the image will occupy less space on the storage. // Currently sparsification works only on disks without snapshots. Disks // having derived disks are also not allowed. -// type DiskServiceSparsifyResponse struct { } -// // Sparsify the disk. // Sparsification frees space in the disk image that is not used by its // filesystem. As a result, the image will occupy less space on the storage. // Currently sparsification works only on disks without snapshots. Disks // having derived disks are also not allowed. -// func (p *DiskService) Sparsify() *DiskServiceSparsifyRequest { return &DiskServiceSparsifyRequest{DiskService: p} } -// // Updates the parameters of the specified disk. // This operation allows updating the following floating disk properties: // * For Image disks: `provisioned_size`, `alias`, `description`, `wipe_after_delete`, `shareable`, `backup` and `disk_profile`. @@ -25502,14 +24492,15 @@ func (p *DiskService) Sparsify() *DiskServiceSparsifyRequest { // [source,xml] // ---- // -// qcow2_v3 -// new-alias -// new-desc +// +// qcow2_v3 +// new-alias +// new-desc +// // // ---- // Since the backend operation is asynchronous, the disk element that is returned // to the user might not be synced with the changed properties. -// type DiskServiceUpdateRequest struct { DiskService *DiskService header map[string]string @@ -25621,7 +24612,6 @@ func (p *DiskServiceUpdateRequest) MustSend() *DiskServiceUpdateResponse { } } -// // Updates the parameters of the specified disk. // This operation allows updating the following floating disk properties: // * For Image disks: `provisioned_size`, `alias`, `description`, `wipe_after_delete`, `shareable`, `backup` and `disk_profile`. @@ -25637,14 +24627,15 @@ func (p *DiskServiceUpdateRequest) MustSend() *DiskServiceUpdateResponse { // [source,xml] // ---- // -// qcow2_v3 -// new-alias -// new-desc +// +// qcow2_v3 +// new-alias +// new-desc +// // // ---- // Since the backend operation is asynchronous, the disk element that is returned // to the user might not be synced with the changed properties. -// type DiskServiceUpdateResponse struct { disk *Disk } @@ -25663,7 +24654,6 @@ func (p *DiskServiceUpdateResponse) MustDisk() *Disk { return p.disk } -// // Updates the parameters of the specified disk. // This operation allows updating the following floating disk properties: // * For Image disks: `provisioned_size`, `alias`, `description`, `wipe_after_delete`, `shareable`, `backup` and `disk_profile`. @@ -25679,19 +24669,19 @@ func (p *DiskServiceUpdateResponse) MustDisk() *Disk { // [source,xml] // ---- // -// qcow2_v3 -// new-alias -// new-desc +// +// qcow2_v3 +// new-alias +// new-desc +// // // ---- // Since the backend operation is asynchronous, the disk element that is returned // to the user might not be synced with the changed properties. -// func (p *DiskService) Update() *DiskServiceUpdateRequest { return &DiskServiceUpdateRequest{DiskService: p} } -// // Reference to the service that manages the DiskSnapshots. // For example, to list all disk snapshots under the disks resource '123': // .... @@ -25701,27 +24691,20 @@ func (p *DiskService) Update() *DiskServiceUpdateRequest { // .... // GET /ovirt-engine/api/disks/123/disksnapshots/789 // .... -// func (op *DiskService) DiskSnapshotsService() *DiskSnapshotsService { return NewDiskSnapshotsService(op.connection, fmt.Sprintf("%s/disksnapshots", op.path)) } -// // Reference to the service that manages the permissions assigned to the disk. -// func (op *DiskService) PermissionsService() *AssignedPermissionsService { return NewAssignedPermissionsService(op.connection, fmt.Sprintf("%s/permissions", op.path)) } -// -// func (op *DiskService) StatisticsService() *StatisticsService { return NewStatisticsService(op.connection, fmt.Sprintf("%s/statistics", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *DiskService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -25751,8 +24734,6 @@ func (op *DiskService) String() string { return fmt.Sprintf("DiskService:%s", op.path) } -// -// type DiskSnapshotService struct { BaseService } @@ -25764,8 +24745,6 @@ func NewDiskSnapshotService(connection *Connection, path string) *DiskSnapshotSe return &result } -// -// type DiskSnapshotServiceGetRequest struct { DiskSnapshotService *DiskSnapshotService header map[string]string @@ -25874,8 +24853,6 @@ func (p *DiskSnapshotServiceGetRequest) MustSend() *DiskSnapshotServiceGetRespon } } -// -// type DiskSnapshotServiceGetResponse struct { snapshot *DiskSnapshot } @@ -25894,14 +24871,10 @@ func (p *DiskSnapshotServiceGetResponse) MustSnapshot() *DiskSnapshot { return p.snapshot } -// -// func (p *DiskSnapshotService) Get() *DiskSnapshotServiceGetRequest { return &DiskSnapshotServiceGetRequest{DiskSnapshotService: p} } -// -// type DiskSnapshotServiceRemoveRequest struct { DiskSnapshotService *DiskSnapshotService header map[string]string @@ -26005,20 +24978,14 @@ func (p *DiskSnapshotServiceRemoveRequest) MustSend() *DiskSnapshotServiceRemove } } -// -// type DiskSnapshotServiceRemoveResponse struct { } -// -// func (p *DiskSnapshotService) Remove() *DiskSnapshotServiceRemoveRequest { return &DiskSnapshotServiceRemoveRequest{DiskSnapshotService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *DiskSnapshotService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -26030,9 +24997,7 @@ func (op *DiskSnapshotService) String() string { return fmt.Sprintf("DiskSnapshotService:%s", op.path) } -// // Manages the collection of disk snapshots available in an storage domain. -// type DiskSnapshotsService struct { BaseService } @@ -26044,10 +25009,8 @@ func NewDiskSnapshotsService(connection *Connection, path string) *DiskSnapshots return &result } -// // Returns the list of disk snapshots of the storage domain. // The order of the returned list of disk snapshots isn't guaranteed. -// type DiskSnapshotsServiceListRequest struct { DiskSnapshotsService *DiskSnapshotsService header map[string]string @@ -26176,10 +25139,8 @@ func (p *DiskSnapshotsServiceListRequest) MustSend() *DiskSnapshotsServiceListRe } } -// // Returns the list of disk snapshots of the storage domain. // The order of the returned list of disk snapshots isn't guaranteed. -// type DiskSnapshotsServiceListResponse struct { snapshots *DiskSnapshotSlice } @@ -26198,23 +25159,17 @@ func (p *DiskSnapshotsServiceListResponse) MustSnapshots() *DiskSnapshotSlice { return p.snapshots } -// // Returns the list of disk snapshots of the storage domain. // The order of the returned list of disk snapshots isn't guaranteed. -// func (p *DiskSnapshotsService) List() *DiskSnapshotsServiceListRequest { return &DiskSnapshotsServiceListRequest{DiskSnapshotsService: p} } -// -// func (op *DiskSnapshotsService) SnapshotService(id string) *DiskSnapshotService { return NewDiskSnapshotService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *DiskSnapshotsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -26230,9 +25185,7 @@ func (op *DiskSnapshotsService) String() string { return fmt.Sprintf("DiskSnapshotsService:%s", op.path) } -// // Manages the collection of disks available in the system. -// type DisksService struct { BaseService } @@ -26244,10 +25197,254 @@ func NewDisksService(connection *Connection, path string) *DisksService { return &result } +// Adds a new floating disk. +// There are three types of disks that can be added - disk image, direct LUN and +// +// https://wiki.openstack.org/wiki/Cinder[Cinder] disk. +// +// *Adding a new image disk:* +// When creating a new floating image <>, the API requires the `storage_domain`, `provisioned_size` +// and `format` attributes. +// Note that block storage domains (i.e., storage domains with the <> of iSCSI or +// FCP) don't support the combination of the raw `format` with `sparse=true`, so `sparse=false` must be stated +// explicitly. +// To create a new floating image disk with specified `provisioned_size`, `format` and `name` on a storage domain +// with an id `123`, send a request as follows: +// [source] +// ---- +// POST /ovirt-engine/api/disks +// ---- +// With a request body as follows: +// [source,xml] +// ---- +// +// +// +// +// +// mydisk +// 1048576 +// cow // +// +// ---- +// *Adding a new direct LUN disk:* +// When adding a new floating direct LUN via the API, there are two flavors that can be used: +// . With a `host` element - in this case, the host is used for sanity checks (e.g., that the LUN is visible) and +// to retrieve basic information about the LUN (e.g., size and serial). +// . Without a `host` element - in this case, the operation is a database-only operation, and the storage is never +// accessed. +// To create a new floating direct LUN disk with a `host` element with an id `123`, specified `alias`, `type` and +// `logical_unit` with an id `456` (that has the attributes `address`, `port` and `target`), +// send a request as follows: +// [source] +// ---- +// POST /ovirt-engine/api/disks +// ---- +// With a request body as follows: +// [source,xml] +// ---- +// +// +// mylun +// +// +// iscsi +// +// +//
10.35.10.20
+// 3260 +// iqn.2017-01.com.myhost:444 +//
+//
+//
+// +//
+// ---- +// To create a new floating direct LUN disk without using a host, remove the `host` element. +// *Adding a new Cinder disk:* +// To create a new floating Cinder disk, send a request as follows: +// [source] +// ---- +// POST /ovirt-engine/api/disks +// ---- +// With a request body as follows: +// [source,xml] +// ---- +// +// +// +// myceph +// +// +// +// cinderDomain +// +// +// 1073741824 +// virtio +// raw +// +// +// ---- +// *Adding a floating disks in order to upload disk snapshots:* +// Since version 4.2 of the engine it is possible to upload disks with +// snapshots. This request should be used to create the base image of the +// images chain (The consecutive disk snapshots (images), should be created +// using `disk-attachments` element when creating a snapshot). +// The disk has to be created with the same disk identifier and image identifier +// of the uploaded image. I.e. the identifiers should be saved as part of the +// backup process. The image identifier can be also fetched using the +// `qemu-img info` command. For example, if the disk image is stored into +// a file named `b7a4c6c5-443b-47c5-967f-6abc79675e8b/myimage.img`: +// [source,shell] +// ---- +// $ qemu-img info b7a4c6c5-443b-47c5-967f-6abc79675e8b/myimage.img +// image: b548366b-fb51-4b41-97be-733c887fe305 +// file format: qcow2 +// virtual size: 1.0G (1073741824 bytes) +// disk size: 196K +// cluster_size: 65536 +// backing file: ad58716a-1fe9-481f-815e-664de1df04eb +// backing file format: raw +// ---- +// To create a disk with with the disk identifier and image identifier obtained +// with the `qemu-img info` command shown above, send a request like this: +// [source] +// ---- +// POST /ovirt-engine/api/disks +// ---- +// With a request body as follows: +// [source,xml] +// ---- +// +// +// b548366b-fb51-4b41-97be-733c887fe305 +// +// +// +// mydisk +// 1048576 +// cow +// +// +// ---- +type DisksServiceAddRequest struct { + DisksService *DisksService + header map[string]string + query map[string]string + disk *Disk +} + +func (p *DisksServiceAddRequest) Header(key, value string) *DisksServiceAddRequest { + if p.header == nil { + p.header = make(map[string]string) + } + p.header[key] = value + return p +} + +func (p *DisksServiceAddRequest) Query(key, value string) *DisksServiceAddRequest { + if p.query == nil { + p.query = make(map[string]string) + } + p.query[key] = value + return p +} + +func (p *DisksServiceAddRequest) Disk(disk *Disk) *DisksServiceAddRequest { + p.disk = disk + return p +} + +func (p *DisksServiceAddRequest) Send() (*DisksServiceAddResponse, error) { + rawURL := fmt.Sprintf("%s%s", p.DisksService.connection.URL(), p.DisksService.path) + values := make(url.Values) + if p.query != nil { + for k, v := range p.query { + values[k] = []string{v} + } + } + if len(values) > 0 { + rawURL = fmt.Sprintf("%s?%s", rawURL, values.Encode()) + } + var body bytes.Buffer + writer := NewXMLWriter(&body) + err := XMLDiskWriteOne(writer, p.disk, "") + if err != nil { + return nil, err + } + writer.Flush() + req, err := http.NewRequest("POST", rawURL, &body) + if err != nil { + return nil, err + } + + for hk, hv := range p.DisksService.connection.headers { + req.Header.Add(hk, hv) + } + + if p.header != nil { + for hk, hv := range p.header { + req.Header.Add(hk, hv) + } + } + + req.Header.Add("User-Agent", fmt.Sprintf("GoSDK/%s", SDK_VERSION)) + req.Header.Add("Version", "4") + req.Header.Add("Content-Type", "application/xml") + req.Header.Add("Accept", "application/xml") + // get OAuth access token + token, err := p.DisksService.connection.authenticate() + if err != nil { + return nil, err + } + req.Header.Add("Authorization", fmt.Sprintf("Bearer %s", token)) + // Send the request and wait for the response + resp, err := p.DisksService.connection.client.Do(req) + if err != nil { + return nil, err + } + defer resp.Body.Close() + if p.DisksService.connection.logFunc != nil { + dumpReq, err := httputil.DumpRequestOut(req, true) + if err != nil { + return nil, err + } + dumpResp, err := httputil.DumpResponse(resp, true) + if err != nil { + return nil, err + } + p.DisksService.connection.logFunc("<<<<<>>>>>\n", string(dumpReq), string(dumpResp)) + } + respBodyBytes, errReadBody := ioutil.ReadAll(resp.Body) + if errReadBody != nil { + return nil, errReadBody + } + if !Contains(resp.StatusCode, []int{200, 201, 202}) { + return nil, CheckFault(respBodyBytes, resp) + } + reader := NewXMLReader(respBodyBytes) + result, err := XMLDiskReadOne(reader, nil, "") + if err != nil { + return nil, err + } + return &DisksServiceAddResponse{disk: result}, nil +} + +func (p *DisksServiceAddRequest) MustSend() *DisksServiceAddResponse { + if v, err := p.Send(); err != nil { + panic(err) + } else { + return v + } +} + // Adds a new floating disk. // There are three types of disks that can be added - disk image, direct LUN and -// https://wiki.openstack.org/wiki/Cinder[Cinder] disk. +// +// https://wiki.openstack.org/wiki/Cinder[Cinder] disk. +// // *Adding a new image disk:* // When creating a new floating image <>, the API requires the `storage_domain`, `provisioned_size` // and `format` attributes. @@ -26264,12 +25461,14 @@ func NewDisksService(connection *Connection, path string) *DisksService { // [source,xml] // ---- // -// -// -// -// mydisk -// 1048576 -// cow +// +// +// +// +// mydisk +// 1048576 +// cow +// // // ---- // *Adding a new direct LUN disk:* @@ -26289,18 +25488,20 @@ func NewDisksService(connection *Connection, path string) *DisksService { // [source,xml] // ---- // -// mylun -// -// -// iscsi -// -// -//
10.35.10.20
-// 3260 -// iqn.2017-01.com.myhost:444 -//
-//
-//
+// +// mylun +// +// +// iscsi +// +// +//
10.35.10.20
+// 3260 +// iqn.2017-01.com.myhost:444 +//
+//
+//
+// //
// ---- // To create a new floating direct LUN disk without using a host, remove the `host` element. @@ -26314,17 +25515,19 @@ func NewDisksService(connection *Connection, path string) *DisksService { // [source,xml] // ---- // -// -// myceph -// -// -// -// cinderDomain -// -// -// 1073741824 -// virtio -// raw +// +// +// myceph +// +// +// +// cinderDomain +// +// +// 1073741824 +// virtio +// raw +// // // ---- // *Adding a floating disks in order to upload disk snapshots:* @@ -26358,251 +25561,17 @@ func NewDisksService(connection *Connection, path string) *DisksService { // [source,xml] // ---- // -// b548366b-fb51-4b41-97be-733c887fe305 -// -// -// -// mydisk -// 1048576 -// cow -// -// ---- // -type DisksServiceAddRequest struct { - DisksService *DisksService - header map[string]string - query map[string]string - disk *Disk -} - -func (p *DisksServiceAddRequest) Header(key, value string) *DisksServiceAddRequest { - if p.header == nil { - p.header = make(map[string]string) - } - p.header[key] = value - return p -} - -func (p *DisksServiceAddRequest) Query(key, value string) *DisksServiceAddRequest { - if p.query == nil { - p.query = make(map[string]string) - } - p.query[key] = value - return p -} - -func (p *DisksServiceAddRequest) Disk(disk *Disk) *DisksServiceAddRequest { - p.disk = disk - return p -} - -func (p *DisksServiceAddRequest) Send() (*DisksServiceAddResponse, error) { - rawURL := fmt.Sprintf("%s%s", p.DisksService.connection.URL(), p.DisksService.path) - values := make(url.Values) - if p.query != nil { - for k, v := range p.query { - values[k] = []string{v} - } - } - if len(values) > 0 { - rawURL = fmt.Sprintf("%s?%s", rawURL, values.Encode()) - } - var body bytes.Buffer - writer := NewXMLWriter(&body) - err := XMLDiskWriteOne(writer, p.disk, "") - if err != nil { - return nil, err - } - writer.Flush() - req, err := http.NewRequest("POST", rawURL, &body) - if err != nil { - return nil, err - } - - for hk, hv := range p.DisksService.connection.headers { - req.Header.Add(hk, hv) - } - - if p.header != nil { - for hk, hv := range p.header { - req.Header.Add(hk, hv) - } - } - - req.Header.Add("User-Agent", fmt.Sprintf("GoSDK/%s", SDK_VERSION)) - req.Header.Add("Version", "4") - req.Header.Add("Content-Type", "application/xml") - req.Header.Add("Accept", "application/xml") - // get OAuth access token - token, err := p.DisksService.connection.authenticate() - if err != nil { - return nil, err - } - req.Header.Add("Authorization", fmt.Sprintf("Bearer %s", token)) - // Send the request and wait for the response - resp, err := p.DisksService.connection.client.Do(req) - if err != nil { - return nil, err - } - defer resp.Body.Close() - if p.DisksService.connection.logFunc != nil { - dumpReq, err := httputil.DumpRequestOut(req, true) - if err != nil { - return nil, err - } - dumpResp, err := httputil.DumpResponse(resp, true) - if err != nil { - return nil, err - } - p.DisksService.connection.logFunc("<<<<<>>>>>\n", string(dumpReq), string(dumpResp)) - } - respBodyBytes, errReadBody := ioutil.ReadAll(resp.Body) - if errReadBody != nil { - return nil, errReadBody - } - if !Contains(resp.StatusCode, []int{200, 201, 202}) { - return nil, CheckFault(respBodyBytes, resp) - } - reader := NewXMLReader(respBodyBytes) - result, err := XMLDiskReadOne(reader, nil, "") - if err != nil { - return nil, err - } - return &DisksServiceAddResponse{disk: result}, nil -} - -func (p *DisksServiceAddRequest) MustSend() *DisksServiceAddResponse { - if v, err := p.Send(); err != nil { - panic(err) - } else { - return v - } -} - +// b548366b-fb51-4b41-97be-733c887fe305 +// +// +// +// mydisk +// 1048576 +// cow // -// Adds a new floating disk. -// There are three types of disks that can be added - disk image, direct LUN and -// https://wiki.openstack.org/wiki/Cinder[Cinder] disk. -// *Adding a new image disk:* -// When creating a new floating image <>, the API requires the `storage_domain`, `provisioned_size` -// and `format` attributes. -// Note that block storage domains (i.e., storage domains with the <> of iSCSI or -// FCP) don't support the combination of the raw `format` with `sparse=true`, so `sparse=false` must be stated -// explicitly. -// To create a new floating image disk with specified `provisioned_size`, `format` and `name` on a storage domain -// with an id `123`, send a request as follows: -// [source] -// ---- -// POST /ovirt-engine/api/disks -// ---- -// With a request body as follows: -// [source,xml] -// ---- -// -// -// -// -// mydisk -// 1048576 -// cow // // ---- -// *Adding a new direct LUN disk:* -// When adding a new floating direct LUN via the API, there are two flavors that can be used: -// . With a `host` element - in this case, the host is used for sanity checks (e.g., that the LUN is visible) and -// to retrieve basic information about the LUN (e.g., size and serial). -// . Without a `host` element - in this case, the operation is a database-only operation, and the storage is never -// accessed. -// To create a new floating direct LUN disk with a `host` element with an id `123`, specified `alias`, `type` and -// `logical_unit` with an id `456` (that has the attributes `address`, `port` and `target`), -// send a request as follows: -// [source] -// ---- -// POST /ovirt-engine/api/disks -// ---- -// With a request body as follows: -// [source,xml] -// ---- -// -// mylun -// -// -// iscsi -// -// -//
10.35.10.20
-// 3260 -// iqn.2017-01.com.myhost:444 -//
-//
-//
-//
-// ---- -// To create a new floating direct LUN disk without using a host, remove the `host` element. -// *Adding a new Cinder disk:* -// To create a new floating Cinder disk, send a request as follows: -// [source] -// ---- -// POST /ovirt-engine/api/disks -// ---- -// With a request body as follows: -// [source,xml] -// ---- -// -// -// myceph -// -// -// -// cinderDomain -// -// -// 1073741824 -// virtio -// raw -// -// ---- -// *Adding a floating disks in order to upload disk snapshots:* -// Since version 4.2 of the engine it is possible to upload disks with -// snapshots. This request should be used to create the base image of the -// images chain (The consecutive disk snapshots (images), should be created -// using `disk-attachments` element when creating a snapshot). -// The disk has to be created with the same disk identifier and image identifier -// of the uploaded image. I.e. the identifiers should be saved as part of the -// backup process. The image identifier can be also fetched using the -// `qemu-img info` command. For example, if the disk image is stored into -// a file named `b7a4c6c5-443b-47c5-967f-6abc79675e8b/myimage.img`: -// [source,shell] -// ---- -// $ qemu-img info b7a4c6c5-443b-47c5-967f-6abc79675e8b/myimage.img -// image: b548366b-fb51-4b41-97be-733c887fe305 -// file format: qcow2 -// virtual size: 1.0G (1073741824 bytes) -// disk size: 196K -// cluster_size: 65536 -// backing file: ad58716a-1fe9-481f-815e-664de1df04eb -// backing file format: raw -// ---- -// To create a disk with with the disk identifier and image identifier obtained -// with the `qemu-img info` command shown above, send a request like this: -// [source] -// ---- -// POST /ovirt-engine/api/disks -// ---- -// With a request body as follows: -// [source,xml] -// ---- -// -// b548366b-fb51-4b41-97be-733c887fe305 -// -// -// -// mydisk -// 1048576 -// cow -// -// ---- -// type DisksServiceAddResponse struct { disk *Disk } @@ -26621,10 +25590,11 @@ func (p *DisksServiceAddResponse) MustDisk() *Disk { return p.disk } -// // Adds a new floating disk. // There are three types of disks that can be added - disk image, direct LUN and -// https://wiki.openstack.org/wiki/Cinder[Cinder] disk. +// +// https://wiki.openstack.org/wiki/Cinder[Cinder] disk. +// // *Adding a new image disk:* // When creating a new floating image <>, the API requires the `storage_domain`, `provisioned_size` // and `format` attributes. @@ -26641,12 +25611,14 @@ func (p *DisksServiceAddResponse) MustDisk() *Disk { // [source,xml] // ---- // -// -// -// -// mydisk -// 1048576 -// cow +// +// +// +// +// mydisk +// 1048576 +// cow +// // // ---- // *Adding a new direct LUN disk:* @@ -26666,18 +25638,20 @@ func (p *DisksServiceAddResponse) MustDisk() *Disk { // [source,xml] // ---- // -// mylun -// -// -// iscsi -// -// -//
10.35.10.20
-// 3260 -// iqn.2017-01.com.myhost:444 -//
-//
-//
+// +// mylun +// +// +// iscsi +// +// +//
10.35.10.20
+// 3260 +// iqn.2017-01.com.myhost:444 +//
+//
+//
+// //
// ---- // To create a new floating direct LUN disk without using a host, remove the `host` element. @@ -26691,17 +25665,19 @@ func (p *DisksServiceAddResponse) MustDisk() *Disk { // [source,xml] // ---- // -// -// myceph -// -// -// -// cinderDomain -// -// -// 1073741824 -// virtio -// raw +// +// +// myceph +// +// +// +// cinderDomain +// +// +// 1073741824 +// virtio +// raw +// // // ---- // *Adding a floating disks in order to upload disk snapshots:* @@ -26735,21 +25711,21 @@ func (p *DisksServiceAddResponse) MustDisk() *Disk { // [source,xml] // ---- // -// b548366b-fb51-4b41-97be-733c887fe305 -// -// -// -// mydisk -// 1048576 -// cow +// +// b548366b-fb51-4b41-97be-733c887fe305 +// +// +// +// mydisk +// 1048576 +// cow +// // // ---- -// func (p *DisksService) Add() *DisksServiceAddRequest { return &DisksServiceAddRequest{DisksService: p} } -// // Get list of disks. // [source] // ---- @@ -26759,28 +25735,29 @@ func (p *DisksService) Add() *DisksServiceAddRequest { // [source,xml] // ---- // -// -// ... -// MyDisk -// MyDisk description -// -// -// 5345845248 -// MyDisk alias -// ... -// ok -// image -// false -// -// -// ... -// -// ... +// +// +// ... +// MyDisk +// MyDisk description +// +// +// 5345845248 +// MyDisk alias +// ... +// ok +// image +// false +// +// +// ... +// +// ... +// // // ---- // The order of the returned list of disks is guaranteed only if the `sortby` clause is included in the // `search` parameter. -// type DisksServiceListRequest struct { DisksService *DisksService header map[string]string @@ -26919,7 +25896,6 @@ func (p *DisksServiceListRequest) MustSend() *DisksServiceListResponse { } } -// // Get list of disks. // [source] // ---- @@ -26929,28 +25905,29 @@ func (p *DisksServiceListRequest) MustSend() *DisksServiceListResponse { // [source,xml] // ---- // -// -// ... -// MyDisk -// MyDisk description -// -// -// 5345845248 -// MyDisk alias -// ... -// ok -// image -// false -// -// -// ... -// -// ... +// +// +// ... +// MyDisk +// MyDisk description +// +// +// 5345845248 +// MyDisk alias +// ... +// ok +// image +// false +// +// +// ... +// +// ... +// // // ---- // The order of the returned list of disks is guaranteed only if the `sortby` clause is included in the // `search` parameter. -// type DisksServiceListResponse struct { disks *DiskSlice } @@ -26969,7 +25946,6 @@ func (p *DisksServiceListResponse) MustDisks() *DiskSlice { return p.disks } -// // Get list of disks. // [source] // ---- @@ -26979,35 +25955,34 @@ func (p *DisksServiceListResponse) MustDisks() *DiskSlice { // [source,xml] // ---- // -// -// ... -// MyDisk -// MyDisk description -// -// -// 5345845248 -// MyDisk alias -// ... -// ok -// image -// false -// -// -// ... -// -// ... +// +// +// ... +// MyDisk +// MyDisk description +// +// +// 5345845248 +// MyDisk alias +// ... +// ok +// image +// false +// +// +// ... +// +// ... +// // // ---- // The order of the returned list of disks is guaranteed only if the `sortby` clause is included in the // `search` parameter. -// func (p *DisksService) List() *DisksServiceListRequest { return &DisksServiceListRequest{DisksService: p} } -// // Add a new lun disk to the storage domain. -// type DisksServiceAddLunRequest struct { DisksService *DisksService header map[string]string @@ -27119,9 +26094,7 @@ func (p *DisksServiceAddLunRequest) MustSend() *DisksServiceAddLunResponse { } } -// // Add a new lun disk to the storage domain. -// type DisksServiceAddLunResponse struct { disk *Disk } @@ -27140,16 +26113,12 @@ func (p *DisksServiceAddLunResponse) MustDisk() *Disk { return p.disk } -// // Add a new lun disk to the storage domain. -// func (p *DisksService) AddLun() *DisksServiceAddLunRequest { return &DisksServiceAddLunRequest{DisksService: p} } -// // Add a new disk to the storage domain with the specified size allocating space from the storage domain. -// type DisksServiceAddOnStorageDomainRequest struct { DisksService *DisksService header map[string]string @@ -27261,9 +26230,7 @@ func (p *DisksServiceAddOnStorageDomainRequest) MustSend() *DisksServiceAddOnSto } } -// // Add a new disk to the storage domain with the specified size allocating space from the storage domain. -// type DisksServiceAddOnStorageDomainResponse struct { disk *Disk } @@ -27282,23 +26249,17 @@ func (p *DisksServiceAddOnStorageDomainResponse) MustDisk() *Disk { return p.disk } -// // Add a new disk to the storage domain with the specified size allocating space from the storage domain. -// func (p *DisksService) AddOnStorageDomain() *DisksServiceAddOnStorageDomainRequest { return &DisksServiceAddOnStorageDomainRequest{DisksService: p} } -// // Reference to a service managing a specific disk. -// func (op *DisksService) DiskService(id string) *DiskService { return NewDiskService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *DisksService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -27314,9 +26275,7 @@ func (op *DisksService) String() string { return fmt.Sprintf("DisksService:%s", op.path) } -// // A service to manage an event in the system. -// type EventService struct { BaseService } @@ -27328,7 +26287,6 @@ func NewEventService(connection *Connection, path string) *EventService { return &result } -// // Get an event. // An example of getting an event: // [source] @@ -27338,23 +26296,24 @@ func NewEventService(connection *Connection, path string) *EventService { // [source,xml] // ---- // -// Host example.com was added by admin@internal-authz. -// 42 -// 135 -// -1 -// 30 -// oVirt -// normal -// -// -// -// +// +// Host example.com was added by admin@internal-authz. +// 42 +// 135 +// -1 +// 30 +// oVirt +// normal +// +// +// +// +// // // ---- // Note that the number of fields changes according to the information that resides on the event. // For example, for storage domain related events you will get the storage domain reference, // as well as the reference for the data center this storage domain resides in. -// type EventServiceGetRequest struct { EventService *EventService header map[string]string @@ -27463,7 +26422,6 @@ func (p *EventServiceGetRequest) MustSend() *EventServiceGetResponse { } } -// // Get an event. // An example of getting an event: // [source] @@ -27473,23 +26431,24 @@ func (p *EventServiceGetRequest) MustSend() *EventServiceGetResponse { // [source,xml] // ---- // -// Host example.com was added by admin@internal-authz. -// 42 -// 135 -// -1 -// 30 -// oVirt -// normal -// -// -// -// +// +// Host example.com was added by admin@internal-authz. +// 42 +// 135 +// -1 +// 30 +// oVirt +// normal +// +// +// +// +// // // ---- // Note that the number of fields changes according to the information that resides on the event. // For example, for storage domain related events you will get the storage domain reference, // as well as the reference for the data center this storage domain resides in. -// type EventServiceGetResponse struct { event *Event } @@ -27508,7 +26467,6 @@ func (p *EventServiceGetResponse) MustEvent() *Event { return p.event } -// // Get an event. // An example of getting an event: // [source] @@ -27518,35 +26476,34 @@ func (p *EventServiceGetResponse) MustEvent() *Event { // [source,xml] // ---- // -// Host example.com was added by admin@internal-authz. -// 42 -// 135 -// -1 -// 30 -// oVirt -// normal -// -// -// -// +// +// Host example.com was added by admin@internal-authz. +// 42 +// 135 +// -1 +// 30 +// oVirt +// normal +// +// +// +// +// // // ---- // Note that the number of fields changes according to the information that resides on the event. // For example, for storage domain related events you will get the storage domain reference, // as well as the reference for the data center this storage domain resides in. -// func (p *EventService) Get() *EventServiceGetRequest { return &EventServiceGetRequest{EventService: p} } -// // Removes an event from internal audit log. // An event can be removed by sending following request // [source] // ---- // DELETE /ovirt-engine/api/events/123 // ---- -// type EventServiceRemoveRequest struct { EventService *EventService header map[string]string @@ -27650,32 +26607,26 @@ func (p *EventServiceRemoveRequest) MustSend() *EventServiceRemoveResponse { } } -// // Removes an event from internal audit log. // An event can be removed by sending following request // [source] // ---- // DELETE /ovirt-engine/api/events/123 // ---- -// type EventServiceRemoveResponse struct { } -// // Removes an event from internal audit log. // An event can be removed by sending following request // [source] // ---- // DELETE /ovirt-engine/api/events/123 // ---- -// func (p *EventService) Remove() *EventServiceRemoveRequest { return &EventServiceRemoveRequest{EventService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *EventService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -27687,9 +26638,7 @@ func (op *EventService) String() string { return fmt.Sprintf("EventService:%s", op.path) } -// // A service to manage a specific event-subscription in the system. -// type EventSubscriptionService struct { BaseService } @@ -27701,7 +26650,6 @@ func NewEventSubscriptionService(connection *Connection, path string) *EventSubs return &result } -// // Gets the information about the event-subscription. // For example to retrieve the information about the subscription of user '123' to // the event 'vm_console_detected': @@ -27711,13 +26659,14 @@ func NewEventSubscriptionService(connection *Connection, path string) *EventSubs // [source,xml] // ---- // -// vm_console_detected -// smtp -// -//
a@b.com
+// +// vm_console_detected +// smtp +// +//
a@b.com
+// //
// ---- -// type EventSubscriptionServiceGetRequest struct { EventSubscriptionService *EventSubscriptionService header map[string]string @@ -27816,7 +26765,6 @@ func (p *EventSubscriptionServiceGetRequest) MustSend() *EventSubscriptionServic } } -// // Gets the information about the event-subscription. // For example to retrieve the information about the subscription of user '123' to // the event 'vm_console_detected': @@ -27826,13 +26774,14 @@ func (p *EventSubscriptionServiceGetRequest) MustSend() *EventSubscriptionServic // [source,xml] // ---- // -// vm_console_detected -// smtp -// -//
a@b.com
+// +// vm_console_detected +// smtp +// +//
a@b.com
+// //
// ---- -// type EventSubscriptionServiceGetResponse struct { eventSubscription *EventSubscription } @@ -27851,7 +26800,6 @@ func (p *EventSubscriptionServiceGetResponse) MustEventSubscription() *EventSubs return p.eventSubscription } -// // Gets the information about the event-subscription. // For example to retrieve the information about the subscription of user '123' to // the event 'vm_console_detected': @@ -27861,24 +26809,23 @@ func (p *EventSubscriptionServiceGetResponse) MustEventSubscription() *EventSubs // [source,xml] // ---- // -// vm_console_detected -// smtp -// -//
a@b.com
+// +// vm_console_detected +// smtp +// +//
a@b.com
+// //
// ---- -// func (p *EventSubscriptionService) Get() *EventSubscriptionServiceGetRequest { return &EventSubscriptionServiceGetRequest{EventSubscriptionService: p} } -// // Removes the event-subscription from the system. // For example to remove user 123's subscription to `vm_console_detected` event: // .... // DELETE /ovirt-engine/api/users/123/vm_console_detected // .... -// type EventSubscriptionServiceRemoveRequest struct { EventSubscriptionService *EventSubscriptionService header map[string]string @@ -27982,30 +26929,24 @@ func (p *EventSubscriptionServiceRemoveRequest) MustSend() *EventSubscriptionSer } } -// // Removes the event-subscription from the system. // For example to remove user 123's subscription to `vm_console_detected` event: // .... // DELETE /ovirt-engine/api/users/123/vm_console_detected // .... -// type EventSubscriptionServiceRemoveResponse struct { } -// // Removes the event-subscription from the system. // For example to remove user 123's subscription to `vm_console_detected` event: // .... // DELETE /ovirt-engine/api/users/123/vm_console_detected // .... -// func (p *EventSubscriptionService) Remove() *EventSubscriptionServiceRemoveRequest { return &EventSubscriptionServiceRemoveRequest{EventSubscriptionService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *EventSubscriptionService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -28017,9 +26958,7 @@ func (op *EventSubscriptionService) String() string { return fmt.Sprintf("EventSubscriptionService:%s", op.path) } -// // Represents a service to manage collection of event-subscription of a user. -// type EventSubscriptionsService struct { BaseService } @@ -28031,7 +26970,6 @@ func NewEventSubscriptionsService(connection *Connection, path string) *EventSub return &result } -// // Add a new event-subscription to the system. // An event-subscription is always added in the context of a user. For example, to add new // event-subscription for `host_high_cpu_use` for user `123`, and have the notification @@ -28043,8 +26981,10 @@ func NewEventSubscriptionsService(connection *Connection, path string) *EventSub // [source,xml] // ---- // -// host_high_cpu_use -//
a@b.com
+// +// host_high_cpu_use +//
a@b.com
+// //
// ---- // The event name will become the ID of the new event-subscription entity: @@ -28053,7 +26993,6 @@ func NewEventSubscriptionsService(connection *Connection, path string) *EventSub // is already known to the API from the context. Note also that event-subscription entity contains // notification-method field, but it is not provided either in the request body. This is because currently // it's always set to SMTP as SNMP notifications are still unsupported by the API layer. -// type EventSubscriptionsServiceAddRequest struct { EventSubscriptionsService *EventSubscriptionsService header map[string]string @@ -28165,7 +27104,6 @@ func (p *EventSubscriptionsServiceAddRequest) MustSend() *EventSubscriptionsServ } } -// // Add a new event-subscription to the system. // An event-subscription is always added in the context of a user. For example, to add new // event-subscription for `host_high_cpu_use` for user `123`, and have the notification @@ -28177,8 +27115,10 @@ func (p *EventSubscriptionsServiceAddRequest) MustSend() *EventSubscriptionsServ // [source,xml] // ---- // -// host_high_cpu_use -//
a@b.com
+// +// host_high_cpu_use +//
a@b.com
+// //
// ---- // The event name will become the ID of the new event-subscription entity: @@ -28187,7 +27127,6 @@ func (p *EventSubscriptionsServiceAddRequest) MustSend() *EventSubscriptionsServ // is already known to the API from the context. Note also that event-subscription entity contains // notification-method field, but it is not provided either in the request body. This is because currently // it's always set to SMTP as SNMP notifications are still unsupported by the API layer. -// type EventSubscriptionsServiceAddResponse struct { eventSubscription *EventSubscription } @@ -28206,7 +27145,6 @@ func (p *EventSubscriptionsServiceAddResponse) MustEventSubscription() *EventSub return p.eventSubscription } -// // Add a new event-subscription to the system. // An event-subscription is always added in the context of a user. For example, to add new // event-subscription for `host_high_cpu_use` for user `123`, and have the notification @@ -28218,8 +27156,10 @@ func (p *EventSubscriptionsServiceAddResponse) MustEventSubscription() *EventSub // [source,xml] // ---- // -// host_high_cpu_use -//
a@b.com
+// +// host_high_cpu_use +//
a@b.com
+// //
// ---- // The event name will become the ID of the new event-subscription entity: @@ -28228,12 +27168,10 @@ func (p *EventSubscriptionsServiceAddResponse) MustEventSubscription() *EventSub // is already known to the API from the context. Note also that event-subscription entity contains // notification-method field, but it is not provided either in the request body. This is because currently // it's always set to SMTP as SNMP notifications are still unsupported by the API layer. -// func (p *EventSubscriptionsService) Add() *EventSubscriptionsServiceAddRequest { return &EventSubscriptionsServiceAddRequest{EventSubscriptionsService: p} } -// // List the event-subscriptions for the provided user. // For example to list event-subscriptions for user `123`: // .... @@ -28242,21 +27180,22 @@ func (p *EventSubscriptionsService) Add() *EventSubscriptionsServiceAddRequest { // [source,xml] // ---- // -// -// host_install_failed -// smtp -// -//
a@b.com
-//
-// -// vm_paused -// smtp -// -//
a@b.com
-//
+// +// +// host_install_failed +// smtp +// +//
a@b.com
+//
+// +// vm_paused +// smtp +// +//
a@b.com
+//
+// //
// ---- -// type EventSubscriptionsServiceListRequest struct { EventSubscriptionsService *EventSubscriptionsService header map[string]string @@ -28375,7 +27314,6 @@ func (p *EventSubscriptionsServiceListRequest) MustSend() *EventSubscriptionsSer } } -// // List the event-subscriptions for the provided user. // For example to list event-subscriptions for user `123`: // .... @@ -28384,21 +27322,22 @@ func (p *EventSubscriptionsServiceListRequest) MustSend() *EventSubscriptionsSer // [source,xml] // ---- // -// -// host_install_failed -// smtp -// -//
a@b.com
-//
-// -// vm_paused -// smtp -// -//
a@b.com
-//
+// +// +// host_install_failed +// smtp +// +//
a@b.com
+//
+// +// vm_paused +// smtp +// +//
a@b.com
+//
+// //
// ---- -// type EventSubscriptionsServiceListResponse struct { eventSubscriptions *EventSubscriptionSlice } @@ -28417,7 +27356,6 @@ func (p *EventSubscriptionsServiceListResponse) MustEventSubscriptions() *EventS return p.eventSubscriptions } -// // List the event-subscriptions for the provided user. // For example to list event-subscriptions for user `123`: // .... @@ -28426,35 +27364,32 @@ func (p *EventSubscriptionsServiceListResponse) MustEventSubscriptions() *EventS // [source,xml] // ---- // -// -// host_install_failed -// smtp -// -//
a@b.com
-//
-// -// vm_paused -// smtp -// -//
a@b.com
-//
+// +// +// host_install_failed +// smtp +// +//
a@b.com
+//
+// +// vm_paused +// smtp +// +//
a@b.com
+//
+// //
// ---- -// func (p *EventSubscriptionsService) List() *EventSubscriptionsServiceListRequest { return &EventSubscriptionsServiceListRequest{EventSubscriptionsService: p} } -// // Reference to the service that manages a specific event-subscription. -// func (op *EventSubscriptionsService) EventSubscriptionService(id string) *EventSubscriptionService { return NewEventSubscriptionService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *EventSubscriptionsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -28470,9 +27405,7 @@ func (op *EventSubscriptionsService) String() string { return fmt.Sprintf("EventSubscriptionsService:%s", op.path) } -// // A service to manage events in the system. -// type EventsService struct { BaseService } @@ -28484,7 +27417,6 @@ func NewEventsService(connection *Connection, path string) *EventsService { return &result } -// // Adds an external event to the internal audit log. // This is intended for integration with external systems that detect or produce events relevant for the // administrator of the system. For example, an external monitoring tool may be able to detect that a file system @@ -28494,10 +27426,12 @@ func NewEventsService(connection *Connection, path string) *EventsService { // ---- // POST /ovirt-engine/api/events // -// File system /home is full -// alert -// mymonitor -// 1467879754 +// +// File system /home is full +// alert +// mymonitor +// 1467879754 +// // // ---- // Events can also be linked to specific objects. For example, the above event could be linked to the specific @@ -28506,16 +27440,17 @@ func NewEventsService(connection *Connection, path string) *EventsService { // ---- // POST /ovirt-engine/api/events // -// File system /home is full -// alert -// mymonitor -// 1467879754 -// +// +// File system /home is full +// alert +// mymonitor +// 1467879754 +// +// // // ---- // NOTE: When using links, like the `vm` in the previous example, only the `id` attribute is accepted. The `name` // attribute, if provided, is simply ignored. -// type EventsServiceAddRequest struct { EventsService *EventsService header map[string]string @@ -28627,7 +27562,6 @@ func (p *EventsServiceAddRequest) MustSend() *EventsServiceAddResponse { } } -// // Adds an external event to the internal audit log. // This is intended for integration with external systems that detect or produce events relevant for the // administrator of the system. For example, an external monitoring tool may be able to detect that a file system @@ -28637,10 +27571,12 @@ func (p *EventsServiceAddRequest) MustSend() *EventsServiceAddResponse { // ---- // POST /ovirt-engine/api/events // -// File system /home is full -// alert -// mymonitor -// 1467879754 +// +// File system /home is full +// alert +// mymonitor +// 1467879754 +// // // ---- // Events can also be linked to specific objects. For example, the above event could be linked to the specific @@ -28649,16 +27585,17 @@ func (p *EventsServiceAddRequest) MustSend() *EventsServiceAddResponse { // ---- // POST /ovirt-engine/api/events // -// File system /home is full -// alert -// mymonitor -// 1467879754 -// +// +// File system /home is full +// alert +// mymonitor +// 1467879754 +// +// // // ---- // NOTE: When using links, like the `vm` in the previous example, only the `id` attribute is accepted. The `name` // attribute, if provided, is simply ignored. -// type EventsServiceAddResponse struct { event *Event } @@ -28677,7 +27614,6 @@ func (p *EventsServiceAddResponse) MustEvent() *Event { return p.event } -// // Adds an external event to the internal audit log. // This is intended for integration with external systems that detect or produce events relevant for the // administrator of the system. For example, an external monitoring tool may be able to detect that a file system @@ -28687,10 +27623,12 @@ func (p *EventsServiceAddResponse) MustEvent() *Event { // ---- // POST /ovirt-engine/api/events // -// File system /home is full -// alert -// mymonitor -// 1467879754 +// +// File system /home is full +// alert +// mymonitor +// 1467879754 +// // // ---- // Events can also be linked to specific objects. For example, the above event could be linked to the specific @@ -28699,21 +27637,21 @@ func (p *EventsServiceAddResponse) MustEvent() *Event { // ---- // POST /ovirt-engine/api/events // -// File system /home is full -// alert -// mymonitor -// 1467879754 -// +// +// File system /home is full +// alert +// mymonitor +// 1467879754 +// +// // // ---- // NOTE: When using links, like the `vm` in the previous example, only the `id` attribute is accepted. The `name` // attribute, if provided, is simply ignored. -// func (p *EventsService) Add() *EventsServiceAddRequest { return &EventsServiceAddRequest{EventsService: p} } -// // Get list of events. // [source] // ---- @@ -28723,28 +27661,30 @@ func (p *EventsService) Add() *EventsServiceAddRequest { // [source,xml] // ---- // -// -// User admin@internal-authz logged out. -// 31 -// 1e892ea9 -// -1 -// 30 -// oVirt -// normal -// -// -// -// -// User admin logged in. -// 30 -// 1fbd81f4 -// -1 -// 30 -// oVirt -// normal -// -// -// +// +// +// User admin@internal-authz logged out. +// 31 +// 1e892ea9 +// -1 +// 30 +// oVirt +// normal +// +// +// +// +// User admin logged in. +// 30 +// 1fbd81f4 +// -1 +// 30 +// oVirt +// normal +// +// +// +// // // ---- // The following events occur: @@ -28757,7 +27697,6 @@ func (p *EventsService) Add() *EventsServiceAddRequest { // .... // GET /ovirt-engine/api/events?max=1 // .... -// type EventsServiceListRequest struct { EventsService *EventsService header map[string]string @@ -28906,7 +27845,6 @@ func (p *EventsServiceListRequest) MustSend() *EventsServiceListResponse { } } -// // Get list of events. // [source] // ---- @@ -28916,28 +27854,30 @@ func (p *EventsServiceListRequest) MustSend() *EventsServiceListResponse { // [source,xml] // ---- // -// -// User admin@internal-authz logged out. -// 31 -// 1e892ea9 -// -1 -// 30 -// oVirt -// normal -// -// -// -// -// User admin logged in. -// 30 -// 1fbd81f4 -// -1 -// 30 -// oVirt -// normal -// -// -// +// +// +// User admin@internal-authz logged out. +// 31 +// 1e892ea9 +// -1 +// 30 +// oVirt +// normal +// +// +// +// +// User admin logged in. +// 30 +// 1fbd81f4 +// -1 +// 30 +// oVirt +// normal +// +// +// +// // // ---- // The following events occur: @@ -28950,7 +27890,6 @@ func (p *EventsServiceListRequest) MustSend() *EventsServiceListResponse { // .... // GET /ovirt-engine/api/events?max=1 // .... -// type EventsServiceListResponse struct { events *EventSlice } @@ -28969,7 +27908,6 @@ func (p *EventsServiceListResponse) MustEvents() *EventSlice { return p.events } -// // Get list of events. // [source] // ---- @@ -28979,28 +27917,30 @@ func (p *EventsServiceListResponse) MustEvents() *EventSlice { // [source,xml] // ---- // -// -// User admin@internal-authz logged out. -// 31 -// 1e892ea9 -// -1 -// 30 -// oVirt -// normal -// -// -// -// -// User admin logged in. -// 30 -// 1fbd81f4 -// -1 -// 30 -// oVirt -// normal -// -// -// +// +// +// User admin@internal-authz logged out. +// 31 +// 1e892ea9 +// -1 +// 30 +// oVirt +// normal +// +// +// +// +// User admin logged in. +// 30 +// 1fbd81f4 +// -1 +// 30 +// oVirt +// normal +// +// +// +// // // ---- // The following events occur: @@ -29013,13 +27953,10 @@ func (p *EventsServiceListResponse) MustEvents() *EventSlice { // .... // GET /ovirt-engine/api/events?max=1 // .... -// func (p *EventsService) List() *EventsServiceListRequest { return &EventsServiceListRequest{EventsService: p} } -// -// type EventsServiceUndeleteRequest struct { EventsService *EventsService header map[string]string @@ -29132,27 +28069,19 @@ func (p *EventsServiceUndeleteRequest) MustSend() *EventsServiceUndeleteResponse } } -// -// type EventsServiceUndeleteResponse struct { } -// -// func (p *EventsService) Undelete() *EventsServiceUndeleteRequest { return &EventsServiceUndeleteRequest{EventsService: p} } -// // Reference to the service that manages a specific event. -// func (op *EventsService) EventService(id string) *EventService { return NewEventService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *EventsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -29168,9 +28097,7 @@ func (op *EventsService) String() string { return fmt.Sprintf("EventsService:%s", op.path) } -// // Describes how an external network provider is provisioned by the system on the host. -// type ExternalNetworkProviderConfigurationService struct { BaseService } @@ -29182,9 +28109,7 @@ func NewExternalNetworkProviderConfigurationService(connection *Connection, path return &result } -// // Returns the information about an external network provider on the host. -// type ExternalNetworkProviderConfigurationServiceGetRequest struct { ExternalNetworkProviderConfigurationService *ExternalNetworkProviderConfigurationService header map[string]string @@ -29293,9 +28218,7 @@ func (p *ExternalNetworkProviderConfigurationServiceGetRequest) MustSend() *Exte } } -// // Returns the information about an external network provider on the host. -// type ExternalNetworkProviderConfigurationServiceGetResponse struct { configuration *ExternalNetworkProviderConfiguration } @@ -29314,16 +28237,12 @@ func (p *ExternalNetworkProviderConfigurationServiceGetResponse) MustConfigurati return p.configuration } -// // Returns the information about an external network provider on the host. -// func (p *ExternalNetworkProviderConfigurationService) Get() *ExternalNetworkProviderConfigurationServiceGetRequest { return &ExternalNetworkProviderConfigurationServiceGetRequest{ExternalNetworkProviderConfigurationService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *ExternalNetworkProviderConfigurationService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -29335,9 +28254,7 @@ func (op *ExternalNetworkProviderConfigurationService) String() string { return fmt.Sprintf("ExternalNetworkProviderConfigurationService:%s", op.path) } -// // A service to list all external network providers provisioned by the system on the host. -// type ExternalNetworkProviderConfigurationsService struct { BaseService } @@ -29349,10 +28266,8 @@ func NewExternalNetworkProviderConfigurationsService(connection *Connection, pat return &result } -// // Returns the list of all external network providers on the host. // The order of the returned list of networks is not guaranteed. -// type ExternalNetworkProviderConfigurationsServiceListRequest struct { ExternalNetworkProviderConfigurationsService *ExternalNetworkProviderConfigurationsService header map[string]string @@ -29461,10 +28376,8 @@ func (p *ExternalNetworkProviderConfigurationsServiceListRequest) MustSend() *Ex } } -// // Returns the list of all external network providers on the host. // The order of the returned list of networks is not guaranteed. -// type ExternalNetworkProviderConfigurationsServiceListResponse struct { configurations *ExternalNetworkProviderConfigurationSlice } @@ -29483,23 +28396,17 @@ func (p *ExternalNetworkProviderConfigurationsServiceListResponse) MustConfigura return p.configurations } -// // Returns the list of all external network providers on the host. // The order of the returned list of networks is not guaranteed. -// func (p *ExternalNetworkProviderConfigurationsService) List() *ExternalNetworkProviderConfigurationsServiceListRequest { return &ExternalNetworkProviderConfigurationsServiceListRequest{ExternalNetworkProviderConfigurationsService: p} } -// -// func (op *ExternalNetworkProviderConfigurationsService) ConfigurationService(id string) *ExternalNetworkProviderConfigurationService { return NewExternalNetworkProviderConfigurationService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *ExternalNetworkProviderConfigurationsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -29515,9 +28422,7 @@ func (op *ExternalNetworkProviderConfigurationsService) String() string { return fmt.Sprintf("ExternalNetworkProviderConfigurationsService:%s", op.path) } -// // A service to view specific certificate for external provider. -// type ExternalProviderCertificateService struct { BaseService } @@ -29529,7 +28434,6 @@ func NewExternalProviderCertificateService(connection *Connection, path string) return &result } -// // Get specific certificate. // [source] // ---- @@ -29539,12 +28443,13 @@ func NewExternalProviderCertificateService(connection *Connection, path string) // [source,xml] // ---- // -// provider.example.com -// CN=provider.example.com -// ... +// +// provider.example.com +// CN=provider.example.com +// ... +// // // ---- -// type ExternalProviderCertificateServiceGetRequest struct { ExternalProviderCertificateService *ExternalProviderCertificateService header map[string]string @@ -29653,7 +28558,6 @@ func (p *ExternalProviderCertificateServiceGetRequest) MustSend() *ExternalProvi } } -// // Get specific certificate. // [source] // ---- @@ -29663,12 +28567,13 @@ func (p *ExternalProviderCertificateServiceGetRequest) MustSend() *ExternalProvi // [source,xml] // ---- // -// provider.example.com -// CN=provider.example.com -// ... +// +// provider.example.com +// CN=provider.example.com +// ... +// // // ---- -// type ExternalProviderCertificateServiceGetResponse struct { certificate *Certificate } @@ -29687,7 +28592,6 @@ func (p *ExternalProviderCertificateServiceGetResponse) MustCertificate() *Certi return p.certificate } -// // Get specific certificate. // [source] // ---- @@ -29697,19 +28601,18 @@ func (p *ExternalProviderCertificateServiceGetResponse) MustCertificate() *Certi // [source,xml] // ---- // -// provider.example.com -// CN=provider.example.com -// ... +// +// provider.example.com +// CN=provider.example.com +// ... +// // // ---- -// func (p *ExternalProviderCertificateService) Get() *ExternalProviderCertificateServiceGetRequest { return &ExternalProviderCertificateServiceGetRequest{ExternalProviderCertificateService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *ExternalProviderCertificateService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -29721,9 +28624,7 @@ func (op *ExternalProviderCertificateService) String() string { return fmt.Sprintf("ExternalProviderCertificateService:%s", op.path) } -// // A service to view certificates for external provider. -// type ExternalProviderCertificatesService struct { BaseService } @@ -29735,7 +28636,6 @@ func NewExternalProviderCertificatesService(connection *Connection, path string) return &result } -// // Returns the chain of certificates presented by the external provider. // [source] // ---- @@ -29745,13 +28645,14 @@ func NewExternalProviderCertificatesService(connection *Connection, path string) // [source,xml] // ---- // -// ... -// ... +// +// ... +// ... +// // // ---- // The order of the returned certificates is always guaranteed to be the sign order: the first is the // certificate of the server itself, the second the certificate of the CA that signs the first, so on. -// type ExternalProviderCertificatesServiceListRequest struct { ExternalProviderCertificatesService *ExternalProviderCertificatesService header map[string]string @@ -29870,7 +28771,6 @@ func (p *ExternalProviderCertificatesServiceListRequest) MustSend() *ExternalPro } } -// // Returns the chain of certificates presented by the external provider. // [source] // ---- @@ -29880,13 +28780,14 @@ func (p *ExternalProviderCertificatesServiceListRequest) MustSend() *ExternalPro // [source,xml] // ---- // -// ... -// ... +// +// ... +// ... +// // // ---- // The order of the returned certificates is always guaranteed to be the sign order: the first is the // certificate of the server itself, the second the certificate of the CA that signs the first, so on. -// type ExternalProviderCertificatesServiceListResponse struct { certificates *CertificateSlice } @@ -29905,7 +28806,6 @@ func (p *ExternalProviderCertificatesServiceListResponse) MustCertificates() *Ce return p.certificates } -// // Returns the chain of certificates presented by the external provider. // [source] // ---- @@ -29915,28 +28815,25 @@ func (p *ExternalProviderCertificatesServiceListResponse) MustCertificates() *Ce // [source,xml] // ---- // -// ... -// ... +// +// ... +// ... +// // // ---- // The order of the returned certificates is always guaranteed to be the sign order: the first is the // certificate of the server itself, the second the certificate of the CA that signs the first, so on. -// func (p *ExternalProviderCertificatesService) List() *ExternalProviderCertificatesServiceListRequest { return &ExternalProviderCertificatesServiceListRequest{ExternalProviderCertificatesService: p} } -// // Reference to service that manages a specific certificate // for this external provider. -// func (op *ExternalProviderCertificatesService) CertificateService(id string) *ExternalProviderCertificateService { return NewExternalProviderCertificateService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *ExternalProviderCertificatesService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -29952,9 +28849,7 @@ func (op *ExternalProviderCertificatesService) String() string { return fmt.Sprintf("ExternalProviderCertificatesService:%s", op.path) } -// // Provides capability to manage external providers. -// type ExternalProviderService struct { BaseService } @@ -29966,9 +28861,7 @@ func NewExternalProviderService(connection *Connection, path string) *ExternalPr return &result } -// // Import the SSL certificates of the external host provider. -// type ExternalProviderServiceImportCertificatesRequest struct { ExternalProviderService *ExternalProviderService header map[string]string @@ -30087,27 +28980,21 @@ func (p *ExternalProviderServiceImportCertificatesRequest) MustSend() *ExternalP } } -// // Import the SSL certificates of the external host provider. -// type ExternalProviderServiceImportCertificatesResponse struct { } -// // Import the SSL certificates of the external host provider. -// func (p *ExternalProviderService) ImportCertificates() *ExternalProviderServiceImportCertificatesRequest { return &ExternalProviderServiceImportCertificatesRequest{ExternalProviderService: p} } -// // In order to test connectivity for external provider we need // to run following request where 123 is an id of a provider. // [source] // ---- // POST /ovirt-engine/api/externalhostproviders/123/testconnectivity // ---- -// type ExternalProviderServiceTestConnectivityRequest struct { ExternalProviderService *ExternalProviderService header map[string]string @@ -30220,39 +29107,31 @@ func (p *ExternalProviderServiceTestConnectivityRequest) MustSend() *ExternalPro } } -// // In order to test connectivity for external provider we need // to run following request where 123 is an id of a provider. // [source] // ---- // POST /ovirt-engine/api/externalhostproviders/123/testconnectivity // ---- -// type ExternalProviderServiceTestConnectivityResponse struct { } -// // In order to test connectivity for external provider we need // to run following request where 123 is an id of a provider. // [source] // ---- // POST /ovirt-engine/api/externalhostproviders/123/testconnectivity // ---- -// func (p *ExternalProviderService) TestConnectivity() *ExternalProviderServiceTestConnectivityRequest { return &ExternalProviderServiceTestConnectivityRequest{ExternalProviderService: p} } -// // A service to view certificates for this external provider. -// func (op *ExternalProviderService) CertificatesService() *ExternalProviderCertificatesService { return NewExternalProviderCertificatesService(op.connection, fmt.Sprintf("%s/certificates", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *ExternalProviderService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -30270,10 +29149,8 @@ func (op *ExternalProviderService) String() string { return fmt.Sprintf("ExternalProviderService:%s", op.path) } -// // Provides capability to import external templates. // Currently supports OVA only. -// type ExternalTemplateImportsService struct { BaseService } @@ -30285,7 +29162,6 @@ func NewExternalTemplateImportsService(connection *Connection, path string) *Ext return &result } -// // This operation is used to import a template from external hypervisor. // For example import of a template OVA can be facilitated using the following request: // [source] @@ -30296,16 +29172,17 @@ func NewExternalTemplateImportsService(connection *Connection, path string) *Ext // [source,xml] // ---- // -// -// -// -// ova:///mnt/ova/ova_template.ova -// +// +// +// +// +// ova:///mnt/ova/ova_template.ova +// +// // // ---- -// type ExternalTemplateImportsServiceAddRequest struct { ExternalTemplateImportsService *ExternalTemplateImportsService header map[string]string @@ -30417,7 +29294,6 @@ func (p *ExternalTemplateImportsServiceAddRequest) MustSend() *ExternalTemplateI } } -// // This operation is used to import a template from external hypervisor. // For example import of a template OVA can be facilitated using the following request: // [source] @@ -30428,16 +29304,17 @@ func (p *ExternalTemplateImportsServiceAddRequest) MustSend() *ExternalTemplateI // [source,xml] // ---- // -// -// -// -// ova:///mnt/ova/ova_template.ova -// +// +// +// +// +// ova:///mnt/ova/ova_template.ova +// +// // // ---- -// type ExternalTemplateImportsServiceAddResponse struct { import_ *ExternalTemplateImport } @@ -30456,7 +29333,6 @@ func (p *ExternalTemplateImportsServiceAddResponse) MustImport() *ExternalTempla return p.import_ } -// // This operation is used to import a template from external hypervisor. // For example import of a template OVA can be facilitated using the following request: // [source] @@ -30467,23 +29343,22 @@ func (p *ExternalTemplateImportsServiceAddResponse) MustImport() *ExternalTempla // [source,xml] // ---- // -// -// -// -// ova:///mnt/ova/ova_template.ova -// +// +// +// +// +// ova:///mnt/ova/ova_template.ova +// +// // // ---- -// func (p *ExternalTemplateImportsService) Add() *ExternalTemplateImportsServiceAddRequest { return &ExternalTemplateImportsServiceAddRequest{ExternalTemplateImportsService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *ExternalTemplateImportsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -30495,9 +29370,7 @@ func (op *ExternalTemplateImportsService) String() string { return fmt.Sprintf("ExternalTemplateImportsService:%s", op.path) } -// // Provides capability to import external virtual machines. -// type ExternalVmImportsService struct { BaseService } @@ -30509,7 +29382,6 @@ func NewExternalVmImportsService(connection *Connection, path string) *ExternalV return &result } -// // This operation is used to import a virtual machine from external hypervisor, such as KVM, XEN or VMware. // For example import of a virtual machine from VMware can be facilitated using the following request: // [source] @@ -30520,21 +29392,22 @@ func NewExternalVmImportsService(connection *Connection, path string) *ExternalV // [source,xml] // ---- // -// -// my_vm -// -// -// -// vm_name_as_is_in_vmware -// true -// vmware_user -// 123456 -// VMWARE -// vpx://wmware_user@vcenter-host/DataCenter/Cluster/esxi-host?no_verify=1 -// +// +// +// my_vm +// +// +// +// vm_name_as_is_in_vmware +// true +// vmware_user +// 123456 +// VMWARE +// vpx://wmware_user@vcenter-host/DataCenter/Cluster/esxi-host?no_verify=1 +// +// // // ---- -// type ExternalVmImportsServiceAddRequest struct { ExternalVmImportsService *ExternalVmImportsService header map[string]string @@ -30646,7 +29519,6 @@ func (p *ExternalVmImportsServiceAddRequest) MustSend() *ExternalVmImportsServic } } -// // This operation is used to import a virtual machine from external hypervisor, such as KVM, XEN or VMware. // For example import of a virtual machine from VMware can be facilitated using the following request: // [source] @@ -30657,21 +29529,22 @@ func (p *ExternalVmImportsServiceAddRequest) MustSend() *ExternalVmImportsServic // [source,xml] // ---- // -// -// my_vm -// -// -// -// vm_name_as_is_in_vmware -// true -// vmware_user -// 123456 -// VMWARE -// vpx://wmware_user@vcenter-host/DataCenter/Cluster/esxi-host?no_verify=1 -// +// +// +// my_vm +// +// +// +// vm_name_as_is_in_vmware +// true +// vmware_user +// 123456 +// VMWARE +// vpx://wmware_user@vcenter-host/DataCenter/Cluster/esxi-host?no_verify=1 +// +// // // ---- -// type ExternalVmImportsServiceAddResponse struct { import_ *ExternalVmImport } @@ -30690,7 +29563,6 @@ func (p *ExternalVmImportsServiceAddResponse) MustImport() *ExternalVmImport { return p.import_ } -// // This operation is used to import a virtual machine from external hypervisor, such as KVM, XEN or VMware. // For example import of a virtual machine from VMware can be facilitated using the following request: // [source] @@ -30701,28 +29573,27 @@ func (p *ExternalVmImportsServiceAddResponse) MustImport() *ExternalVmImport { // [source,xml] // ---- // -// -// my_vm -// -// -// -// vm_name_as_is_in_vmware -// true -// vmware_user -// 123456 -// VMWARE -// vpx://wmware_user@vcenter-host/DataCenter/Cluster/esxi-host?no_verify=1 -// +// +// +// my_vm +// +// +// +// vm_name_as_is_in_vmware +// true +// vmware_user +// 123456 +// VMWARE +// vpx://wmware_user@vcenter-host/DataCenter/Cluster/esxi-host?no_verify=1 +// +// // // ---- -// func (p *ExternalVmImportsService) Add() *ExternalVmImportsServiceAddRequest { return &ExternalVmImportsServiceAddRequest{ExternalVmImportsService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *ExternalVmImportsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -30734,9 +29605,7 @@ func (op *ExternalVmImportsService) String() string { return fmt.Sprintf("ExternalVmImportsService:%s", op.path) } -// // A service to manage fence agent for a specific host. -// type FenceAgentService struct { BaseService } @@ -30748,7 +29617,6 @@ func NewFenceAgentService(connection *Connection, path string) *FenceAgentServic return &result } -// // Gets details of this fence agent. // [source] // ---- @@ -30758,16 +29626,17 @@ func NewFenceAgentService(connection *Connection, path string) *FenceAgentServic // [source,xml] // ---- // -// apc -// 1 -// 192.168.1.101 -// user -// xxx -// 9 -// name1=value1, name2=value2 +// +// apc +// 1 +// 192.168.1.101 +// user +// xxx +// 9 +// name1=value1, name2=value2 +// // // ---- -// type FenceAgentServiceGetRequest struct { FenceAgentService *FenceAgentService header map[string]string @@ -30876,7 +29745,6 @@ func (p *FenceAgentServiceGetRequest) MustSend() *FenceAgentServiceGetResponse { } } -// // Gets details of this fence agent. // [source] // ---- @@ -30886,16 +29754,17 @@ func (p *FenceAgentServiceGetRequest) MustSend() *FenceAgentServiceGetResponse { // [source,xml] // ---- // -// apc -// 1 -// 192.168.1.101 -// user -// xxx -// 9 -// name1=value1, name2=value2 +// +// apc +// 1 +// 192.168.1.101 +// user +// xxx +// 9 +// name1=value1, name2=value2 +// // // ---- -// type FenceAgentServiceGetResponse struct { agent *Agent } @@ -30914,7 +29783,6 @@ func (p *FenceAgentServiceGetResponse) MustAgent() *Agent { return p.agent } -// // Gets details of this fence agent. // [source] // ---- @@ -30924,27 +29792,26 @@ func (p *FenceAgentServiceGetResponse) MustAgent() *Agent { // [source,xml] // ---- // -// apc -// 1 -// 192.168.1.101 -// user -// xxx -// 9 -// name1=value1, name2=value2 +// +// apc +// 1 +// 192.168.1.101 +// user +// xxx +// 9 +// name1=value1, name2=value2 +// // // ---- -// func (p *FenceAgentService) Get() *FenceAgentServiceGetRequest { return &FenceAgentServiceGetRequest{FenceAgentService: p} } -// // Removes a fence agent for a specific host. // [source] // ---- // DELETE /ovirt-engine/api/hosts/123/fenceagents/0 // ---- -// type FenceAgentServiceRemoveRequest struct { FenceAgentService *FenceAgentService header map[string]string @@ -31048,30 +29915,24 @@ func (p *FenceAgentServiceRemoveRequest) MustSend() *FenceAgentServiceRemoveResp } } -// // Removes a fence agent for a specific host. // [source] // ---- // DELETE /ovirt-engine/api/hosts/123/fenceagents/0 // ---- -// type FenceAgentServiceRemoveResponse struct { } -// // Removes a fence agent for a specific host. // [source] // ---- // DELETE /ovirt-engine/api/hosts/123/fenceagents/0 // ---- -// func (p *FenceAgentService) Remove() *FenceAgentServiceRemoveRequest { return &FenceAgentServiceRemoveRequest{FenceAgentService: p} } -// // Update a fencing-agent. -// type FenceAgentServiceUpdateRequest struct { FenceAgentService *FenceAgentService header map[string]string @@ -31193,9 +30054,7 @@ func (p *FenceAgentServiceUpdateRequest) MustSend() *FenceAgentServiceUpdateResp } } -// // Update a fencing-agent. -// type FenceAgentServiceUpdateResponse struct { agent *Agent } @@ -31214,16 +30073,12 @@ func (p *FenceAgentServiceUpdateResponse) MustAgent() *Agent { return p.agent } -// // Update a fencing-agent. -// func (p *FenceAgentService) Update() *FenceAgentServiceUpdateRequest { return &FenceAgentServiceUpdateRequest{FenceAgentService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *FenceAgentService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -31235,9 +30090,7 @@ func (op *FenceAgentService) String() string { return fmt.Sprintf("FenceAgentService:%s", op.path) } -// // A service to manage fence agents for a specific host. -// type FenceAgentsService struct { BaseService } @@ -31249,7 +30102,6 @@ func NewFenceAgentsService(connection *Connection, path string) *FenceAgentsServ return &result } -// // Add a new fencing-agent to the host. // [source] // ---- @@ -31262,47 +30114,53 @@ func NewFenceAgentsService(connection *Connection, path string) *FenceAgentsServ // ---- // apc, bladecenter, wti fencing agent/s sample request: // [source,xml] -// -// apc -// 1 -// 192.168.1.101 -// user -// xxx -// 9 -// slot=7[,name1=value1, name2=value2,...] -// +// +// +// apc +// 1 +// 192.168.1.101 +// user +// xxx +// 9 +// slot=7[,name1=value1, name2=value2,...] +// +// // apc_snmp, hpblade, ilo, ilo2, ilo_ssh, redfish, rsa fencing agent/s sample request: // [source,xml] -// -// apc_snmp -// 1 -// 192.168.1.101 -// user -// xxx -// 9 -// [name1=value1, name2=value2,...] -// +// +// +// apc_snmp +// 1 +// 192.168.1.101 +// user +// xxx +// 9 +// [name1=value1, name2=value2,...] +// +// // cisco_ucs, drac5, eps fencing agent/s sample request: // [source,xml] -// -// cisco_ucs -// 1 -// 192.168.1.101 -// user -// xxx -// slot=7[,name1=value1, name2=value2,...] -// +// +// +// cisco_ucs +// 1 +// 192.168.1.101 +// user +// xxx +// slot=7[,name1=value1, name2=value2,...] +// +// // drac7, ilo3, ilo4, ipmilan, rsb fencing agent/s sample request: // [source,xml] -// -// drac7 -// 1 -// 192.168.1.101 -// user -// xxx -// [name1=value1, name2=value2,...] -// // +// +// drac7 +// 1 +// 192.168.1.101 +// user +// xxx +// [name1=value1, name2=value2,...] +// type FenceAgentsServiceAddRequest struct { FenceAgentsService *FenceAgentsService header map[string]string @@ -31414,7 +30272,6 @@ func (p *FenceAgentsServiceAddRequest) MustSend() *FenceAgentsServiceAddResponse } } -// // Add a new fencing-agent to the host. // [source] // ---- @@ -31427,47 +30284,53 @@ func (p *FenceAgentsServiceAddRequest) MustSend() *FenceAgentsServiceAddResponse // ---- // apc, bladecenter, wti fencing agent/s sample request: // [source,xml] -// -// apc -// 1 -// 192.168.1.101 -// user -// xxx -// 9 -// slot=7[,name1=value1, name2=value2,...] -// +// +// +// apc +// 1 +// 192.168.1.101 +// user +// xxx +// 9 +// slot=7[,name1=value1, name2=value2,...] +// +// // apc_snmp, hpblade, ilo, ilo2, ilo_ssh, redfish, rsa fencing agent/s sample request: // [source,xml] -// -// apc_snmp -// 1 -// 192.168.1.101 -// user -// xxx -// 9 -// [name1=value1, name2=value2,...] -// +// +// +// apc_snmp +// 1 +// 192.168.1.101 +// user +// xxx +// 9 +// [name1=value1, name2=value2,...] +// +// // cisco_ucs, drac5, eps fencing agent/s sample request: // [source,xml] -// -// cisco_ucs -// 1 -// 192.168.1.101 -// user -// xxx -// slot=7[,name1=value1, name2=value2,...] -// +// +// +// cisco_ucs +// 1 +// 192.168.1.101 +// user +// xxx +// slot=7[,name1=value1, name2=value2,...] +// +// // drac7, ilo3, ilo4, ipmilan, rsb fencing agent/s sample request: // [source,xml] -// -// drac7 -// 1 -// 192.168.1.101 -// user -// xxx -// [name1=value1, name2=value2,...] -// // +// +// drac7 +// 1 +// 192.168.1.101 +// user +// xxx +// [name1=value1, name2=value2,...] +// type FenceAgentsServiceAddResponse struct { agent *Agent } @@ -31486,7 +30349,6 @@ func (p *FenceAgentsServiceAddResponse) MustAgent() *Agent { return p.agent } -// // Add a new fencing-agent to the host. // [source] // ---- @@ -31499,52 +30361,57 @@ func (p *FenceAgentsServiceAddResponse) MustAgent() *Agent { // ---- // apc, bladecenter, wti fencing agent/s sample request: // [source,xml] -// -// apc -// 1 -// 192.168.1.101 -// user -// xxx -// 9 -// slot=7[,name1=value1, name2=value2,...] -// +// +// +// apc +// 1 +// 192.168.1.101 +// user +// xxx +// 9 +// slot=7[,name1=value1, name2=value2,...] +// +// // apc_snmp, hpblade, ilo, ilo2, ilo_ssh, redfish, rsa fencing agent/s sample request: // [source,xml] -// -// apc_snmp -// 1 -// 192.168.1.101 -// user -// xxx -// 9 -// [name1=value1, name2=value2,...] -// +// +// +// apc_snmp +// 1 +// 192.168.1.101 +// user +// xxx +// 9 +// [name1=value1, name2=value2,...] +// +// // cisco_ucs, drac5, eps fencing agent/s sample request: // [source,xml] -// -// cisco_ucs -// 1 -// 192.168.1.101 -// user -// xxx -// slot=7[,name1=value1, name2=value2,...] -// +// +// +// cisco_ucs +// 1 +// 192.168.1.101 +// user +// xxx +// slot=7[,name1=value1, name2=value2,...] +// +// // drac7, ilo3, ilo4, ipmilan, rsb fencing agent/s sample request: // [source,xml] -// -// drac7 -// 1 -// 192.168.1.101 -// user -// xxx -// [name1=value1, name2=value2,...] -// // +// +// drac7 +// 1 +// 192.168.1.101 +// user +// xxx +// [name1=value1, name2=value2,...] +// func (p *FenceAgentsService) Add() *FenceAgentsServiceAddRequest { return &FenceAgentsServiceAddRequest{FenceAgentsService: p} } -// // Returns the list of fencing agents configured for the host. // [source] // ---- @@ -31554,19 +30421,20 @@ func (p *FenceAgentsService) Add() *FenceAgentsServiceAddRequest { // [source,xml] // ---- // -// -// apc -// 1 -// 192.168.1.101 -// user -// xxx -// 9 -// name1=value1, name2=value2 -// +// +// +// apc +// 1 +// 192.168.1.101 +// user +// xxx +// 9 +// name1=value1, name2=value2 +// +// // // ---- // The order of the returned list of fencing agents isn't guaranteed. -// type FenceAgentsServiceListRequest struct { FenceAgentsService *FenceAgentsService header map[string]string @@ -31685,7 +30553,6 @@ func (p *FenceAgentsServiceListRequest) MustSend() *FenceAgentsServiceListRespon } } -// // Returns the list of fencing agents configured for the host. // [source] // ---- @@ -31695,19 +30562,20 @@ func (p *FenceAgentsServiceListRequest) MustSend() *FenceAgentsServiceListRespon // [source,xml] // ---- // -// -// apc -// 1 -// 192.168.1.101 -// user -// xxx -// 9 -// name1=value1, name2=value2 -// +// +// +// apc +// 1 +// 192.168.1.101 +// user +// xxx +// 9 +// name1=value1, name2=value2 +// +// // // ---- // The order of the returned list of fencing agents isn't guaranteed. -// type FenceAgentsServiceListResponse struct { agents *AgentSlice } @@ -31726,7 +30594,6 @@ func (p *FenceAgentsServiceListResponse) MustAgents() *AgentSlice { return p.agents } -// // Returns the list of fencing agents configured for the host. // [source] // ---- @@ -31736,34 +30603,31 @@ func (p *FenceAgentsServiceListResponse) MustAgents() *AgentSlice { // [source,xml] // ---- // -// -// apc -// 1 -// 192.168.1.101 -// user -// xxx -// 9 -// name1=value1, name2=value2 -// +// +// +// apc +// 1 +// 192.168.1.101 +// user +// xxx +// 9 +// name1=value1, name2=value2 +// +// // // ---- // The order of the returned list of fencing agents isn't guaranteed. -// func (p *FenceAgentsService) List() *FenceAgentsServiceListRequest { return &FenceAgentsServiceListRequest{FenceAgentsService: p} } -// // Reference to service that manages a specific fence agent // for this host. -// func (op *FenceAgentsService) AgentService(id string) *FenceAgentService { return NewFenceAgentService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *FenceAgentsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -31779,8 +30643,6 @@ func (op *FenceAgentsService) String() string { return fmt.Sprintf("FenceAgentsService:%s", op.path) } -// -// type FileService struct { BaseService } @@ -31792,8 +30654,6 @@ func NewFileService(connection *Connection, path string) *FileService { return &result } -// -// type FileServiceGetRequest struct { FileService *FileService header map[string]string @@ -31902,8 +30762,6 @@ func (p *FileServiceGetRequest) MustSend() *FileServiceGetResponse { } } -// -// type FileServiceGetResponse struct { file *File } @@ -31922,15 +30780,11 @@ func (p *FileServiceGetResponse) MustFile() *File { return p.file } -// -// func (p *FileService) Get() *FileServiceGetRequest { return &FileServiceGetRequest{FileService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *FileService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -31942,12 +30796,10 @@ func (op *FileService) String() string { return fmt.Sprintf("FileService:%s", op.path) } -// // Provides a way for clients to list available files. // This service is specifically targeted to ISO storage domains, which contain ISO images and virtual floppy disks // (VFDs) that an administrator uploads. // The addition of a CD-ROM device to a virtual machine requires an ISO image from the files of an ISO storage domain. -// type FilesService struct { BaseService } @@ -31959,7 +30811,6 @@ func NewFilesService(connection *Connection, path string) *FilesService { return &result } -// // Returns the list of ISO images and virtual floppy disks available in the storage domain. The order of // the returned list is not guaranteed. // If the `refresh` parameter is `false`, the returned list may not reflect recent changes to the storage domain; @@ -31974,7 +30825,6 @@ func NewFilesService(connection *Connection, path string) *FilesService { // ---- // IMPORTANT: Setting the value of the `refresh` parameter to `true` has an impact on the performance of the // server. Use it only if necessary. -// type FilesServiceListRequest struct { FilesService *FilesService header map[string]string @@ -32123,7 +30973,6 @@ func (p *FilesServiceListRequest) MustSend() *FilesServiceListResponse { } } -// // Returns the list of ISO images and virtual floppy disks available in the storage domain. The order of // the returned list is not guaranteed. // If the `refresh` parameter is `false`, the returned list may not reflect recent changes to the storage domain; @@ -32138,7 +30987,6 @@ func (p *FilesServiceListRequest) MustSend() *FilesServiceListResponse { // ---- // IMPORTANT: Setting the value of the `refresh` parameter to `true` has an impact on the performance of the // server. Use it only if necessary. -// type FilesServiceListResponse struct { file *FileSlice } @@ -32157,7 +31005,6 @@ func (p *FilesServiceListResponse) MustFile() *FileSlice { return p.file } -// // Returns the list of ISO images and virtual floppy disks available in the storage domain. The order of // the returned list is not guaranteed. // If the `refresh` parameter is `false`, the returned list may not reflect recent changes to the storage domain; @@ -32172,20 +31019,15 @@ func (p *FilesServiceListResponse) MustFile() *FileSlice { // ---- // IMPORTANT: Setting the value of the `refresh` parameter to `true` has an impact on the performance of the // server. Use it only if necessary. -// func (p *FilesService) List() *FilesServiceListRequest { return &FilesServiceListRequest{FilesService: p} } -// -// func (op *FilesService) FileService(id string) *FileService { return NewFileService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *FilesService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -32201,8 +31043,6 @@ func (op *FilesService) String() string { return fmt.Sprintf("FilesService:%s", op.path) } -// -// type FilterService struct { BaseService } @@ -32214,8 +31054,6 @@ func NewFilterService(connection *Connection, path string) *FilterService { return &result } -// -// type FilterServiceGetRequest struct { FilterService *FilterService header map[string]string @@ -32334,8 +31172,6 @@ func (p *FilterServiceGetRequest) MustSend() *FilterServiceGetResponse { } } -// -// type FilterServiceGetResponse struct { result *Filter } @@ -32354,14 +31190,10 @@ func (p *FilterServiceGetResponse) MustResult() *Filter { return p.result } -// -// func (p *FilterService) Get() *FilterServiceGetRequest { return &FilterServiceGetRequest{FilterService: p} } -// -// type FilterServiceRemoveRequest struct { FilterService *FilterService header map[string]string @@ -32465,20 +31297,14 @@ func (p *FilterServiceRemoveRequest) MustSend() *FilterServiceRemoveResponse { } } -// -// type FilterServiceRemoveResponse struct { } -// -// func (p *FilterService) Remove() *FilterServiceRemoveRequest { return &FilterServiceRemoveRequest{FilterService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *FilterService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -32490,9 +31316,7 @@ func (op *FilterService) String() string { return fmt.Sprintf("FilterService:%s", op.path) } -// // Manages the filters used by an scheduling policy. -// type FiltersService struct { BaseService } @@ -32504,9 +31328,7 @@ func NewFiltersService(connection *Connection, path string) *FiltersService { return &result } -// // Add a filter to a specified user defined scheduling policy. -// type FiltersServiceAddRequest struct { FiltersService *FiltersService header map[string]string @@ -32618,9 +31440,7 @@ func (p *FiltersServiceAddRequest) MustSend() *FiltersServiceAddResponse { } } -// // Add a filter to a specified user defined scheduling policy. -// type FiltersServiceAddResponse struct { filter *Filter } @@ -32639,17 +31459,13 @@ func (p *FiltersServiceAddResponse) MustFilter() *Filter { return p.filter } -// // Add a filter to a specified user defined scheduling policy. -// func (p *FiltersService) Add() *FiltersServiceAddRequest { return &FiltersServiceAddRequest{FiltersService: p} } -// // Returns the list of filters used by the scheduling policy. // The order of the returned list of filters isn't guaranteed. -// type FiltersServiceListRequest struct { FiltersService *FiltersService header map[string]string @@ -32778,10 +31594,8 @@ func (p *FiltersServiceListRequest) MustSend() *FiltersServiceListResponse { } } -// // Returns the list of filters used by the scheduling policy. // The order of the returned list of filters isn't guaranteed. -// type FiltersServiceListResponse struct { filters *FilterSlice } @@ -32800,23 +31614,17 @@ func (p *FiltersServiceListResponse) MustFilters() *FilterSlice { return p.filters } -// // Returns the list of filters used by the scheduling policy. // The order of the returned list of filters isn't guaranteed. -// func (p *FiltersService) List() *FiltersServiceListRequest { return &FiltersServiceListRequest{FiltersService: p} } -// -// func (op *FiltersService) FilterService(id string) *FilterService { return NewFilterService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *FiltersService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -32832,9 +31640,7 @@ func (op *FiltersService) String() string { return fmt.Sprintf("FiltersService:%s", op.path) } -// // A service to access a particular device of a host. -// type HostDeviceService struct { BaseService } @@ -32846,7 +31652,6 @@ func NewHostDeviceService(connection *Connection, path string) *HostDeviceServic return &result } -// // Retrieve information about a particular host's device. // An example of getting a host device: // [source] @@ -32856,15 +31661,16 @@ func NewHostDeviceService(connection *Connection, path string) *HostDeviceServic // [source,xml] // ---- // -// usb_1_9_1_1_0 -// usb -// -// -// usb_1_9_1 -// +// +// usb_1_9_1_1_0 +// usb +// +// +// usb_1_9_1 +// +// // // ---- -// type HostDeviceServiceGetRequest struct { HostDeviceService *HostDeviceService header map[string]string @@ -32973,7 +31779,6 @@ func (p *HostDeviceServiceGetRequest) MustSend() *HostDeviceServiceGetResponse { } } -// // Retrieve information about a particular host's device. // An example of getting a host device: // [source] @@ -32983,15 +31788,16 @@ func (p *HostDeviceServiceGetRequest) MustSend() *HostDeviceServiceGetResponse { // [source,xml] // ---- // -// usb_1_9_1_1_0 -// usb -// -// -// usb_1_9_1 -// +// +// usb_1_9_1_1_0 +// usb +// +// +// usb_1_9_1 +// +// // // ---- -// type HostDeviceServiceGetResponse struct { device *HostDevice } @@ -33010,7 +31816,6 @@ func (p *HostDeviceServiceGetResponse) MustDevice() *HostDevice { return p.device } -// // Retrieve information about a particular host's device. // An example of getting a host device: // [source] @@ -33020,22 +31825,21 @@ func (p *HostDeviceServiceGetResponse) MustDevice() *HostDevice { // [source,xml] // ---- // -// usb_1_9_1_1_0 -// usb -// -// -// usb_1_9_1 -// +// +// usb_1_9_1_1_0 +// usb +// +// +// usb_1_9_1 +// +// // // ---- -// func (p *HostDeviceService) Get() *HostDeviceServiceGetRequest { return &HostDeviceServiceGetRequest{HostDeviceService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *HostDeviceService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -33047,9 +31851,7 @@ func (op *HostDeviceService) String() string { return fmt.Sprintf("HostDeviceService:%s", op.path) } -// // A service to access host devices. -// type HostDevicesService struct { BaseService } @@ -33061,10 +31863,8 @@ func NewHostDevicesService(connection *Connection, path string) *HostDevicesServ return &result } -// // List the devices of a host. // The order of the returned list of devices isn't guaranteed. -// type HostDevicesServiceListRequest struct { HostDevicesService *HostDevicesService header map[string]string @@ -33183,10 +31983,8 @@ func (p *HostDevicesServiceListRequest) MustSend() *HostDevicesServiceListRespon } } -// // List the devices of a host. // The order of the returned list of devices isn't guaranteed. -// type HostDevicesServiceListResponse struct { devices *HostDeviceSlice } @@ -33205,24 +32003,18 @@ func (p *HostDevicesServiceListResponse) MustDevices() *HostDeviceSlice { return p.devices } -// // List the devices of a host. // The order of the returned list of devices isn't guaranteed. -// func (p *HostDevicesService) List() *HostDevicesServiceListRequest { return &HostDevicesServiceListRequest{HostDevicesService: p} } -// // Reference to the service that can be used to access a specific host device. -// func (op *HostDevicesService) DeviceService(id string) *HostDeviceService { return NewHostDeviceService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *HostDevicesService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -33238,8 +32030,6 @@ func (op *HostDevicesService) String() string { return fmt.Sprintf("HostDevicesService:%s", op.path) } -// -// type HostHookService struct { BaseService } @@ -33251,8 +32041,6 @@ func NewHostHookService(connection *Connection, path string) *HostHookService { return &result } -// -// type HostHookServiceGetRequest struct { HostHookService *HostHookService header map[string]string @@ -33361,8 +32149,6 @@ func (p *HostHookServiceGetRequest) MustSend() *HostHookServiceGetResponse { } } -// -// type HostHookServiceGetResponse struct { hook *Hook } @@ -33381,15 +32167,11 @@ func (p *HostHookServiceGetResponse) MustHook() *Hook { return p.hook } -// -// func (p *HostHookService) Get() *HostHookServiceGetRequest { return &HostHookServiceGetRequest{HostHookService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *HostHookService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -33401,8 +32183,6 @@ func (op *HostHookService) String() string { return fmt.Sprintf("HostHookService:%s", op.path) } -// -// type HostHooksService struct { BaseService } @@ -33414,10 +32194,8 @@ func NewHostHooksService(connection *Connection, path string) *HostHooksService return &result } -// // Returns the list of hooks configured for the host. // The order of the returned list of hooks is random. -// type HostHooksServiceListRequest struct { HostHooksService *HostHooksService header map[string]string @@ -33536,10 +32314,8 @@ func (p *HostHooksServiceListRequest) MustSend() *HostHooksServiceListResponse { } } -// // Returns the list of hooks configured for the host. // The order of the returned list of hooks is random. -// type HostHooksServiceListResponse struct { hooks *HookSlice } @@ -33558,23 +32334,17 @@ func (p *HostHooksServiceListResponse) MustHooks() *HookSlice { return p.hooks } -// // Returns the list of hooks configured for the host. // The order of the returned list of hooks is random. -// func (p *HostHooksService) List() *HostHooksServiceListRequest { return &HostHooksServiceListRequest{HostHooksService: p} } -// -// func (op *HostHooksService) HookService(id string) *HostHookService { return NewHostHookService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *HostHooksService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -33590,9 +32360,7 @@ func (op *HostHooksService) String() string { return fmt.Sprintf("HostHooksService:%s", op.path) } -// // A service to manage a network interface of a host. -// type HostNicService struct { BaseService } @@ -33604,8 +32372,6 @@ func NewHostNicService(connection *Connection, path string) *HostNicService { return &result } -// -// type HostNicServiceGetRequest struct { HostNicService *HostNicService header map[string]string @@ -33724,8 +32490,6 @@ func (p *HostNicServiceGetRequest) MustSend() *HostNicServiceGetResponse { } } -// -// type HostNicServiceGetResponse struct { nic *HostNic } @@ -33744,19 +32508,15 @@ func (p *HostNicServiceGetResponse) MustNic() *HostNic { return p.nic } -// -// func (p *HostNicService) Get() *HostNicServiceGetRequest { return &HostNicServiceGetRequest{HostNicService: p} } -// // The action updates virtual function configuration in case the current resource represents an SR-IOV enabled NIC. // The input should be consisted of at least one of the following properties: // - `allNetworksAllowed` // - `numberOfVirtualFunctions` // Please see the `HostNicVirtualFunctionsConfiguration` type for the meaning of the properties. -// type HostNicServiceUpdateVirtualFunctionsConfigurationRequest struct { HostNicService *HostNicService header map[string]string @@ -33876,73 +32636,55 @@ func (p *HostNicServiceUpdateVirtualFunctionsConfigurationRequest) MustSend() *H } } -// // The action updates virtual function configuration in case the current resource represents an SR-IOV enabled NIC. // The input should be consisted of at least one of the following properties: // - `allNetworksAllowed` // - `numberOfVirtualFunctions` // Please see the `HostNicVirtualFunctionsConfiguration` type for the meaning of the properties. -// type HostNicServiceUpdateVirtualFunctionsConfigurationResponse struct { } -// // The action updates virtual function configuration in case the current resource represents an SR-IOV enabled NIC. // The input should be consisted of at least one of the following properties: // - `allNetworksAllowed` // - `numberOfVirtualFunctions` // Please see the `HostNicVirtualFunctionsConfiguration` type for the meaning of the properties. -// func (p *HostNicService) UpdateVirtualFunctionsConfiguration() *HostNicServiceUpdateVirtualFunctionsConfigurationRequest { return &HostNicServiceUpdateVirtualFunctionsConfigurationRequest{HostNicService: p} } -// // A reference to information elements received by LLDP on the NIC. -// func (op *HostNicService) LinkLayerDiscoveryProtocolElementsService() *LinkLayerDiscoveryProtocolService { return NewLinkLayerDiscoveryProtocolService(op.connection, fmt.Sprintf("%s/linklayerdiscoveryprotocolelements", op.path)) } -// // Reference to the service that manages the network attachments assigned to this network interface. -// func (op *HostNicService) NetworkAttachmentsService() *NetworkAttachmentsService { return NewNetworkAttachmentsService(op.connection, fmt.Sprintf("%s/networkattachments", op.path)) } -// // Reference to the service that manages the network labels assigned to this network interface. -// func (op *HostNicService) NetworkLabelsService() *NetworkLabelsService { return NewNetworkLabelsService(op.connection, fmt.Sprintf("%s/networklabels", op.path)) } -// -// func (op *HostNicService) StatisticsService() *StatisticsService { return NewStatisticsService(op.connection, fmt.Sprintf("%s/statistics", op.path)) } -// // Retrieves sub-collection resource of network labels that are allowed on an the virtual functions // in case that the current resource represents an SR-IOV physical function NIC. -// func (op *HostNicService) VirtualFunctionAllowedLabelsService() *NetworkLabelsService { return NewNetworkLabelsService(op.connection, fmt.Sprintf("%s/virtualfunctionallowedlabels", op.path)) } -// // Retrieves sub-collection resource of networks that are allowed on an the virtual functions // in case that the current resource represents an SR-IOV physical function NIC. -// func (op *HostNicService) VirtualFunctionAllowedNetworksService() *VirtualFunctionAllowedNetworksService { return NewVirtualFunctionAllowedNetworksService(op.connection, fmt.Sprintf("%s/virtualfunctionallowednetworks", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *HostNicService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -33990,9 +32732,7 @@ func (op *HostNicService) String() string { return fmt.Sprintf("HostNicService:%s", op.path) } -// // A service to manage the network interfaces of a host. -// type HostNicsService struct { BaseService } @@ -34004,10 +32744,8 @@ func NewHostNicsService(connection *Connection, path string) *HostNicsService { return &result } -// // Returns the list of network interfaces of the host. // The order of the returned list of network interfaces isn't guaranteed. -// type HostNicsServiceListRequest struct { HostNicsService *HostNicsService header map[string]string @@ -34136,10 +32874,8 @@ func (p *HostNicsServiceListRequest) MustSend() *HostNicsServiceListResponse { } } -// // Returns the list of network interfaces of the host. // The order of the returned list of network interfaces isn't guaranteed. -// type HostNicsServiceListResponse struct { nics *HostNicSlice } @@ -34158,24 +32894,18 @@ func (p *HostNicsServiceListResponse) MustNics() *HostNicSlice { return p.nics } -// // Returns the list of network interfaces of the host. // The order of the returned list of network interfaces isn't guaranteed. -// func (p *HostNicsService) List() *HostNicsServiceListRequest { return &HostNicsServiceListRequest{HostNicsService: p} } -// // Reference to the service that manages a single network interface. -// func (op *HostNicsService) NicService(id string) *HostNicService { return NewHostNicService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *HostNicsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -34191,8 +32921,6 @@ func (op *HostNicsService) String() string { return fmt.Sprintf("HostNicsService:%s", op.path) } -// -// type HostNumaNodeService struct { BaseService } @@ -34204,8 +32932,6 @@ func NewHostNumaNodeService(connection *Connection, path string) *HostNumaNodeSe return &result } -// -// type HostNumaNodeServiceGetRequest struct { HostNumaNodeService *HostNumaNodeService header map[string]string @@ -34314,8 +33040,6 @@ func (p *HostNumaNodeServiceGetRequest) MustSend() *HostNumaNodeServiceGetRespon } } -// -// type HostNumaNodeServiceGetResponse struct { node *NumaNode } @@ -34334,21 +33058,15 @@ func (p *HostNumaNodeServiceGetResponse) MustNode() *NumaNode { return p.node } -// -// func (p *HostNumaNodeService) Get() *HostNumaNodeServiceGetRequest { return &HostNumaNodeServiceGetRequest{HostNumaNodeService: p} } -// -// func (op *HostNumaNodeService) StatisticsService() *StatisticsService { return NewStatisticsService(op.connection, fmt.Sprintf("%s/statistics", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *HostNumaNodeService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -34366,8 +33084,6 @@ func (op *HostNumaNodeService) String() string { return fmt.Sprintf("HostNumaNodeService:%s", op.path) } -// -// type HostNumaNodesService struct { BaseService } @@ -34379,10 +33095,8 @@ func NewHostNumaNodesService(connection *Connection, path string) *HostNumaNodes return &result } -// // Returns the list of NUMA nodes of the host. // The order of the returned list of NUMA nodes isn't guaranteed. -// type HostNumaNodesServiceListRequest struct { HostNumaNodesService *HostNumaNodesService header map[string]string @@ -34501,10 +33215,8 @@ func (p *HostNumaNodesServiceListRequest) MustSend() *HostNumaNodesServiceListRe } } -// // Returns the list of NUMA nodes of the host. // The order of the returned list of NUMA nodes isn't guaranteed. -// type HostNumaNodesServiceListResponse struct { nodes *NumaNodeSlice } @@ -34523,23 +33235,17 @@ func (p *HostNumaNodesServiceListResponse) MustNodes() *NumaNodeSlice { return p.nodes } -// // Returns the list of NUMA nodes of the host. // The order of the returned list of NUMA nodes isn't guaranteed. -// func (p *HostNumaNodesService) List() *HostNumaNodesServiceListRequest { return &HostNumaNodesServiceListRequest{HostNumaNodesService: p} } -// -// func (op *HostNumaNodesService) NodeService(id string) *HostNumaNodeService { return NewHostNumaNodeService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *HostNumaNodesService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -34555,9 +33261,7 @@ func (op *HostNumaNodesService) String() string { return fmt.Sprintf("HostNumaNodesService:%s", op.path) } -// // A service to manage a host. -// type HostService struct { BaseService } @@ -34569,9 +33273,7 @@ func NewHostService(connection *Connection, path string) *HostService { return &result } -// // Activates the host for use, for example to run virtual machines. -// type HostServiceActivateRequest struct { HostService *HostService header map[string]string @@ -34684,23 +33386,17 @@ func (p *HostServiceActivateRequest) MustSend() *HostServiceActivateResponse { } } -// // Activates the host for use, for example to run virtual machines. -// type HostServiceActivateResponse struct { } -// // Activates the host for use, for example to run virtual machines. -// func (p *HostService) Activate() *HostServiceActivateRequest { return &HostServiceActivateRequest{HostService: p} } -// // Approve a pre-installed Hypervisor host for usage in the virtualization environment. // This action also accepts an optional cluster element to define the target cluster for this host. -// type HostServiceApproveRequest struct { HostService *HostService header map[string]string @@ -34845,22 +33541,17 @@ func (p *HostServiceApproveRequest) MustSend() *HostServiceApproveResponse { } } -// // Approve a pre-installed Hypervisor host for usage in the virtualization environment. // This action also accepts an optional cluster element to define the target cluster for this host. -// type HostServiceApproveResponse struct { } -// // Approve a pre-installed Hypervisor host for usage in the virtualization environment. // This action also accepts an optional cluster element to define the target cluster for this host. -// func (p *HostService) Approve() *HostServiceApproveRequest { return &HostServiceApproveRequest{HostService: p} } -// // Marks the network configuration as good and persists it inside the host. // An API user commits the network configuration to persist a host network interface attachment or detachment, or // persist the creation and deletion of a bonded interface. @@ -34882,7 +33573,6 @@ func (p *HostService) Approve() *HostServiceApproveRequest { // configuration is automatically saved in the {hypervisor-name} upon completing the setup and // re-establishing connectivity between the {hypervisor-name} and {engine-name}, and without // waiting for a separate <> request. -// type HostServiceCommitNetConfigRequest struct { HostService *HostService header map[string]string @@ -34995,7 +33685,6 @@ func (p *HostServiceCommitNetConfigRequest) MustSend() *HostServiceCommitNetConf } } -// // Marks the network configuration as good and persists it inside the host. // An API user commits the network configuration to persist a host network interface attachment or detachment, or // persist the creation and deletion of a bonded interface. @@ -35017,11 +33706,9 @@ func (p *HostServiceCommitNetConfigRequest) MustSend() *HostServiceCommitNetConf // configuration is automatically saved in the {hypervisor-name} upon completing the setup and // re-establishing connectivity between the {hypervisor-name} and {engine-name}, and without // waiting for a separate <> request. -// type HostServiceCommitNetConfigResponse struct { } -// // Marks the network configuration as good and persists it inside the host. // An API user commits the network configuration to persist a host network interface attachment or detachment, or // persist the creation and deletion of a bonded interface. @@ -35043,12 +33730,10 @@ type HostServiceCommitNetConfigResponse struct { // configuration is automatically saved in the {hypervisor-name} upon completing the setup and // re-establishing connectivity between the {hypervisor-name} and {engine-name}, and without // waiting for a separate <> request. -// func (p *HostService) CommitNetConfig() *HostServiceCommitNetConfigRequest { return &HostServiceCommitNetConfigRequest{HostService: p} } -// // Copy the network configuration of the specified host to current host. // IMPORTANT: Any network attachments that are not present on the source host will be erased from the target host // by the copy operation. @@ -35061,10 +33746,11 @@ func (p *HostService) CommitNetConfig() *HostServiceCommitNetConfigRequest { // [source,xml] // ---- // -// +// +// +// // // ---- -// type HostServiceCopyHostNetworksRequest struct { HostService *HostService header map[string]string @@ -35184,7 +33870,6 @@ func (p *HostServiceCopyHostNetworksRequest) MustSend() *HostServiceCopyHostNetw } } -// // Copy the network configuration of the specified host to current host. // IMPORTANT: Any network attachments that are not present on the source host will be erased from the target host // by the copy operation. @@ -35197,14 +33882,14 @@ func (p *HostServiceCopyHostNetworksRequest) MustSend() *HostServiceCopyHostNetw // [source,xml] // ---- // -// +// +// +// // // ---- -// type HostServiceCopyHostNetworksResponse struct { } -// // Copy the network configuration of the specified host to current host. // IMPORTANT: Any network attachments that are not present on the source host will be erased from the target host // by the copy operation. @@ -35217,17 +33902,16 @@ type HostServiceCopyHostNetworksResponse struct { // [source,xml] // ---- // -// +// +// +// // // ---- -// func (p *HostService) CopyHostNetworks() *HostServiceCopyHostNetworksRequest { return &HostServiceCopyHostNetworksRequest{HostService: p} } -// // Deactivates the host to perform maintenance tasks. -// type HostServiceDeactivateRequest struct { HostService *HostService header map[string]string @@ -35358,20 +34042,15 @@ func (p *HostServiceDeactivateRequest) MustSend() *HostServiceDeactivateResponse } } -// // Deactivates the host to perform maintenance tasks. -// type HostServiceDeactivateResponse struct { } -// // Deactivates the host to perform maintenance tasks. -// func (p *HostService) Deactivate() *HostServiceDeactivateRequest { return &HostServiceDeactivateRequest{HostService: p} } -// // Discovers iSCSI targets on the host, using the initiator details. // Returns a list of IscsiDetails objects containing the discovered data. // For example, to discover iSCSI targets available in `myiscsi.example.com`, @@ -35384,24 +34063,27 @@ func (p *HostService) Deactivate() *HostServiceDeactivateRequest { // [source,xml] // ---- // -// -//
myiscsi.example.com
-//
+// +// +//
myiscsi.example.com
+//
+// //
// ---- // The result will be like this: // [source,xml] // ---- // -// -//
10.35.1.72
-// 3260 -// 10.35.1.72:3260,1 -// iqn.2015-08.com.tgt:444 -//
+// +// +//
10.35.1.72
+// 3260 +// 10.35.1.72:3260,1 +// iqn.2015-08.com.tgt:444 +//
+// //
// ---- -// type HostServiceDiscoverIscsiRequest struct { HostService *HostService header map[string]string @@ -35522,7 +34204,6 @@ func (p *HostServiceDiscoverIscsiRequest) MustSend() *HostServiceDiscoverIscsiRe } } -// // Discovers iSCSI targets on the host, using the initiator details. // Returns a list of IscsiDetails objects containing the discovered data. // For example, to discover iSCSI targets available in `myiscsi.example.com`, @@ -35535,24 +34216,27 @@ func (p *HostServiceDiscoverIscsiRequest) MustSend() *HostServiceDiscoverIscsiRe // [source,xml] // ---- // -// -//
myiscsi.example.com
-//
+// +// +//
myiscsi.example.com
+//
+// //
// ---- // The result will be like this: // [source,xml] // ---- // -// -//
10.35.1.72
-// 3260 -// 10.35.1.72:3260,1 -// iqn.2015-08.com.tgt:444 -//
+// +// +//
10.35.1.72
+// 3260 +// 10.35.1.72:3260,1 +// iqn.2015-08.com.tgt:444 +//
+// //
// ---- -// type HostServiceDiscoverIscsiResponse struct { discoveredTargets *IscsiDetailsSlice } @@ -35571,7 +34255,6 @@ func (p *HostServiceDiscoverIscsiResponse) MustDiscoveredTargets() *IscsiDetails return p.discoveredTargets } -// // Discovers iSCSI targets on the host, using the initiator details. // Returns a list of IscsiDetails objects containing the discovered data. // For example, to discover iSCSI targets available in `myiscsi.example.com`, @@ -35584,32 +34267,33 @@ func (p *HostServiceDiscoverIscsiResponse) MustDiscoveredTargets() *IscsiDetails // [source,xml] // ---- // -// -//
myiscsi.example.com
-//
+// +// +//
myiscsi.example.com
+//
+// //
// ---- // The result will be like this: // [source,xml] // ---- // -// -//
10.35.1.72
-// 3260 -// 10.35.1.72:3260,1 -// iqn.2015-08.com.tgt:444 -//
+// +// +//
10.35.1.72
+// 3260 +// 10.35.1.72:3260,1 +// iqn.2015-08.com.tgt:444 +//
+// //
// ---- -// func (p *HostService) DiscoverIscsi() *HostServiceDiscoverIscsiRequest { return &HostServiceDiscoverIscsiRequest{HostService: p} } -// // Enrolls the certificate of the host. Useful in case you get a warning that it is about to expire or has already // expired. -// type HostServiceEnrollCertificateRequest struct { HostService *HostService header map[string]string @@ -35722,22 +34406,17 @@ func (p *HostServiceEnrollCertificateRequest) MustSend() *HostServiceEnrollCerti } } -// // Enrolls the certificate of the host. Useful in case you get a warning that it is about to expire or has already // expired. -// type HostServiceEnrollCertificateResponse struct { } -// // Enrolls the certificate of the host. Useful in case you get a warning that it is about to expire or has already // expired. -// func (p *HostService) EnrollCertificate() *HostServiceEnrollCertificateRequest { return &HostServiceEnrollCertificateRequest{HostService: p} } -// // Controls the host's power management device. // For example, to start the host. This can be done via: // [source] @@ -35756,12 +34435,13 @@ func (p *HostService) EnrollCertificate() *HostServiceEnrollCertificateRequest { // --header "Accept: application/xml" \ // --data ' // -// start +// +// start +// // // ' \ // "${url}/hosts/123/fence" // ---- -// type HostServiceFenceRequest struct { HostService *HostService header map[string]string @@ -35893,7 +34573,6 @@ func (p *HostServiceFenceRequest) MustSend() *HostServiceFenceResponse { } } -// // Controls the host's power management device. // For example, to start the host. This can be done via: // [source] @@ -35912,12 +34591,13 @@ func (p *HostServiceFenceRequest) MustSend() *HostServiceFenceResponse { // --header "Accept: application/xml" \ // --data ' // -// start +// +// start +// // // ' \ // "${url}/hosts/123/fence" // ---- -// type HostServiceFenceResponse struct { powerManagement *PowerManagement } @@ -35936,7 +34616,6 @@ func (p *HostServiceFenceResponse) MustPowerManagement() *PowerManagement { return p.powerManagement } -// // Controls the host's power management device. // For example, to start the host. This can be done via: // [source] @@ -35955,17 +34634,17 @@ func (p *HostServiceFenceResponse) MustPowerManagement() *PowerManagement { // --header "Accept: application/xml" \ // --data ' // -// start +// +// start +// // // ' \ // "${url}/hosts/123/fence" // ---- -// func (p *HostService) Fence() *HostServiceFenceRequest { return &HostServiceFenceRequest{HostService: p} } -// // To manually set a host as the storage pool manager (SPM). // [source] // ---- @@ -35976,7 +34655,6 @@ func (p *HostService) Fence() *HostServiceFenceRequest { // ---- // // ---- -// type HostServiceForceSelectSpmRequest struct { HostService *HostService header map[string]string @@ -36089,7 +34767,6 @@ func (p *HostServiceForceSelectSpmRequest) MustSend() *HostServiceForceSelectSpm } } -// // To manually set a host as the storage pool manager (SPM). // [source] // ---- @@ -36100,11 +34777,9 @@ func (p *HostServiceForceSelectSpmRequest) MustSend() *HostServiceForceSelectSpm // ---- // // ---- -// type HostServiceForceSelectSpmResponse struct { } -// // To manually set a host as the storage pool manager (SPM). // [source] // ---- @@ -36115,18 +34790,15 @@ type HostServiceForceSelectSpmResponse struct { // ---- // // ---- -// func (p *HostService) ForceSelectSpm() *HostServiceForceSelectSpmRequest { return &HostServiceForceSelectSpmRequest{HostService: p} } -// // Gets the host details. // [source] // ---- // GET /ovirt-engine/api/hosts/123 // ---- -// type HostServiceGetRequest struct { HostService *HostService header map[string]string @@ -36255,13 +34927,11 @@ func (p *HostServiceGetRequest) MustSend() *HostServiceGetResponse { } } -// // Gets the host details. // [source] // ---- // GET /ovirt-engine/api/hosts/123 // ---- -// type HostServiceGetResponse struct { host *Host } @@ -36280,18 +34950,15 @@ func (p *HostServiceGetResponse) MustHost() *Host { return p.host } -// // Gets the host details. // [source] // ---- // GET /ovirt-engine/api/hosts/123 // ---- -// func (p *HostService) Get() *HostServiceGetRequest { return &HostServiceGetRequest{HostService: p} } -// // Installs the latest version of VDSM and related software on the host. // The action also performs every configuration steps on the host which is done during adding host to the engine: // kdump configuration, hosted-engine deploy, kernel options changes, etc. @@ -36308,9 +34975,11 @@ func (p *HostService) Get() *HostServiceGetRequest { // --header "Version: 4" \ // --user "admin@internal:..." \ // --data ' -// { -// "root_password": "myrootpassword" -// } +// +// { +// "root_password": "myrootpassword" +// } +// // ' \ // "https://engine.example.com/ovirt-engine/api/hosts/123" // ---- @@ -36327,8 +34996,10 @@ func (p *HostService) Get() *HostServiceGetRequest { // --header "Version: 4" \ // --user "admin@internal:..." \ // --data ' -// { -// "root_password": "myrootpassword" +// +// { +// "root_password": "myrootpassword" +// // "deploy_hosted_engine" : "true" // } // ' \ @@ -36336,7 +35007,6 @@ func (p *HostService) Get() *HostServiceGetRequest { // ---- // IMPORTANT: Since version 4.1.2 of the engine, when a host is reinstalled we override the host firewall // definitions by default. -// type HostServiceInstallRequest struct { HostService *HostService header map[string]string @@ -36517,7 +35187,6 @@ func (p *HostServiceInstallRequest) MustSend() *HostServiceInstallResponse { } } -// // Installs the latest version of VDSM and related software on the host. // The action also performs every configuration steps on the host which is done during adding host to the engine: // kdump configuration, hosted-engine deploy, kernel options changes, etc. @@ -36534,9 +35203,11 @@ func (p *HostServiceInstallRequest) MustSend() *HostServiceInstallResponse { // --header "Version: 4" \ // --user "admin@internal:..." \ // --data ' -// { -// "root_password": "myrootpassword" -// } +// +// { +// "root_password": "myrootpassword" +// } +// // ' \ // "https://engine.example.com/ovirt-engine/api/hosts/123" // ---- @@ -36553,8 +35224,10 @@ func (p *HostServiceInstallRequest) MustSend() *HostServiceInstallResponse { // --header "Version: 4" \ // --user "admin@internal:..." \ // --data ' -// { -// "root_password": "myrootpassword" +// +// { +// "root_password": "myrootpassword" +// // "deploy_hosted_engine" : "true" // } // ' \ @@ -36562,11 +35235,9 @@ func (p *HostServiceInstallRequest) MustSend() *HostServiceInstallResponse { // ---- // IMPORTANT: Since version 4.1.2 of the engine, when a host is reinstalled we override the host firewall // definitions by default. -// type HostServiceInstallResponse struct { } -// // Installs the latest version of VDSM and related software on the host. // The action also performs every configuration steps on the host which is done during adding host to the engine: // kdump configuration, hosted-engine deploy, kernel options changes, etc. @@ -36583,9 +35254,11 @@ type HostServiceInstallResponse struct { // --header "Version: 4" \ // --user "admin@internal:..." \ // --data ' -// { -// "root_password": "myrootpassword" -// } +// +// { +// "root_password": "myrootpassword" +// } +// // ' \ // "https://engine.example.com/ovirt-engine/api/hosts/123" // ---- @@ -36602,8 +35275,10 @@ type HostServiceInstallResponse struct { // --header "Version: 4" \ // --user "admin@internal:..." \ // --data ' -// { -// "root_password": "myrootpassword" +// +// { +// "root_password": "myrootpassword" +// // "deploy_hosted_engine" : "true" // } // ' \ @@ -36611,12 +35286,10 @@ type HostServiceInstallResponse struct { // ---- // IMPORTANT: Since version 4.1.2 of the engine, when a host is reinstalled we override the host firewall // definitions by default. -// func (p *HostService) Install() *HostServiceInstallRequest { return &HostServiceInstallRequest{HostService: p} } -// // This method has been deprecated since Engine version 4.4.6. // DiscoverIscsi should be used instead. // Discovers iSCSI targets on the host, using the initiator details. @@ -36631,12 +35304,13 @@ func (p *HostService) Install() *HostServiceInstallRequest { // [source,xml] // ---- // -// -//
myiscsi.example.com
-//
+// +// +//
myiscsi.example.com
+//
+// //
// ---- -// type HostServiceIscsiDiscoverRequest struct { HostService *HostService header map[string]string @@ -36757,7 +35431,6 @@ func (p *HostServiceIscsiDiscoverRequest) MustSend() *HostServiceIscsiDiscoverRe } } -// // This method has been deprecated since Engine version 4.4.6. // DiscoverIscsi should be used instead. // Discovers iSCSI targets on the host, using the initiator details. @@ -36772,12 +35445,13 @@ func (p *HostServiceIscsiDiscoverRequest) MustSend() *HostServiceIscsiDiscoverRe // [source,xml] // ---- // -// -//
myiscsi.example.com
-//
+// +// +//
myiscsi.example.com
+//
+// //
// ---- -// type HostServiceIscsiDiscoverResponse struct { iscsiTargets []string } @@ -36796,7 +35470,6 @@ func (p *HostServiceIscsiDiscoverResponse) MustIscsiTargets() []string { return p.iscsiTargets } -// // This method has been deprecated since Engine version 4.4.6. // DiscoverIscsi should be used instead. // Discovers iSCSI targets on the host, using the initiator details. @@ -36811,19 +35484,18 @@ func (p *HostServiceIscsiDiscoverResponse) MustIscsiTargets() []string { // [source,xml] // ---- // -// -//
myiscsi.example.com
-//
+// +// +//
myiscsi.example.com
+//
+// //
// ---- -// func (p *HostService) IscsiDiscover() *HostServiceIscsiDiscoverRequest { return &HostServiceIscsiDiscoverRequest{HostService: p} } -// // Login to iSCSI targets on the host, using the target details. -// type HostServiceIscsiLoginRequest struct { HostService *HostService header map[string]string @@ -36943,22 +35615,16 @@ func (p *HostServiceIscsiLoginRequest) MustSend() *HostServiceIscsiLoginResponse } } -// // Login to iSCSI targets on the host, using the target details. -// type HostServiceIscsiLoginResponse struct { } -// // Login to iSCSI targets on the host, using the target details. -// func (p *HostService) IscsiLogin() *HostServiceIscsiLoginRequest { return &HostServiceIscsiLoginRequest{HostService: p} } -// // Refresh the host devices and capabilities. -// type HostServiceRefreshRequest struct { HostService *HostService header map[string]string @@ -37071,20 +35737,15 @@ func (p *HostServiceRefreshRequest) MustSend() *HostServiceRefreshResponse { } } -// // Refresh the host devices and capabilities. -// type HostServiceRefreshResponse struct { } -// // Refresh the host devices and capabilities. -// func (p *HostService) Refresh() *HostServiceRefreshRequest { return &HostServiceRefreshRequest{HostService: p} } -// // Remove the host from the system. // [source] // ---- @@ -37100,7 +35761,6 @@ func (p *HostService) Refresh() *HostServiceRefreshRequest { // --header "Version: 4" \ // "${url}/hosts/1ff7a191-2f3b-4eff-812b-9f91a30c3acc" // ---- -// type HostServiceRemoveRequest struct { HostService *HostService header map[string]string @@ -37214,7 +35874,6 @@ func (p *HostServiceRemoveRequest) MustSend() *HostServiceRemoveResponse { } } -// // Remove the host from the system. // [source] // ---- @@ -37230,11 +35889,9 @@ func (p *HostServiceRemoveRequest) MustSend() *HostServiceRemoveResponse { // --header "Version: 4" \ // "${url}/hosts/1ff7a191-2f3b-4eff-812b-9f91a30c3acc" // ---- -// type HostServiceRemoveResponse struct { } -// // Remove the host from the system. // [source] // ---- @@ -37250,12 +35907,10 @@ type HostServiceRemoveResponse struct { // --header "Version: 4" \ // "${url}/hosts/1ff7a191-2f3b-4eff-812b-9f91a30c3acc" // ---- -// func (p *HostService) Remove() *HostServiceRemoveRequest { return &HostServiceRemoveRequest{HostService: p} } -// // This method is used to change the configuration of the network interfaces of a host. // For example, if you have a host with three network interfaces `eth0`, `eth1` and `eth2` and you want to configure // a new bond using `eth0` and `eth1`, and put a VLAN on top of it. Using a simple shell script and the `curl` @@ -37276,57 +35931,59 @@ func (p *HostService) Remove() *HostServiceRemoveRequest { // --header "Accept: application/xml" \ // --data ' // -// -// -// bond0 -// -// -// -// -// -// -// -// eth1 -// -// -// eth2 -// -// -// -// -// -// -// -// -// myvlan -// -// -// bond0 -// -// -// -// static -// -//
192.168.122.10
-// 255.255.255.0 -//
-//
-//
-// -// -// 1.1.1.1 -// 2.2.2.2 -// -// -//
-//
-//
+// +// +// +// bond0 +// +// +// +// +// +// +// +// eth1 +// +// +// eth2 +// +// +// +// +// +// +// +// +// myvlan +// +// +// bond0 +// +// +// +// static +// +//
192.168.122.10
+// 255.255.255.0 +//
+//
+//
+// +// +// 1.1.1.1 +// 2.2.2.2 +// +// +//
+//
+//
+// // ' \ // "${url}/hosts/1ff7a191-2f3b-4eff-812b-9f91a30c3acc/setupnetworks" // ---- @@ -37350,56 +36007,58 @@ func (p *HostService) Remove() *HostServiceRemoveRequest { // # Configure the network adding a bond with two slaves and attaching it to a // # network with an static IP address: // host_service.setup_networks( -// modified_bonds=[ -// types.HostNic( -// name='bond0', -// bonding=types.Bonding( -// options=[ -// types.Option( -// name='mode', -// value='4', -// ), -// types.Option( -// name='miimon', -// value='100', -// ), -// ], -// slaves=[ -// types.HostNic( -// name='eth1', -// ), -// types.HostNic( -// name='eth2', -// ), -// ], -// ), -// ), -// ], -// modified_network_attachments=[ -// types.NetworkAttachment( -// network=types.Network( -// name='myvlan', -// ), -// host_nic=types.HostNic( -// name='bond0', -// ), -// ip_address_assignments=[ -// types.IpAddressAssignment( -// assignment_method=types.BootProtocol.STATIC, -// ip=types.Ip( -// address='192.168.122.10', -// netmask='255.255.255.0', -// ), -// ), -// ], -// dns_resolver_configuration=types.DnsResolverConfiguration( -// name_servers=[ -// '1.1.1.1', -// '2.2.2.2', -// ], -// ), -// ), -// ], +// +// modified_bonds=[ +// types.HostNic( +// name='bond0', +// bonding=types.Bonding( +// options=[ +// types.Option( +// name='mode', +// value='4', +// ), +// types.Option( +// name='miimon', +// value='100', +// ), +// ], +// slaves=[ +// types.HostNic( +// name='eth1', +// ), +// types.HostNic( +// name='eth2', +// ), +// ], +// ), +// ), +// ], +// modified_network_attachments=[ +// types.NetworkAttachment( +// network=types.Network( +// name='myvlan', +// ), +// host_nic=types.HostNic( +// name='bond0', +// ), +// ip_address_assignments=[ +// types.IpAddressAssignment( +// assignment_method=types.BootProtocol.STATIC, +// ip=types.Ip( +// address='192.168.122.10', +// netmask='255.255.255.0', +// ), +// ), +// ], +// dns_resolver_configuration=types.DnsResolverConfiguration( +// name_servers=[ +// '1.1.1.1', +// '2.2.2.2', +// ], +// ), +// ), +// ], +// // ) // # After modifying the network configuration it is very important to make it // # persistent: @@ -37412,7 +36071,6 @@ func (p *HostService) Remove() *HostServiceRemoveRequest { // configuration is automatically saved in the {hypervisor-name} upon completing the setup and // re-establishing connectivity between the {hypervisor-name} and {engine-name}, and without // waiting for a separate <> request. -// type HostServiceSetupNetworksRequest struct { HostService *HostService header map[string]string @@ -37657,7 +36315,6 @@ func (p *HostServiceSetupNetworksRequest) MustSend() *HostServiceSetupNetworksRe } } -// // This method is used to change the configuration of the network interfaces of a host. // For example, if you have a host with three network interfaces `eth0`, `eth1` and `eth2` and you want to configure // a new bond using `eth0` and `eth1`, and put a VLAN on top of it. Using a simple shell script and the `curl` @@ -37678,57 +36335,59 @@ func (p *HostServiceSetupNetworksRequest) MustSend() *HostServiceSetupNetworksRe // --header "Accept: application/xml" \ // --data ' // -// -// -// bond0 -// -// -// -// -// -// -// -// eth1 -// -// -// eth2 -// -// -// -// -// -// -// -// -// myvlan -// -// -// bond0 -// -// -// -// static -// -//
192.168.122.10
-// 255.255.255.0 -//
-//
-//
-// -// -// 1.1.1.1 -// 2.2.2.2 -// -// -//
-//
-//
+// +// +// +// bond0 +// +// +// +// +// +// +// +// eth1 +// +// +// eth2 +// +// +// +// +// +// +// +// +// myvlan +// +// +// bond0 +// +// +// +// static +// +//
192.168.122.10
+// 255.255.255.0 +//
+//
+//
+// +// +// 1.1.1.1 +// 2.2.2.2 +// +// +//
+//
+//
+// // ' \ // "${url}/hosts/1ff7a191-2f3b-4eff-812b-9f91a30c3acc/setupnetworks" // ---- @@ -37752,56 +36411,58 @@ func (p *HostServiceSetupNetworksRequest) MustSend() *HostServiceSetupNetworksRe // # Configure the network adding a bond with two slaves and attaching it to a // # network with an static IP address: // host_service.setup_networks( -// modified_bonds=[ -// types.HostNic( -// name='bond0', -// bonding=types.Bonding( -// options=[ -// types.Option( -// name='mode', -// value='4', -// ), -// types.Option( -// name='miimon', -// value='100', -// ), -// ], -// slaves=[ -// types.HostNic( -// name='eth1', -// ), -// types.HostNic( -// name='eth2', -// ), -// ], -// ), -// ), -// ], -// modified_network_attachments=[ -// types.NetworkAttachment( -// network=types.Network( -// name='myvlan', -// ), -// host_nic=types.HostNic( -// name='bond0', -// ), -// ip_address_assignments=[ -// types.IpAddressAssignment( -// assignment_method=types.BootProtocol.STATIC, -// ip=types.Ip( -// address='192.168.122.10', -// netmask='255.255.255.0', -// ), -// ), -// ], -// dns_resolver_configuration=types.DnsResolverConfiguration( -// name_servers=[ -// '1.1.1.1', -// '2.2.2.2', -// ], -// ), -// ), -// ], +// +// modified_bonds=[ +// types.HostNic( +// name='bond0', +// bonding=types.Bonding( +// options=[ +// types.Option( +// name='mode', +// value='4', +// ), +// types.Option( +// name='miimon', +// value='100', +// ), +// ], +// slaves=[ +// types.HostNic( +// name='eth1', +// ), +// types.HostNic( +// name='eth2', +// ), +// ], +// ), +// ), +// ], +// modified_network_attachments=[ +// types.NetworkAttachment( +// network=types.Network( +// name='myvlan', +// ), +// host_nic=types.HostNic( +// name='bond0', +// ), +// ip_address_assignments=[ +// types.IpAddressAssignment( +// assignment_method=types.BootProtocol.STATIC, +// ip=types.Ip( +// address='192.168.122.10', +// netmask='255.255.255.0', +// ), +// ), +// ], +// dns_resolver_configuration=types.DnsResolverConfiguration( +// name_servers=[ +// '1.1.1.1', +// '2.2.2.2', +// ], +// ), +// ), +// ], +// // ) // # After modifying the network configuration it is very important to make it // # persistent: @@ -37814,11 +36475,9 @@ func (p *HostServiceSetupNetworksRequest) MustSend() *HostServiceSetupNetworksRe // configuration is automatically saved in the {hypervisor-name} upon completing the setup and // re-establishing connectivity between the {hypervisor-name} and {engine-name}, and without // waiting for a separate <> request. -// type HostServiceSetupNetworksResponse struct { } -// // This method is used to change the configuration of the network interfaces of a host. // For example, if you have a host with three network interfaces `eth0`, `eth1` and `eth2` and you want to configure // a new bond using `eth0` and `eth1`, and put a VLAN on top of it. Using a simple shell script and the `curl` @@ -37839,57 +36498,59 @@ type HostServiceSetupNetworksResponse struct { // --header "Accept: application/xml" \ // --data ' // -// -// -// bond0 -// -// -// -// -// -// -// -// eth1 -// -// -// eth2 -// -// -// -// -// -// -// -// -// myvlan -// -// -// bond0 -// -// -// -// static -// -//
192.168.122.10
-// 255.255.255.0 -//
-//
-//
-// -// -// 1.1.1.1 -// 2.2.2.2 -// -// -//
-//
-//
+// +// +// +// bond0 +// +// +// +// +// +// +// +// eth1 +// +// +// eth2 +// +// +// +// +// +// +// +// +// myvlan +// +// +// bond0 +// +// +// +// static +// +//
192.168.122.10
+// 255.255.255.0 +//
+//
+//
+// +// +// 1.1.1.1 +// 2.2.2.2 +// +// +//
+//
+//
+// // ' \ // "${url}/hosts/1ff7a191-2f3b-4eff-812b-9f91a30c3acc/setupnetworks" // ---- @@ -37913,56 +36574,58 @@ type HostServiceSetupNetworksResponse struct { // # Configure the network adding a bond with two slaves and attaching it to a // # network with an static IP address: // host_service.setup_networks( -// modified_bonds=[ -// types.HostNic( -// name='bond0', -// bonding=types.Bonding( -// options=[ -// types.Option( -// name='mode', -// value='4', -// ), -// types.Option( -// name='miimon', -// value='100', -// ), -// ], -// slaves=[ -// types.HostNic( -// name='eth1', -// ), -// types.HostNic( -// name='eth2', -// ), -// ], -// ), -// ), -// ], -// modified_network_attachments=[ -// types.NetworkAttachment( -// network=types.Network( -// name='myvlan', -// ), -// host_nic=types.HostNic( -// name='bond0', -// ), -// ip_address_assignments=[ -// types.IpAddressAssignment( -// assignment_method=types.BootProtocol.STATIC, -// ip=types.Ip( -// address='192.168.122.10', -// netmask='255.255.255.0', -// ), -// ), -// ], -// dns_resolver_configuration=types.DnsResolverConfiguration( -// name_servers=[ -// '1.1.1.1', -// '2.2.2.2', -// ], -// ), -// ), -// ], +// +// modified_bonds=[ +// types.HostNic( +// name='bond0', +// bonding=types.Bonding( +// options=[ +// types.Option( +// name='mode', +// value='4', +// ), +// types.Option( +// name='miimon', +// value='100', +// ), +// ], +// slaves=[ +// types.HostNic( +// name='eth1', +// ), +// types.HostNic( +// name='eth2', +// ), +// ], +// ), +// ), +// ], +// modified_network_attachments=[ +// types.NetworkAttachment( +// network=types.Network( +// name='myvlan', +// ), +// host_nic=types.HostNic( +// name='bond0', +// ), +// ip_address_assignments=[ +// types.IpAddressAssignment( +// assignment_method=types.BootProtocol.STATIC, +// ip=types.Ip( +// address='192.168.122.10', +// netmask='255.255.255.0', +// ), +// ), +// ], +// dns_resolver_configuration=types.DnsResolverConfiguration( +// name_servers=[ +// '1.1.1.1', +// '2.2.2.2', +// ], +// ), +// ), +// ], +// // ) // # After modifying the network configuration it is very important to make it // # persistent: @@ -37975,12 +36638,10 @@ type HostServiceSetupNetworksResponse struct { // configuration is automatically saved in the {hypervisor-name} upon completing the setup and // re-establishing connectivity between the {hypervisor-name} and {engine-name}, and without // waiting for a separate <> request. -// func (p *HostService) SetupNetworks() *HostServiceSetupNetworksRequest { return &HostServiceSetupNetworksRequest{HostService: p} } -// // To synchronize all networks on the host, send a request like this: // [source] // ---- @@ -37991,7 +36652,6 @@ func (p *HostService) SetupNetworks() *HostServiceSetupNetworksRequest { // ---- // // ---- -// type HostServiceSyncAllNetworksRequest struct { HostService *HostService header map[string]string @@ -38104,7 +36764,6 @@ func (p *HostServiceSyncAllNetworksRequest) MustSend() *HostServiceSyncAllNetwor } } -// // To synchronize all networks on the host, send a request like this: // [source] // ---- @@ -38115,11 +36774,9 @@ func (p *HostServiceSyncAllNetworksRequest) MustSend() *HostServiceSyncAllNetwor // ---- // // ---- -// type HostServiceSyncAllNetworksResponse struct { } -// // To synchronize all networks on the host, send a request like this: // [source] // ---- @@ -38130,15 +36787,12 @@ type HostServiceSyncAllNetworksResponse struct { // ---- // // ---- -// func (p *HostService) SyncAllNetworks() *HostServiceSyncAllNetworksRequest { return &HostServiceSyncAllNetworksRequest{HostService: p} } -// // Discovers the block Storage Domains which are candidates to be imported to the setup. For FCP no arguments are // required. -// type HostServiceUnregisteredStorageDomainsDiscoverRequest struct { HostService *HostService header map[string]string @@ -38259,10 +36913,8 @@ func (p *HostServiceUnregisteredStorageDomainsDiscoverRequest) MustSend() *HostS } } -// // Discovers the block Storage Domains which are candidates to be imported to the setup. For FCP no arguments are // required. -// type HostServiceUnregisteredStorageDomainsDiscoverResponse struct { storageDomains *StorageDomainSlice } @@ -38281,15 +36933,12 @@ func (p *HostServiceUnregisteredStorageDomainsDiscoverResponse) MustStorageDomai return p.storageDomains } -// // Discovers the block Storage Domains which are candidates to be imported to the setup. For FCP no arguments are // required. -// func (p *HostService) UnregisteredStorageDomainsDiscover() *HostServiceUnregisteredStorageDomainsDiscoverRequest { return &HostServiceUnregisteredStorageDomainsDiscoverRequest{HostService: p} } -// // Update the host properties. // For example, to update a the kernel command line of a host send a request like this: // [source] @@ -38300,12 +36949,13 @@ func (p *HostService) UnregisteredStorageDomainsDiscover() *HostServiceUnregiste // [source, xml] // ---- // -// -// vfio_iommu_type1.allow_unsafe_interrupts=1 -// +// +// +// vfio_iommu_type1.allow_unsafe_interrupts=1 +// +// // // ---- -// type HostServiceUpdateRequest struct { HostService *HostService header map[string]string @@ -38427,7 +37077,6 @@ func (p *HostServiceUpdateRequest) MustSend() *HostServiceUpdateResponse { } } -// // Update the host properties. // For example, to update a the kernel command line of a host send a request like this: // [source] @@ -38438,12 +37087,13 @@ func (p *HostServiceUpdateRequest) MustSend() *HostServiceUpdateResponse { // [source, xml] // ---- // -// -// vfio_iommu_type1.allow_unsafe_interrupts=1 -// +// +// +// vfio_iommu_type1.allow_unsafe_interrupts=1 +// +// // // ---- -// type HostServiceUpdateResponse struct { host *Host } @@ -38462,7 +37112,6 @@ func (p *HostServiceUpdateResponse) MustHost() *Host { return p.host } -// // Update the host properties. // For example, to update a the kernel command line of a host send a request like this: // [source] @@ -38473,19 +37122,18 @@ func (p *HostServiceUpdateResponse) MustHost() *Host { // [source, xml] // ---- // -// -// vfio_iommu_type1.allow_unsafe_interrupts=1 -// +// +// +// vfio_iommu_type1.allow_unsafe_interrupts=1 +// +// // // ---- -// func (p *HostService) Update() *HostServiceUpdateRequest { return &HostServiceUpdateRequest{HostService: p} } -// // Upgrades VDSM and selected software on the host. -// type HostServiceUpgradeRequest struct { HostService *HostService header map[string]string @@ -38625,25 +37273,19 @@ func (p *HostServiceUpgradeRequest) MustSend() *HostServiceUpgradeResponse { } } -// // Upgrades VDSM and selected software on the host. -// type HostServiceUpgradeResponse struct { } -// // Upgrades VDSM and selected software on the host. -// func (p *HostService) Upgrade() *HostServiceUpgradeRequest { return &HostServiceUpgradeRequest{HostService: p} } -// // Check if there are upgrades available for the host. If there are upgrades available an icon will be displayed // next to host status icon in the Administration Portal. Audit log messages are also added to indicate the // availability of upgrades. The upgrade can be started from the webadmin or by using the // <> host action. -// type HostServiceUpgradeCheckRequest struct { HostService *HostService header map[string]string @@ -38747,27 +37389,21 @@ func (p *HostServiceUpgradeCheckRequest) MustSend() *HostServiceUpgradeCheckResp } } -// // Check if there are upgrades available for the host. If there are upgrades available an icon will be displayed // next to host status icon in the Administration Portal. Audit log messages are also added to indicate the // availability of upgrades. The upgrade can be started from the webadmin or by using the // <> host action. -// type HostServiceUpgradeCheckResponse struct { } -// // Check if there are upgrades available for the host. If there are upgrades available an icon will be displayed // next to host status icon in the Administration Portal. Audit log messages are also added to indicate the // availability of upgrades. The upgrade can be started from the webadmin or by using the // <> host action. -// func (p *HostService) UpgradeCheck() *HostServiceUpgradeCheckRequest { return &HostServiceUpgradeCheckRequest{HostService: p} } -// -// type HostServiceApproveUsingRootPasswordRequest struct { HostService *HostService header map[string]string @@ -38912,21 +37548,15 @@ func (p *HostServiceApproveUsingRootPasswordRequest) MustSend() *HostServiceAppr } } -// -// type HostServiceApproveUsingRootPasswordResponse struct { } -// -// func (p *HostService) ApproveUsingRootPassword() *HostServiceApproveUsingRootPasswordRequest { return &HostServiceApproveUsingRootPasswordRequest{HostService: p} } -// // Install VDSM and other packages required to get the host ready to be used in the engine providing the root // password. This has been deprecated. -// type HostServiceInstallUsingRootPasswordRequest struct { HostService *HostService header map[string]string @@ -39107,24 +37737,18 @@ func (p *HostServiceInstallUsingRootPasswordRequest) MustSend() *HostServiceInst } } -// // Install VDSM and other packages required to get the host ready to be used in the engine providing the root // password. This has been deprecated. -// type HostServiceInstallUsingRootPasswordResponse struct { } -// // Install VDSM and other packages required to get the host ready to be used in the engine providing the root // password. This has been deprecated. -// func (p *HostService) InstallUsingRootPassword() *HostServiceInstallUsingRootPasswordRequest { return &HostServiceInstallUsingRootPasswordRequest{HostService: p} } -// // Update the specified host in the system. This is deprecated and is provided only for backwards compatibility. -// type HostServiceUpdateUsingRootPasswordRequest struct { HostService *HostService header map[string]string @@ -39245,9 +37869,7 @@ func (p *HostServiceUpdateUsingRootPasswordRequest) MustSend() *HostServiceUpdat } } -// // Update the specified host in the system. This is deprecated and is provided only for backwards compatibility. -// type HostServiceUpdateUsingRootPasswordResponse struct { host *Host } @@ -39266,17 +37888,13 @@ func (p *HostServiceUpdateUsingRootPasswordResponse) MustHost() *Host { return p.host } -// // Update the specified host in the system. This is deprecated and is provided only for backwards compatibility. -// func (p *HostService) UpdateUsingRootPassword() *HostServiceUpdateUsingRootPasswordRequest { return &HostServiceUpdateUsingRootPasswordRequest{HostService: p} } -// // Approve the specified host to be added to the engine by using ssh authentication. This occurs when the host // registers itself with the engine. -// type HostServiceApproveUsingSshRequest struct { HostService *HostService header map[string]string @@ -39421,25 +38039,19 @@ func (p *HostServiceApproveUsingSshRequest) MustSend() *HostServiceApproveUsingS } } -// // Approve the specified host to be added to the engine by using ssh authentication. This occurs when the host // registers itself with the engine. -// type HostServiceApproveUsingSshResponse struct { } -// // Approve the specified host to be added to the engine by using ssh authentication. This occurs when the host // registers itself with the engine. -// func (p *HostService) ApproveUsingSsh() *HostServiceApproveUsingSshRequest { return &HostServiceApproveUsingSshRequest{HostService: p} } -// // Install VDSM and other packages required to get the host ready to be used in the engine providing the SSH // password. -// type HostServiceInstallUsingSshRequest struct { HostService *HostService header map[string]string @@ -39620,24 +38232,18 @@ func (p *HostServiceInstallUsingSshRequest) MustSend() *HostServiceInstallUsingS } } -// // Install VDSM and other packages required to get the host ready to be used in the engine providing the SSH // password. -// type HostServiceInstallUsingSshResponse struct { } -// // Install VDSM and other packages required to get the host ready to be used in the engine providing the SSH // password. -// func (p *HostService) InstallUsingSsh() *HostServiceInstallUsingSshRequest { return &HostServiceInstallUsingSshRequest{HostService: p} } -// // Updates the specified host in the system. -// type HostServiceUpdateUsingSshRequest struct { HostService *HostService header map[string]string @@ -39758,9 +38364,7 @@ func (p *HostServiceUpdateUsingSshRequest) MustSend() *HostServiceUpdateUsingSsh } } -// // Updates the specified host in the system. -// type HostServiceUpdateUsingSshResponse struct { host *Host } @@ -39779,124 +38383,90 @@ func (p *HostServiceUpdateUsingSshResponse) MustHost() *Host { return p.host } -// // Updates the specified host in the system. -// func (p *HostService) UpdateUsingSsh() *HostServiceUpdateUsingSshRequest { return &HostServiceUpdateUsingSshRequest{HostService: p} } -// // List of scheduling labels assigned to this host. -// func (op *HostService) AffinityLabelsService() *AssignedAffinityLabelsService { return NewAssignedAffinityLabelsService(op.connection, fmt.Sprintf("%s/affinitylabels", op.path)) } -// // A reference to the host devices service. Use this service to view the devices of the host object. -// func (op *HostService) DevicesService() *HostDevicesService { return NewHostDevicesService(op.connection, fmt.Sprintf("%s/devices", op.path)) } -// // External network providers provisioned by the system on the host. -// func (op *HostService) ExternalNetworkProviderConfigurationsService() *ExternalNetworkProviderConfigurationsService { return NewExternalNetworkProviderConfigurationsService(op.connection, fmt.Sprintf("%s/externalnetworkproviderconfigurations", op.path)) } -// // A reference to the fence agents service. Use this service to manage fence and power management agents on the host // object. -// func (op *HostService) FenceAgentsService() *FenceAgentsService { return NewFenceAgentsService(op.connection, fmt.Sprintf("%s/fenceagents", op.path)) } -// // A reference to the host hooks service. Use this service to view the hooks available in the host object. -// func (op *HostService) HooksService() *HostHooksService { return NewHostHooksService(op.connection, fmt.Sprintf("%s/hooks", op.path)) } -// // A reference to the service that can show the applicable errata available on the host. This information is taken // from Katello. -// func (op *HostService) KatelloErrataService() *KatelloErrataService { return NewKatelloErrataService(op.connection, fmt.Sprintf("%s/katelloerrata", op.path)) } -// // A reference to the network attachments service. You can use this service to attach Logical networks to host // interfaces. -// func (op *HostService) NetworkAttachmentsService() *NetworkAttachmentsService { return NewNetworkAttachmentsService(op.connection, fmt.Sprintf("%s/networkattachments", op.path)) } -// // A reference to the service that manages the network interface devices on the host. -// func (op *HostService) NicsService() *HostNicsService { return NewHostNicsService(op.connection, fmt.Sprintf("%s/nics", op.path)) } -// // A reference to the service that manage NUMA nodes for the host. -// func (op *HostService) NumaNodesService() *HostNumaNodesService { return NewHostNumaNodesService(op.connection, fmt.Sprintf("%s/numanodes", op.path)) } -// // A reference to the host permission service. // Use this service to manage permissions on the host object. -// func (op *HostService) PermissionsService() *AssignedPermissionsService { return NewAssignedPermissionsService(op.connection, fmt.Sprintf("%s/permissions", op.path)) } -// -// func (op *HostService) StatisticsService() *StatisticsService { return NewStatisticsService(op.connection, fmt.Sprintf("%s/statistics", op.path)) } -// // A reference to the service that manages the host's storage. -// func (op *HostService) StorageService() *HostStorageService { return NewHostStorageService(op.connection, fmt.Sprintf("%s/storage", op.path)) } -// // A reference to storage connection extensions. -// func (op *HostService) StorageConnectionExtensionsService() *StorageServerConnectionExtensionsService { return NewStorageServerConnectionExtensionsService(op.connection, fmt.Sprintf("%s/storageconnectionextensions", op.path)) } -// // A reference to the host tags service. Use this service to manage tags on the host object. -// func (op *HostService) TagsService() *AssignedTagsService { return NewAssignedTagsService(op.connection, fmt.Sprintf("%s/tags", op.path)) } -// // A reference to unmanaged networks. -// func (op *HostService) UnmanagedNetworksService() *UnmanagedNetworksService { return NewUnmanagedNetworksService(op.connection, fmt.Sprintf("%s/unmanagednetworks", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *HostService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -39998,9 +38568,7 @@ func (op *HostService) String() string { return fmt.Sprintf("HostService:%s", op.path) } -// // A service to manage host storages. -// type HostStorageService struct { BaseService } @@ -40012,7 +38580,6 @@ func NewHostStorageService(connection *Connection, path string) *HostStorageServ return &result } -// // Get list of storages. // [source] // ---- @@ -40022,14 +38589,15 @@ func NewHostStorageService(connection *Connection, path string) *HostStorageServ // [source,xml] // ---- // -// -// ... -// -// ... +// +// +// ... +// +// ... +// // // ---- // The order of the returned list of storages isn't guaranteed. -// type HostStorageServiceListRequest struct { HostStorageService *HostStorageService header map[string]string @@ -40148,7 +38716,6 @@ func (p *HostStorageServiceListRequest) MustSend() *HostStorageServiceListRespon } } -// // Get list of storages. // [source] // ---- @@ -40158,14 +38725,15 @@ func (p *HostStorageServiceListRequest) MustSend() *HostStorageServiceListRespon // [source,xml] // ---- // -// -// ... -// -// ... +// +// +// ... +// +// ... +// // // ---- // The order of the returned list of storages isn't guaranteed. -// type HostStorageServiceListResponse struct { storages *HostStorageSlice } @@ -40184,7 +38752,6 @@ func (p *HostStorageServiceListResponse) MustStorages() *HostStorageSlice { return p.storages } -// // Get list of storages. // [source] // ---- @@ -40194,28 +38761,25 @@ func (p *HostStorageServiceListResponse) MustStorages() *HostStorageSlice { // [source,xml] // ---- // -// -// ... -// -// ... +// +// +// ... +// +// ... +// // // ---- // The order of the returned list of storages isn't guaranteed. -// func (p *HostStorageService) List() *HostStorageServiceListRequest { return &HostStorageServiceListRequest{HostStorageService: p} } -// // Reference to a service managing the storage. -// func (op *HostStorageService) StorageService(id string) *StorageService { return NewStorageService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *HostStorageService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -40231,9 +38795,7 @@ func (op *HostStorageService) String() string { return fmt.Sprintf("HostStorageService:%s", op.path) } -// // A service that manages hosts. -// type HostsService struct { BaseService } @@ -40245,7 +38807,6 @@ func NewHostsService(connection *Connection, path string) *HostsService { return &result } -// // Creates a new host. // The host is created based on the attributes of the `host` parameter. The `name`, `address`, and `root_password` // properties are required. @@ -40258,9 +38819,11 @@ func NewHostsService(connection *Connection, path string) *HostsService { // [source,xml] // ---- // -// myhost -//
myhost.example.com
-// myrootpassword +// +// myhost +//
myhost.example.com
+// myrootpassword +// //
// ---- // NOTE: The `root_password` element is only included in the client-provided initial representation and is not @@ -40286,17 +38849,18 @@ func NewHostsService(connection *Connection, path string) *HostsService { // [source,xml] // ---- // -// myhost -//
myhost.example.com
-// 123456 -// -// -// -// -// +// +// myhost +//
myhost.example.com
+// 123456 +// +// +// +// +// +// //
// ---- -// type HostsServiceAddRequest struct { HostsService *HostsService header map[string]string @@ -40448,7 +39012,6 @@ func (p *HostsServiceAddRequest) MustSend() *HostsServiceAddResponse { } } -// // Creates a new host. // The host is created based on the attributes of the `host` parameter. The `name`, `address`, and `root_password` // properties are required. @@ -40461,9 +39024,11 @@ func (p *HostsServiceAddRequest) MustSend() *HostsServiceAddResponse { // [source,xml] // ---- // -// myhost -//
myhost.example.com
-// myrootpassword +// +// myhost +//
myhost.example.com
+// myrootpassword +// //
// ---- // NOTE: The `root_password` element is only included in the client-provided initial representation and is not @@ -40489,17 +39054,18 @@ func (p *HostsServiceAddRequest) MustSend() *HostsServiceAddResponse { // [source,xml] // ---- // -// myhost -//
myhost.example.com
-// 123456 -// -// -// -// -// +// +// myhost +//
myhost.example.com
+// 123456 +// +// +// +// +// +// //
// ---- -// type HostsServiceAddResponse struct { host *Host } @@ -40518,7 +39084,6 @@ func (p *HostsServiceAddResponse) MustHost() *Host { return p.host } -// // Creates a new host. // The host is created based on the attributes of the `host` parameter. The `name`, `address`, and `root_password` // properties are required. @@ -40531,9 +39096,11 @@ func (p *HostsServiceAddResponse) MustHost() *Host { // [source,xml] // ---- // -// myhost -//
myhost.example.com
-// myrootpassword +// +// myhost +//
myhost.example.com
+// myrootpassword +// //
// ---- // NOTE: The `root_password` element is only included in the client-provided initial representation and is not @@ -40559,22 +39126,22 @@ func (p *HostsServiceAddResponse) MustHost() *Host { // [source,xml] // ---- // -// myhost -//
myhost.example.com
-// 123456 -// -// -// -// -// +// +// myhost +//
myhost.example.com
+// 123456 +// +// +// +// +// +// //
// ---- -// func (p *HostsService) Add() *HostsServiceAddRequest { return &HostsServiceAddRequest{HostsService: p} } -// // Get a list of all available hosts. // For example, to list the hosts send the following request: // .... @@ -40584,18 +39151,19 @@ func (p *HostsService) Add() *HostsServiceAddRequest { // [source,xml] // ---- // -// -// ... -// -// -// ... -// -// ... +// +// +// ... +// +// +// ... +// +// ... +// //
// ---- // The order of the returned list of hosts is guaranteed only if the `sortby` clause is included in // the `search` parameter. -// type HostsServiceListRequest struct { HostsService *HostsService header map[string]string @@ -40774,7 +39342,6 @@ func (p *HostsServiceListRequest) MustSend() *HostsServiceListResponse { } } -// // Get a list of all available hosts. // For example, to list the hosts send the following request: // .... @@ -40784,18 +39351,19 @@ func (p *HostsServiceListRequest) MustSend() *HostsServiceListResponse { // [source,xml] // ---- // -// -// ... -// -// -// ... -// -// ... +// +// +// ... +// +// +// ... +// +// ... +// //
// ---- // The order of the returned list of hosts is guaranteed only if the `sortby` clause is included in // the `search` parameter. -// type HostsServiceListResponse struct { hosts *HostSlice } @@ -40814,7 +39382,6 @@ func (p *HostsServiceListResponse) MustHosts() *HostSlice { return p.hosts } -// // Get a list of all available hosts. // For example, to list the hosts send the following request: // .... @@ -40824,25 +39391,24 @@ func (p *HostsServiceListResponse) MustHosts() *HostSlice { // [source,xml] // ---- // -// -// ... -// -// -// ... -// -// ... +// +// +// ... +// +// +// ... +// +// ... +// //
// ---- // The order of the returned list of hosts is guaranteed only if the `sortby` clause is included in // the `search` parameter. -// func (p *HostsService) List() *HostsServiceListRequest { return &HostsServiceListRequest{HostsService: p} } -// // Add a new host to the system providing the host root password. This has been deprecated and provided for backwards compatibility. -// type HostsServiceAddUsingRootPasswordRequest struct { HostsService *HostsService header map[string]string @@ -40990,9 +39556,7 @@ func (p *HostsServiceAddUsingRootPasswordRequest) MustSend() *HostsServiceAddUsi } } -// // Add a new host to the system providing the host root password. This has been deprecated and provided for backwards compatibility. -// type HostsServiceAddUsingRootPasswordResponse struct { host *Host } @@ -41011,16 +39575,12 @@ func (p *HostsServiceAddUsingRootPasswordResponse) MustHost() *Host { return p.host } -// // Add a new host to the system providing the host root password. This has been deprecated and provided for backwards compatibility. -// func (p *HostsService) AddUsingRootPassword() *HostsServiceAddUsingRootPasswordRequest { return &HostsServiceAddUsingRootPasswordRequest{HostsService: p} } -// // Add a new host to the system providing the ssh password, fingerprint or public key. -// type HostsServiceAddUsingSshRequest struct { HostsService *HostsService header map[string]string @@ -41168,9 +39728,7 @@ func (p *HostsServiceAddUsingSshRequest) MustSend() *HostsServiceAddUsingSshResp } } -// // Add a new host to the system providing the ssh password, fingerprint or public key. -// type HostsServiceAddUsingSshResponse struct { host *Host } @@ -41189,23 +39747,17 @@ func (p *HostsServiceAddUsingSshResponse) MustHost() *Host { return p.host } -// // Add a new host to the system providing the ssh password, fingerprint or public key. -// func (p *HostsService) AddUsingSsh() *HostsServiceAddUsingSshRequest { return &HostsServiceAddUsingSshRequest{HostsService: p} } -// // A Reference to service managing a specific host. -// func (op *HostsService) HostService(id string) *HostService { return NewHostService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *HostsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -41221,9 +39773,7 @@ func (op *HostsService) String() string { return fmt.Sprintf("HostsService:%s", op.path) } -// // A service to manage an icon (read-only). -// type IconService struct { BaseService } @@ -41235,7 +39785,6 @@ func NewIconService(connection *Connection, path string) *IconService { return &result } -// // Get an icon. // [source] // ---- @@ -41245,11 +39794,12 @@ func NewIconService(connection *Connection, path string) *IconService { // [source,xml] // ---- // -// Some binary data here -// image/png +// +// Some binary data here +// image/png +// // // ---- -// type IconServiceGetRequest struct { IconService *IconService header map[string]string @@ -41358,7 +39908,6 @@ func (p *IconServiceGetRequest) MustSend() *IconServiceGetResponse { } } -// // Get an icon. // [source] // ---- @@ -41368,11 +39917,12 @@ func (p *IconServiceGetRequest) MustSend() *IconServiceGetResponse { // [source,xml] // ---- // -// Some binary data here -// image/png +// +// Some binary data here +// image/png +// // // ---- -// type IconServiceGetResponse struct { icon *Icon } @@ -41391,7 +39941,6 @@ func (p *IconServiceGetResponse) MustIcon() *Icon { return p.icon } -// // Get an icon. // [source] // ---- @@ -41401,18 +39950,17 @@ func (p *IconServiceGetResponse) MustIcon() *Icon { // [source,xml] // ---- // -// Some binary data here -// image/png +// +// Some binary data here +// image/png +// // // ---- -// func (p *IconService) Get() *IconServiceGetRequest { return &IconServiceGetRequest{IconService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *IconService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -41424,9 +39972,7 @@ func (op *IconService) String() string { return fmt.Sprintf("IconService:%s", op.path) } -// // A service to manage icons. -// type IconsService struct { BaseService } @@ -41438,7 +39984,6 @@ func NewIconsService(connection *Connection, path string) *IconsService { return &result } -// // Get a list of icons. // [source] // ---- @@ -41448,15 +39993,16 @@ func NewIconsService(connection *Connection, path string) *IconsService { // [source,xml] // ---- // -// -// ... -// image/png -// -// ... +// +// +// ... +// image/png +// +// ... +// // // ---- // The order of the returned list of icons isn't guaranteed. -// type IconsServiceListRequest struct { IconsService *IconsService header map[string]string @@ -41575,7 +40121,6 @@ func (p *IconsServiceListRequest) MustSend() *IconsServiceListResponse { } } -// // Get a list of icons. // [source] // ---- @@ -41585,15 +40130,16 @@ func (p *IconsServiceListRequest) MustSend() *IconsServiceListResponse { // [source,xml] // ---- // -// -// ... -// image/png -// -// ... +// +// +// ... +// image/png +// +// ... +// // // ---- // The order of the returned list of icons isn't guaranteed. -// type IconsServiceListResponse struct { icons *IconSlice } @@ -41612,7 +40158,6 @@ func (p *IconsServiceListResponse) MustIcons() *IconSlice { return p.icons } -// // Get a list of icons. // [source] // ---- @@ -41622,29 +40167,26 @@ func (p *IconsServiceListResponse) MustIcons() *IconSlice { // [source,xml] // ---- // -// -// ... -// image/png -// -// ... +// +// +// ... +// image/png +// +// ... +// // // ---- // The order of the returned list of icons isn't guaranteed. -// func (p *IconsService) List() *IconsServiceListRequest { return &IconsServiceListRequest{IconsService: p} } -// // Reference to the service that manages an specific icon. -// func (op *IconsService) IconService(id string) *IconService { return NewIconService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *IconsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -41660,8 +40202,6 @@ func (op *IconsService) String() string { return fmt.Sprintf("IconsService:%s", op.path) } -// -// type ImageService struct { BaseService } @@ -41673,8 +40213,6 @@ func NewImageService(connection *Connection, path string) *ImageService { return &result } -// -// type ImageServiceGetRequest struct { ImageService *ImageService header map[string]string @@ -41783,8 +40321,6 @@ func (p *ImageServiceGetRequest) MustSend() *ImageServiceGetResponse { } } -// -// type ImageServiceGetResponse struct { image *Image } @@ -41803,13 +40339,10 @@ func (p *ImageServiceGetResponse) MustImage() *Image { return p.image } -// -// func (p *ImageService) Get() *ImageServiceGetRequest { return &ImageServiceGetRequest{ImageService: p} } -// // Imports an image. // If the `import_as_template` parameter is `true` then the image will be imported as a template, otherwise it will // be imported as a disk. @@ -41821,7 +40354,6 @@ func (p *ImageService) Get() *ImageServiceGetRequest { // `GlanceDisk-x` (where `x` will be the seven hexadecimal characters of the image identifier). // It is recommended to always explicitly specify the template or disk name, to avoid these automatic names // generated by the engine. -// type ImageServiceImportRequest struct { ImageService *ImageService header map[string]string @@ -41971,7 +40503,6 @@ func (p *ImageServiceImportRequest) MustSend() *ImageServiceImportResponse { } } -// // Imports an image. // If the `import_as_template` parameter is `true` then the image will be imported as a template, otherwise it will // be imported as a disk. @@ -41983,11 +40514,9 @@ func (p *ImageServiceImportRequest) MustSend() *ImageServiceImportResponse { // `GlanceDisk-x` (where `x` will be the seven hexadecimal characters of the image identifier). // It is recommended to always explicitly specify the template or disk name, to avoid these automatic names // generated by the engine. -// type ImageServiceImportResponse struct { } -// // Imports an image. // If the `import_as_template` parameter is `true` then the image will be imported as a template, otherwise it will // be imported as a disk. @@ -41999,14 +40528,11 @@ type ImageServiceImportResponse struct { // `GlanceDisk-x` (where `x` will be the seven hexadecimal characters of the image identifier). // It is recommended to always explicitly specify the template or disk name, to avoid these automatic names // generated by the engine. -// func (p *ImageService) Import() *ImageServiceImportRequest { return &ImageServiceImportRequest{ImageService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *ImageService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -42018,7 +40544,6 @@ func (op *ImageService) String() string { return fmt.Sprintf("ImageService:%s", op.path) } -// // This service provides a mechanism to control an image transfer. The client will have // to create a transfer by using <> // of the <> service, stating the image to transfer @@ -42030,11 +40555,13 @@ func (op *ImageService) String() string { // ---- // transfers_service = system_service.image_transfers_service() // transfer = transfers_service.add( -// types.ImageTransfer( -// disk=types.Disk( -// id='123' -// ) -// ) +// +// types.ImageTransfer( +// disk=types.Disk( +// id='123' +// ) +// ) +// // ) // ---- // Uploading a `disk` with id `123` on `host` id `456`: @@ -42042,14 +40569,16 @@ func (op *ImageService) String() string { // ---- // transfers_service = system_service.image_transfers_service() // transfer = transfers_service.add( -// types.ImageTransfer( -// disk=types.Disk( -// id='123' -// ), -// host=types.Host( -// id='456' -// ) -// ) +// +// types.ImageTransfer( +// disk=types.Disk( +// id='123' +// ), +// host=types.Host( +// id='456' +// ) +// ) +// // ) // ---- // If the user wishes to download a disk rather than upload, he/she should specify @@ -42060,12 +40589,14 @@ func (op *ImageService) String() string { // ---- // transfers_service = system_service.image_transfers_service() // transfer = transfers_service.add( -// types.ImageTransfer( -// disk=types.Disk( -// id='123' -// ), -// direction=types.ImageTransferDirection.DOWNLOAD -// ) +// +// types.ImageTransfer( +// disk=types.Disk( +// id='123' +// ), +// direction=types.ImageTransferDirection.DOWNLOAD +// ) +// // ) // ---- // Transfers have phases, which govern the flow of the upload/download. @@ -42081,8 +40612,10 @@ func (op *ImageService) String() string { // ---- // transfer_service = transfers_service.image_transfer_service(transfer.id) // while transfer.phase == types.ImageTransferPhase.INITIALIZING: -// time.sleep(3) -// transfer = transfer_service.get() +// +// time.sleep(3) +// transfer = transfer_service.get() +// // ---- // At that stage, if the transfer's phase is <>, then the session was // not successfully established. One possible reason for that is that the ovirt-imageio-daemon is not running @@ -42093,9 +40626,10 @@ func (op *ImageService) String() string { // contain the <> and <> attributes, // which the client needs to use in order to transfer the required data. The client can choose whatever // technique and tool for sending the HTTPS request with the image's data. -// - `transfer_url` is the address of an imageio server running on one of the hypervisors. -// - `proxy_url` is the address of an imageio proxy server that can be used if -// you cannot access transfer_url. +// - `transfer_url` is the address of an imageio server running on one of the hypervisors. +// - `proxy_url` is the address of an imageio proxy server that can be used if +// you cannot access transfer_url. +// // To transfer the image, it is recommended to use the imageio client python library. // [source,python] // ---- @@ -42107,7 +40641,9 @@ func (op *ImageService) String() string { // ---- // You can also upload and download using imageio REST API. For more info // on this, see imageio API documentation: -// http://ovirt.github.io/ovirt-imageio/images.html +// +// http://ovirt.github.io/ovirt-imageio/images.html +// // When finishing the transfer, the user should call // <>. This will make the // final adjustments and verifications for finishing the transfer process. @@ -42133,13 +40669,15 @@ func (op *ImageService) String() string { // [source,xml] // ---- // -// -// -// -// mydisk -// 1073741824 -// 1073741824 -// raw +// +// +// +// +// mydisk +// 1073741824 +// 1073741824 +// raw +// // // ---- // - Create a new image transfer for downloading/uploading a `disk` with id `456`: @@ -42151,27 +40689,32 @@ func (op *ImageService) String() string { // [source,xml] // ---- // -// -// upload|download +// +// +// upload|download +// // // ---- // Will respond: // [source,xml] // ---- // -// download|upload -// initializing|transferring -// https://proxy_fqdn:54323/images/41c732d4-2210-4e7b-9e5c-4e2805baadbb -// https://daemon_fqdn:54322/images/41c732d4-2210-4e7b-9e5c-4e2805baadbb -// ... +// +// download|upload +// initializing|transferring +// https://proxy_fqdn:54323/images/41c732d4-2210-4e7b-9e5c-4e2805baadbb +// https://daemon_fqdn:54322/images/41c732d4-2210-4e7b-9e5c-4e2805baadbb +// ... +// // // ---- // Note: If the phase is 'initializing', poll the `image_transfer` till its phase changes to 'transferring'. -// - Use the 'transfer_url' or 'proxy_url' to invoke a curl command: -// - use 'transfer_url' for transferring directly from/to ovirt-imageio-daemon, -// or, use 'proxy_url' for transferring from/to ovirt-imageio-proxy. -// Note: using the proxy would mitigate scenarios where there's no direct connectivity -// to the daemon machine, e.g. vdsm machines are on a different network than the engine. +// - Use the 'transfer_url' or 'proxy_url' to invoke a curl command: +// - use 'transfer_url' for transferring directly from/to ovirt-imageio-daemon, +// or, use 'proxy_url' for transferring from/to ovirt-imageio-proxy. +// Note: using the proxy would mitigate scenarios where there's no direct connectivity +// to the daemon machine, e.g. vdsm machines are on a different network than the engine. +// // -- Download: // [source,shell] // ---- @@ -42192,7 +40735,6 @@ func (op *ImageService) String() string { // ---- // // ---- -// type ImageTransferService struct { BaseService } @@ -42204,9 +40746,7 @@ func NewImageTransferService(connection *Connection, path string) *ImageTransfer return &result } -// // Cancel the image transfer session. This terminates the transfer operation and removes the partial image. -// type ImageTransferServiceCancelRequest struct { ImageTransferService *ImageTransferService header map[string]string @@ -42310,22 +40850,16 @@ func (p *ImageTransferServiceCancelRequest) MustSend() *ImageTransferServiceCanc } } -// // Cancel the image transfer session. This terminates the transfer operation and removes the partial image. -// type ImageTransferServiceCancelResponse struct { } -// // Cancel the image transfer session. This terminates the transfer operation and removes the partial image. -// func (p *ImageTransferService) Cancel() *ImageTransferServiceCancelRequest { return &ImageTransferServiceCancelRequest{ImageTransferService: p} } -// // Extend the image transfer session. -// type ImageTransferServiceExtendRequest struct { ImageTransferService *ImageTransferService header map[string]string @@ -42429,26 +40963,20 @@ func (p *ImageTransferServiceExtendRequest) MustSend() *ImageTransferServiceExte } } -// // Extend the image transfer session. -// type ImageTransferServiceExtendResponse struct { } -// // Extend the image transfer session. -// func (p *ImageTransferService) Extend() *ImageTransferServiceExtendRequest { return &ImageTransferServiceExtendRequest{ImageTransferService: p} } -// // After finishing to transfer the data, finalize the transfer. // This will make sure that the data being transferred is valid and fits the // image entity that was targeted in the transfer. Specifically, will verify that // if the image entity is a QCOW disk, the data uploaded is indeed a QCOW file, // and that the image doesn't have a backing file. -// type ImageTransferServiceFinalizeRequest struct { ImageTransferService *ImageTransferService header map[string]string @@ -42552,30 +41080,24 @@ func (p *ImageTransferServiceFinalizeRequest) MustSend() *ImageTransferServiceFi } } -// // After finishing to transfer the data, finalize the transfer. // This will make sure that the data being transferred is valid and fits the // image entity that was targeted in the transfer. Specifically, will verify that // if the image entity is a QCOW disk, the data uploaded is indeed a QCOW file, // and that the image doesn't have a backing file. -// type ImageTransferServiceFinalizeResponse struct { } -// // After finishing to transfer the data, finalize the transfer. // This will make sure that the data being transferred is valid and fits the // image entity that was targeted in the transfer. Specifically, will verify that // if the image entity is a QCOW disk, the data uploaded is indeed a QCOW file, // and that the image doesn't have a backing file. -// func (p *ImageTransferService) Finalize() *ImageTransferServiceFinalizeRequest { return &ImageTransferServiceFinalizeRequest{ImageTransferService: p} } -// // Get the image transfer entity. -// type ImageTransferServiceGetRequest struct { ImageTransferService *ImageTransferService header map[string]string @@ -42684,9 +41206,7 @@ func (p *ImageTransferServiceGetRequest) MustSend() *ImageTransferServiceGetResp } } -// // Get the image transfer entity. -// type ImageTransferServiceGetResponse struct { imageTransfer *ImageTransfer } @@ -42705,16 +41225,12 @@ func (p *ImageTransferServiceGetResponse) MustImageTransfer() *ImageTransfer { return p.imageTransfer } -// // Get the image transfer entity. -// func (p *ImageTransferService) Get() *ImageTransferServiceGetRequest { return &ImageTransferServiceGetRequest{ImageTransferService: p} } -// // Pause the image transfer session. -// type ImageTransferServicePauseRequest struct { ImageTransferService *ImageTransferService header map[string]string @@ -42818,20 +41334,15 @@ func (p *ImageTransferServicePauseRequest) MustSend() *ImageTransferServicePause } } -// // Pause the image transfer session. -// type ImageTransferServicePauseResponse struct { } -// // Pause the image transfer session. -// func (p *ImageTransferService) Pause() *ImageTransferServicePauseRequest { return &ImageTransferServicePauseRequest{ImageTransferService: p} } -// // Resume the image transfer session. The client will need to poll the transfer's phase until // it is different than `resuming`. For example: // [source,python] @@ -42840,10 +41351,11 @@ func (p *ImageTransferService) Pause() *ImageTransferServicePauseRequest { // transfer_service.resume() // transfer = transfer_service.get() // while transfer.phase == types.ImageTransferPhase.RESUMING: -// time.sleep(1) -// transfer = transfer_service.get() -// ---- // +// time.sleep(1) +// transfer = transfer_service.get() +// +// ---- type ImageTransferServiceResumeRequest struct { ImageTransferService *ImageTransferService header map[string]string @@ -42947,7 +41459,6 @@ func (p *ImageTransferServiceResumeRequest) MustSend() *ImageTransferServiceResu } } -// // Resume the image transfer session. The client will need to poll the transfer's phase until // it is different than `resuming`. For example: // [source,python] @@ -42956,14 +41467,14 @@ func (p *ImageTransferServiceResumeRequest) MustSend() *ImageTransferServiceResu // transfer_service.resume() // transfer = transfer_service.get() // while transfer.phase == types.ImageTransferPhase.RESUMING: -// time.sleep(1) -// transfer = transfer_service.get() -// ---- // +// time.sleep(1) +// transfer = transfer_service.get() +// +// ---- type ImageTransferServiceResumeResponse struct { } -// // Resume the image transfer session. The client will need to poll the transfer's phase until // it is different than `resuming`. For example: // [source,python] @@ -42972,17 +41483,16 @@ type ImageTransferServiceResumeResponse struct { // transfer_service.resume() // transfer = transfer_service.get() // while transfer.phase == types.ImageTransferPhase.RESUMING: -// time.sleep(1) -// transfer = transfer_service.get() -// ---- // +// time.sleep(1) +// transfer = transfer_service.get() +// +// ---- func (p *ImageTransferService) Resume() *ImageTransferServiceResumeRequest { return &ImageTransferServiceResumeRequest{ImageTransferService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *ImageTransferService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -42994,11 +41504,9 @@ func (op *ImageTransferService) String() string { return fmt.Sprintf("ImageTransferService:%s", op.path) } -// // This service manages image transfers, for performing Image I/O API in {product-name}. // Please refer to <> for further // documentation. -// type ImageTransfersService struct { BaseService } @@ -43010,7 +41518,6 @@ func NewImageTransfersService(connection *Connection, path string) *ImageTransfe return &result } -// // Add a new image transfer. An image, disk or disk snapshot needs to be specified // in order to make a new transfer. // IMPORTANT: The `image` attribute is deprecated since version 4.2 of the engine. @@ -43026,8 +41533,10 @@ func NewImageTransfersService(connection *Connection, path string) *ImageTransfe // [source,xml] // ---- // -// -// upload|download +// +// +// upload|download +// // // ---- // *Creating a new image transfer for downloading or uploading a `disk_snapshot`:* @@ -43041,11 +41550,12 @@ func NewImageTransfersService(connection *Connection, path string) *ImageTransfe // [source,xml] // ---- // -// -// download|upload +// +// +// download|upload +// // // ---- -// type ImageTransfersServiceAddRequest struct { ImageTransfersService *ImageTransfersService header map[string]string @@ -43157,7 +41667,6 @@ func (p *ImageTransfersServiceAddRequest) MustSend() *ImageTransfersServiceAddRe } } -// // Add a new image transfer. An image, disk or disk snapshot needs to be specified // in order to make a new transfer. // IMPORTANT: The `image` attribute is deprecated since version 4.2 of the engine. @@ -43173,8 +41682,10 @@ func (p *ImageTransfersServiceAddRequest) MustSend() *ImageTransfersServiceAddRe // [source,xml] // ---- // -// -// upload|download +// +// +// upload|download +// // // ---- // *Creating a new image transfer for downloading or uploading a `disk_snapshot`:* @@ -43188,11 +41699,12 @@ func (p *ImageTransfersServiceAddRequest) MustSend() *ImageTransfersServiceAddRe // [source,xml] // ---- // -// -// download|upload +// +// +// download|upload +// // // ---- -// type ImageTransfersServiceAddResponse struct { imageTransfer *ImageTransfer } @@ -43211,7 +41723,6 @@ func (p *ImageTransfersServiceAddResponse) MustImageTransfer() *ImageTransfer { return p.imageTransfer } -// // Add a new image transfer. An image, disk or disk snapshot needs to be specified // in order to make a new transfer. // IMPORTANT: The `image` attribute is deprecated since version 4.2 of the engine. @@ -43227,8 +41738,10 @@ func (p *ImageTransfersServiceAddResponse) MustImageTransfer() *ImageTransfer { // [source,xml] // ---- // -// -// upload|download +// +// +// upload|download +// // // ---- // *Creating a new image transfer for downloading or uploading a `disk_snapshot`:* @@ -43242,17 +41755,16 @@ func (p *ImageTransfersServiceAddResponse) MustImageTransfer() *ImageTransfer { // [source,xml] // ---- // -// -// download|upload +// +// +// download|upload +// // // ---- -// func (p *ImageTransfersService) Add() *ImageTransfersServiceAddRequest { return &ImageTransfersServiceAddRequest{ImageTransfersService: p} } -// -// type ImageTransfersServiceAddForDiskRequest struct { ImageTransfersService *ImageTransfersService header map[string]string @@ -43364,8 +41876,6 @@ func (p *ImageTransfersServiceAddForDiskRequest) MustSend() *ImageTransfersServi } } -// -// type ImageTransfersServiceAddForDiskResponse struct { imageTransfer *ImageTransfer } @@ -43384,14 +41894,10 @@ func (p *ImageTransfersServiceAddForDiskResponse) MustImageTransfer() *ImageTran return p.imageTransfer } -// -// func (p *ImageTransfersService) AddForDisk() *ImageTransfersServiceAddForDiskRequest { return &ImageTransfersServiceAddForDiskRequest{ImageTransfersService: p} } -// -// type ImageTransfersServiceAddForImageRequest struct { ImageTransfersService *ImageTransfersService header map[string]string @@ -43503,8 +42009,6 @@ func (p *ImageTransfersServiceAddForImageRequest) MustSend() *ImageTransfersServ } } -// -// type ImageTransfersServiceAddForImageResponse struct { imageTransfer *ImageTransfer } @@ -43523,14 +42027,10 @@ func (p *ImageTransfersServiceAddForImageResponse) MustImageTransfer() *ImageTra return p.imageTransfer } -// -// func (p *ImageTransfersService) AddForImage() *ImageTransfersServiceAddForImageRequest { return &ImageTransfersServiceAddForImageRequest{ImageTransfersService: p} } -// -// type ImageTransfersServiceAddForSnapshotRequest struct { ImageTransfersService *ImageTransfersService header map[string]string @@ -43642,8 +42142,6 @@ func (p *ImageTransfersServiceAddForSnapshotRequest) MustSend() *ImageTransfersS } } -// -// type ImageTransfersServiceAddForSnapshotResponse struct { imageTransfer *ImageTransfer } @@ -43662,17 +42160,13 @@ func (p *ImageTransfersServiceAddForSnapshotResponse) MustImageTransfer() *Image return p.imageTransfer } -// -// func (p *ImageTransfersService) AddForSnapshot() *ImageTransfersServiceAddForSnapshotRequest { return &ImageTransfersServiceAddForSnapshotRequest{ImageTransfersService: p} } -// // Retrieves the list of image transfers that are currently // being performed. // The order of the returned list of image transfers is not guaranteed. -// type ImageTransfersServiceListRequest struct { ImageTransfersService *ImageTransfersService header map[string]string @@ -43781,11 +42275,9 @@ func (p *ImageTransfersServiceListRequest) MustSend() *ImageTransfersServiceList } } -// // Retrieves the list of image transfers that are currently // being performed. // The order of the returned list of image transfers is not guaranteed. -// type ImageTransfersServiceListResponse struct { imageTransfer *ImageTransferSlice } @@ -43804,26 +42296,20 @@ func (p *ImageTransfersServiceListResponse) MustImageTransfer() *ImageTransferSl return p.imageTransfer } -// // Retrieves the list of image transfers that are currently // being performed. // The order of the returned list of image transfers is not guaranteed. -// func (p *ImageTransfersService) List() *ImageTransfersServiceListRequest { return &ImageTransfersServiceListRequest{ImageTransfersService: p} } -// // Returns a reference to the service that manages an // specific image transfer. -// func (op *ImageTransfersService) ImageTransferService(id string) *ImageTransferService { return NewImageTransferService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *ImageTransfersService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -43839,9 +42325,7 @@ func (op *ImageTransfersService) String() string { return fmt.Sprintf("ImageTransfersService:%s", op.path) } -// // Manages the set of images available in an storage domain or in an OpenStack image provider. -// type ImagesService struct { BaseService } @@ -43853,10 +42337,8 @@ func NewImagesService(connection *Connection, path string) *ImagesService { return &result } -// // Returns the list of images available in the storage domain or provider. // The order of the returned list of images isn't guaranteed. -// type ImagesServiceListRequest struct { ImagesService *ImagesService header map[string]string @@ -43975,10 +42457,8 @@ func (p *ImagesServiceListRequest) MustSend() *ImagesServiceListResponse { } } -// // Returns the list of images available in the storage domain or provider. // The order of the returned list of images isn't guaranteed. -// type ImagesServiceListResponse struct { images *ImageSlice } @@ -43997,23 +42477,17 @@ func (p *ImagesServiceListResponse) MustImages() *ImageSlice { return p.images } -// // Returns the list of images available in the storage domain or provider. // The order of the returned list of images isn't guaranteed. -// func (p *ImagesService) List() *ImagesServiceListRequest { return &ImagesServiceListRequest{ImagesService: p} } -// -// func (op *ImagesService) ImageService(id string) *ImageService { return NewImageService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *ImagesService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -44029,8 +42503,6 @@ func (op *ImagesService) String() string { return fmt.Sprintf("ImagesService:%s", op.path) } -// -// type InstanceTypeGraphicsConsoleService struct { BaseService } @@ -44042,9 +42514,7 @@ func NewInstanceTypeGraphicsConsoleService(connection *Connection, path string) return &result } -// // Gets graphics console configuration of the instance type. -// type InstanceTypeGraphicsConsoleServiceGetRequest struct { InstanceTypeGraphicsConsoleService *InstanceTypeGraphicsConsoleService header map[string]string @@ -44153,9 +42623,7 @@ func (p *InstanceTypeGraphicsConsoleServiceGetRequest) MustSend() *InstanceTypeG } } -// // Gets graphics console configuration of the instance type. -// type InstanceTypeGraphicsConsoleServiceGetResponse struct { console *GraphicsConsole } @@ -44174,16 +42642,12 @@ func (p *InstanceTypeGraphicsConsoleServiceGetResponse) MustConsole() *GraphicsC return p.console } -// // Gets graphics console configuration of the instance type. -// func (p *InstanceTypeGraphicsConsoleService) Get() *InstanceTypeGraphicsConsoleServiceGetRequest { return &InstanceTypeGraphicsConsoleServiceGetRequest{InstanceTypeGraphicsConsoleService: p} } -// // Remove the graphics console from the instance type. -// type InstanceTypeGraphicsConsoleServiceRemoveRequest struct { InstanceTypeGraphicsConsoleService *InstanceTypeGraphicsConsoleService header map[string]string @@ -44287,22 +42751,16 @@ func (p *InstanceTypeGraphicsConsoleServiceRemoveRequest) MustSend() *InstanceTy } } -// // Remove the graphics console from the instance type. -// type InstanceTypeGraphicsConsoleServiceRemoveResponse struct { } -// // Remove the graphics console from the instance type. -// func (p *InstanceTypeGraphicsConsoleService) Remove() *InstanceTypeGraphicsConsoleServiceRemoveRequest { return &InstanceTypeGraphicsConsoleServiceRemoveRequest{InstanceTypeGraphicsConsoleService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *InstanceTypeGraphicsConsoleService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -44314,8 +42772,6 @@ func (op *InstanceTypeGraphicsConsoleService) String() string { return fmt.Sprintf("InstanceTypeGraphicsConsoleService:%s", op.path) } -// -// type InstanceTypeGraphicsConsolesService struct { BaseService } @@ -44327,9 +42783,7 @@ func NewInstanceTypeGraphicsConsolesService(connection *Connection, path string) return &result } -// // Add new graphics console to the instance type. -// type InstanceTypeGraphicsConsolesServiceAddRequest struct { InstanceTypeGraphicsConsolesService *InstanceTypeGraphicsConsolesService header map[string]string @@ -44441,9 +42895,7 @@ func (p *InstanceTypeGraphicsConsolesServiceAddRequest) MustSend() *InstanceType } } -// // Add new graphics console to the instance type. -// type InstanceTypeGraphicsConsolesServiceAddResponse struct { console *GraphicsConsole } @@ -44462,17 +42914,13 @@ func (p *InstanceTypeGraphicsConsolesServiceAddResponse) MustConsole() *Graphics return p.console } -// // Add new graphics console to the instance type. -// func (p *InstanceTypeGraphicsConsolesService) Add() *InstanceTypeGraphicsConsolesServiceAddRequest { return &InstanceTypeGraphicsConsolesServiceAddRequest{InstanceTypeGraphicsConsolesService: p} } -// // Lists all the configured graphics consoles of the instance type. // The order of the returned list of graphics consoles isn't guaranteed. -// type InstanceTypeGraphicsConsolesServiceListRequest struct { InstanceTypeGraphicsConsolesService *InstanceTypeGraphicsConsolesService header map[string]string @@ -44591,10 +43039,8 @@ func (p *InstanceTypeGraphicsConsolesServiceListRequest) MustSend() *InstanceTyp } } -// // Lists all the configured graphics consoles of the instance type. // The order of the returned list of graphics consoles isn't guaranteed. -// type InstanceTypeGraphicsConsolesServiceListResponse struct { consoles *GraphicsConsoleSlice } @@ -44613,24 +43059,18 @@ func (p *InstanceTypeGraphicsConsolesServiceListResponse) MustConsoles() *Graphi return p.consoles } -// // Lists all the configured graphics consoles of the instance type. // The order of the returned list of graphics consoles isn't guaranteed. -// func (p *InstanceTypeGraphicsConsolesService) List() *InstanceTypeGraphicsConsolesServiceListRequest { return &InstanceTypeGraphicsConsolesServiceListRequest{InstanceTypeGraphicsConsolesService: p} } -// // Returns a reference to the service that manages a specific instance type graphics console. -// func (op *InstanceTypeGraphicsConsolesService) ConsoleService(id string) *InstanceTypeGraphicsConsoleService { return NewInstanceTypeGraphicsConsoleService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *InstanceTypeGraphicsConsolesService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -44646,8 +43086,6 @@ func (op *InstanceTypeGraphicsConsolesService) String() string { return fmt.Sprintf("InstanceTypeGraphicsConsolesService:%s", op.path) } -// -// type InstanceTypeNicService struct { BaseService } @@ -44659,9 +43097,7 @@ func NewInstanceTypeNicService(connection *Connection, path string) *InstanceTyp return &result } -// // Gets network interface configuration of the instance type. -// type InstanceTypeNicServiceGetRequest struct { InstanceTypeNicService *InstanceTypeNicService header map[string]string @@ -44770,9 +43206,7 @@ func (p *InstanceTypeNicServiceGetRequest) MustSend() *InstanceTypeNicServiceGet } } -// // Gets network interface configuration of the instance type. -// type InstanceTypeNicServiceGetResponse struct { nic *Nic } @@ -44791,16 +43225,12 @@ func (p *InstanceTypeNicServiceGetResponse) MustNic() *Nic { return p.nic } -// // Gets network interface configuration of the instance type. -// func (p *InstanceTypeNicService) Get() *InstanceTypeNicServiceGetRequest { return &InstanceTypeNicServiceGetRequest{InstanceTypeNicService: p} } -// // Remove the network interface from the instance type. -// type InstanceTypeNicServiceRemoveRequest struct { InstanceTypeNicService *InstanceTypeNicService header map[string]string @@ -44904,22 +43334,16 @@ func (p *InstanceTypeNicServiceRemoveRequest) MustSend() *InstanceTypeNicService } } -// // Remove the network interface from the instance type. -// type InstanceTypeNicServiceRemoveResponse struct { } -// // Remove the network interface from the instance type. -// func (p *InstanceTypeNicService) Remove() *InstanceTypeNicServiceRemoveRequest { return &InstanceTypeNicServiceRemoveRequest{InstanceTypeNicService: p} } -// // Updates the network interface configuration of the instance type. -// type InstanceTypeNicServiceUpdateRequest struct { InstanceTypeNicService *InstanceTypeNicService header map[string]string @@ -45041,9 +43465,7 @@ func (p *InstanceTypeNicServiceUpdateRequest) MustSend() *InstanceTypeNicService } } -// // Updates the network interface configuration of the instance type. -// type InstanceTypeNicServiceUpdateResponse struct { nic *Nic } @@ -45062,16 +43484,12 @@ func (p *InstanceTypeNicServiceUpdateResponse) MustNic() *Nic { return p.nic } -// // Updates the network interface configuration of the instance type. -// func (p *InstanceTypeNicService) Update() *InstanceTypeNicServiceUpdateRequest { return &InstanceTypeNicServiceUpdateRequest{InstanceTypeNicService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *InstanceTypeNicService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -45083,8 +43501,6 @@ func (op *InstanceTypeNicService) String() string { return fmt.Sprintf("InstanceTypeNicService:%s", op.path) } -// -// type InstanceTypeNicsService struct { BaseService } @@ -45096,9 +43512,7 @@ func NewInstanceTypeNicsService(connection *Connection, path string) *InstanceTy return &result } -// // Add new network interface to the instance type. -// type InstanceTypeNicsServiceAddRequest struct { InstanceTypeNicsService *InstanceTypeNicsService header map[string]string @@ -45210,9 +43624,7 @@ func (p *InstanceTypeNicsServiceAddRequest) MustSend() *InstanceTypeNicsServiceA } } -// // Add new network interface to the instance type. -// type InstanceTypeNicsServiceAddResponse struct { nic *Nic } @@ -45231,17 +43643,13 @@ func (p *InstanceTypeNicsServiceAddResponse) MustNic() *Nic { return p.nic } -// // Add new network interface to the instance type. -// func (p *InstanceTypeNicsService) Add() *InstanceTypeNicsServiceAddRequest { return &InstanceTypeNicsServiceAddRequest{InstanceTypeNicsService: p} } -// // Lists all the configured network interface of the instance type. // The order of the returned list of network interfaces isn't guaranteed. -// type InstanceTypeNicsServiceListRequest struct { InstanceTypeNicsService *InstanceTypeNicsService header map[string]string @@ -45370,10 +43778,8 @@ func (p *InstanceTypeNicsServiceListRequest) MustSend() *InstanceTypeNicsService } } -// // Lists all the configured network interface of the instance type. // The order of the returned list of network interfaces isn't guaranteed. -// type InstanceTypeNicsServiceListResponse struct { nics *NicSlice } @@ -45392,23 +43798,17 @@ func (p *InstanceTypeNicsServiceListResponse) MustNics() *NicSlice { return p.nics } -// // Lists all the configured network interface of the instance type. // The order of the returned list of network interfaces isn't guaranteed. -// func (p *InstanceTypeNicsService) List() *InstanceTypeNicsServiceListRequest { return &InstanceTypeNicsServiceListRequest{InstanceTypeNicsService: p} } -// -// func (op *InstanceTypeNicsService) NicService(id string) *InstanceTypeNicService { return NewInstanceTypeNicService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *InstanceTypeNicsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -45424,8 +43824,6 @@ func (op *InstanceTypeNicsService) String() string { return fmt.Sprintf("InstanceTypeNicsService:%s", op.path) } -// -// type InstanceTypeService struct { BaseService } @@ -45437,13 +43835,11 @@ func NewInstanceTypeService(connection *Connection, path string) *InstanceTypeSe return &result } -// // Get a specific instance type and it's attributes. // [source] // ---- // GET /ovirt-engine/api/instancetypes/123 // ---- -// type InstanceTypeServiceGetRequest struct { InstanceTypeService *InstanceTypeService header map[string]string @@ -45552,13 +43948,11 @@ func (p *InstanceTypeServiceGetRequest) MustSend() *InstanceTypeServiceGetRespon } } -// // Get a specific instance type and it's attributes. // [source] // ---- // GET /ovirt-engine/api/instancetypes/123 // ---- -// type InstanceTypeServiceGetResponse struct { instanceType *InstanceType } @@ -45577,18 +43971,15 @@ func (p *InstanceTypeServiceGetResponse) MustInstanceType() *InstanceType { return p.instanceType } -// // Get a specific instance type and it's attributes. // [source] // ---- // GET /ovirt-engine/api/instancetypes/123 // ---- -// func (p *InstanceTypeService) Get() *InstanceTypeServiceGetRequest { return &InstanceTypeServiceGetRequest{InstanceTypeService: p} } -// // Removes a specific instance type from the system. // If a virtual machine was created using an instance type X after removal of the instance type // the virtual machine's instance type will be set to `custom`. @@ -45596,7 +43987,6 @@ func (p *InstanceTypeService) Get() *InstanceTypeServiceGetRequest { // ---- // DELETE /ovirt-engine/api/instancetypes/123 // ---- -// type InstanceTypeServiceRemoveRequest struct { InstanceTypeService *InstanceTypeService header map[string]string @@ -45700,7 +44090,6 @@ func (p *InstanceTypeServiceRemoveRequest) MustSend() *InstanceTypeServiceRemove } } -// // Removes a specific instance type from the system. // If a virtual machine was created using an instance type X after removal of the instance type // the virtual machine's instance type will be set to `custom`. @@ -45708,11 +44097,9 @@ func (p *InstanceTypeServiceRemoveRequest) MustSend() *InstanceTypeServiceRemove // ---- // DELETE /ovirt-engine/api/instancetypes/123 // ---- -// type InstanceTypeServiceRemoveResponse struct { } -// // Removes a specific instance type from the system. // If a virtual machine was created using an instance type X after removal of the instance type // the virtual machine's instance type will be set to `custom`. @@ -45720,12 +44107,10 @@ type InstanceTypeServiceRemoveResponse struct { // ---- // DELETE /ovirt-engine/api/instancetypes/123 // ---- -// func (p *InstanceTypeService) Remove() *InstanceTypeServiceRemoveRequest { return &InstanceTypeServiceRemoveRequest{InstanceTypeService: p} } -// // Update a specific instance type and it's attributes. // All the attributes are editable after creation. // If a virtual machine was created using an instance type X and some configuration in instance @@ -45740,17 +44125,18 @@ func (p *InstanceTypeService) Remove() *InstanceTypeServiceRemoveRequest { // [source, xml] // ---- // -// 1073741824 -// -// -// 1 -// 2 -// 1 -// -// +// +// 1073741824 +// +// +// 1 +// 2 +// 1 +// +// +// // // ---- -// type InstanceTypeServiceUpdateRequest struct { InstanceTypeService *InstanceTypeService header map[string]string @@ -45872,7 +44258,6 @@ func (p *InstanceTypeServiceUpdateRequest) MustSend() *InstanceTypeServiceUpdate } } -// // Update a specific instance type and it's attributes. // All the attributes are editable after creation. // If a virtual machine was created using an instance type X and some configuration in instance @@ -45887,17 +44272,18 @@ func (p *InstanceTypeServiceUpdateRequest) MustSend() *InstanceTypeServiceUpdate // [source, xml] // ---- // -// 1073741824 -// -// -// 1 -// 2 -// 1 -// -// +// +// 1073741824 +// +// +// 1 +// 2 +// 1 +// +// +// // // ---- -// type InstanceTypeServiceUpdateResponse struct { instanceType *InstanceType } @@ -45916,7 +44302,6 @@ func (p *InstanceTypeServiceUpdateResponse) MustInstanceType() *InstanceType { return p.instanceType } -// // Update a specific instance type and it's attributes. // All the attributes are editable after creation. // If a virtual machine was created using an instance type X and some configuration in instance @@ -45931,46 +44316,39 @@ func (p *InstanceTypeServiceUpdateResponse) MustInstanceType() *InstanceType { // [source, xml] // ---- // -// 1073741824 -// -// -// 1 -// 2 -// 1 -// -// +// +// 1073741824 +// +// +// 1 +// 2 +// 1 +// +// +// // // ---- -// func (p *InstanceTypeService) Update() *InstanceTypeServiceUpdateRequest { return &InstanceTypeServiceUpdateRequest{InstanceTypeService: p} } -// // Reference to the service that manages the graphic consoles that are attached to this // instance type. -// func (op *InstanceTypeService) GraphicsConsolesService() *InstanceTypeGraphicsConsolesService { return NewInstanceTypeGraphicsConsolesService(op.connection, fmt.Sprintf("%s/graphicsconsoles", op.path)) } -// // Reference to the service that manages the NICs that are attached to this instance type. -// func (op *InstanceTypeService) NicsService() *InstanceTypeNicsService { return NewInstanceTypeNicsService(op.connection, fmt.Sprintf("%s/nics", op.path)) } -// // Reference to the service that manages the watchdogs that are attached to this instance type. -// func (op *InstanceTypeService) WatchdogsService() *InstanceTypeWatchdogsService { return NewInstanceTypeWatchdogsService(op.connection, fmt.Sprintf("%s/watchdogs", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *InstanceTypeService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -46000,8 +44378,6 @@ func (op *InstanceTypeService) String() string { return fmt.Sprintf("InstanceTypeService:%s", op.path) } -// -// type InstanceTypeWatchdogService struct { BaseService } @@ -46013,9 +44389,7 @@ func NewInstanceTypeWatchdogService(connection *Connection, path string) *Instan return &result } -// // Gets watchdog configuration of the instance type. -// type InstanceTypeWatchdogServiceGetRequest struct { InstanceTypeWatchdogService *InstanceTypeWatchdogService header map[string]string @@ -46124,9 +44498,7 @@ func (p *InstanceTypeWatchdogServiceGetRequest) MustSend() *InstanceTypeWatchdog } } -// // Gets watchdog configuration of the instance type. -// type InstanceTypeWatchdogServiceGetResponse struct { watchdog *Watchdog } @@ -46145,16 +44517,12 @@ func (p *InstanceTypeWatchdogServiceGetResponse) MustWatchdog() *Watchdog { return p.watchdog } -// // Gets watchdog configuration of the instance type. -// func (p *InstanceTypeWatchdogService) Get() *InstanceTypeWatchdogServiceGetRequest { return &InstanceTypeWatchdogServiceGetRequest{InstanceTypeWatchdogService: p} } -// // Remove a watchdog from the instance type. -// type InstanceTypeWatchdogServiceRemoveRequest struct { InstanceTypeWatchdogService *InstanceTypeWatchdogService header map[string]string @@ -46258,22 +44626,16 @@ func (p *InstanceTypeWatchdogServiceRemoveRequest) MustSend() *InstanceTypeWatch } } -// // Remove a watchdog from the instance type. -// type InstanceTypeWatchdogServiceRemoveResponse struct { } -// // Remove a watchdog from the instance type. -// func (p *InstanceTypeWatchdogService) Remove() *InstanceTypeWatchdogServiceRemoveRequest { return &InstanceTypeWatchdogServiceRemoveRequest{InstanceTypeWatchdogService: p} } -// // Updates the watchdog configuration of the instance type. -// type InstanceTypeWatchdogServiceUpdateRequest struct { InstanceTypeWatchdogService *InstanceTypeWatchdogService header map[string]string @@ -46395,9 +44757,7 @@ func (p *InstanceTypeWatchdogServiceUpdateRequest) MustSend() *InstanceTypeWatch } } -// // Updates the watchdog configuration of the instance type. -// type InstanceTypeWatchdogServiceUpdateResponse struct { watchdog *Watchdog } @@ -46416,16 +44776,12 @@ func (p *InstanceTypeWatchdogServiceUpdateResponse) MustWatchdog() *Watchdog { return p.watchdog } -// // Updates the watchdog configuration of the instance type. -// func (p *InstanceTypeWatchdogService) Update() *InstanceTypeWatchdogServiceUpdateRequest { return &InstanceTypeWatchdogServiceUpdateRequest{InstanceTypeWatchdogService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *InstanceTypeWatchdogService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -46437,8 +44793,6 @@ func (op *InstanceTypeWatchdogService) String() string { return fmt.Sprintf("InstanceTypeWatchdogService:%s", op.path) } -// -// type InstanceTypeWatchdogsService struct { BaseService } @@ -46450,9 +44804,7 @@ func NewInstanceTypeWatchdogsService(connection *Connection, path string) *Insta return &result } -// // Add new watchdog to the instance type. -// type InstanceTypeWatchdogsServiceAddRequest struct { InstanceTypeWatchdogsService *InstanceTypeWatchdogsService header map[string]string @@ -46564,9 +44916,7 @@ func (p *InstanceTypeWatchdogsServiceAddRequest) MustSend() *InstanceTypeWatchdo } } -// // Add new watchdog to the instance type. -// type InstanceTypeWatchdogsServiceAddResponse struct { watchdog *Watchdog } @@ -46585,17 +44935,13 @@ func (p *InstanceTypeWatchdogsServiceAddResponse) MustWatchdog() *Watchdog { return p.watchdog } -// // Add new watchdog to the instance type. -// func (p *InstanceTypeWatchdogsService) Add() *InstanceTypeWatchdogsServiceAddRequest { return &InstanceTypeWatchdogsServiceAddRequest{InstanceTypeWatchdogsService: p} } -// // Lists all the configured watchdogs of the instance type. // The order of the returned list of watchdogs isn't guaranteed. -// type InstanceTypeWatchdogsServiceListRequest struct { InstanceTypeWatchdogsService *InstanceTypeWatchdogsService header map[string]string @@ -46724,10 +45070,8 @@ func (p *InstanceTypeWatchdogsServiceListRequest) MustSend() *InstanceTypeWatchd } } -// // Lists all the configured watchdogs of the instance type. // The order of the returned list of watchdogs isn't guaranteed. -// type InstanceTypeWatchdogsServiceListResponse struct { watchdogs *WatchdogSlice } @@ -46746,23 +45090,17 @@ func (p *InstanceTypeWatchdogsServiceListResponse) MustWatchdogs() *WatchdogSlic return p.watchdogs } -// // Lists all the configured watchdogs of the instance type. // The order of the returned list of watchdogs isn't guaranteed. -// func (p *InstanceTypeWatchdogsService) List() *InstanceTypeWatchdogsServiceListRequest { return &InstanceTypeWatchdogsServiceListRequest{InstanceTypeWatchdogsService: p} } -// -// func (op *InstanceTypeWatchdogsService) WatchdogService(id string) *InstanceTypeWatchdogService { return NewInstanceTypeWatchdogService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *InstanceTypeWatchdogsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -46778,8 +45116,6 @@ func (op *InstanceTypeWatchdogsService) String() string { return fmt.Sprintf("InstanceTypeWatchdogsService:%s", op.path) } -// -// type InstanceTypesService struct { BaseService } @@ -46791,7 +45127,6 @@ func NewInstanceTypesService(connection *Connection, path string) *InstanceTypes return &result } -// // Creates a new instance type. // This requires only a name attribute and can include all hardware configurations of the // virtual machine. @@ -46803,75 +45138,78 @@ func NewInstanceTypesService(connection *Connection, path string) *InstanceTypes // [source,xml] // ---- // -// myinstancetype +// +// myinstancetype +// // // ---- // Creating an instance type with all hardware configurations with a request body like this: // [source,xml] // ---- // -// myinstancetype -// -// true -// -// -// -// 2 -// 2 -// 1 -// -// -// AMD Opteron_G2 -// q35 -// -// 1 -// true -// true -// spice -// -// -// true -// 1 -// -// -// 2 -// -// 4294967296 -// -// true -// 268435456 -// -// -// inherit -// inherit -// -// -// 2 -// -// -// -// hd -// -// -// -// -// -// 200 -// 2 -// -// urandom -// -// true -// -// true -// native -// -// -// true -// +// +// myinstancetype +// +// true +// +// +// +// 2 +// 2 +// 1 +// +// +// AMD Opteron_G2 +// q35 +// +// 1 +// true +// true +// spice +// +// +// true +// 1 +// +// +// 2 +// +// 4294967296 +// +// true +// 268435456 +// +// +// inherit +// inherit +// +// +// 2 +// +// +// +// hd +// +// +// +// +// +// 200 +// 2 +// +// urandom +// +// true +// +// true +// native +// +// +// true +// +// // // ---- -// type InstanceTypesServiceAddRequest struct { InstanceTypesService *InstanceTypesService header map[string]string @@ -46983,7 +45321,6 @@ func (p *InstanceTypesServiceAddRequest) MustSend() *InstanceTypesServiceAddResp } } -// // Creates a new instance type. // This requires only a name attribute and can include all hardware configurations of the // virtual machine. @@ -46995,75 +45332,78 @@ func (p *InstanceTypesServiceAddRequest) MustSend() *InstanceTypesServiceAddResp // [source,xml] // ---- // -// myinstancetype +// +// myinstancetype +// // // ---- // Creating an instance type with all hardware configurations with a request body like this: // [source,xml] // ---- // -// myinstancetype -// -// true -// -// -// -// 2 -// 2 -// 1 -// -// -// AMD Opteron_G2 -// q35 -// -// 1 -// true -// true -// spice -// -// -// true -// 1 -// -// -// 2 -// -// 4294967296 -// -// true -// 268435456 -// -// -// inherit -// inherit -// -// -// 2 -// -// -// -// hd -// -// -// -// -// -// 200 -// 2 -// -// urandom -// -// true -// -// true -// native -// -// -// true -// +// +// myinstancetype +// +// true +// +// +// +// 2 +// 2 +// 1 +// +// +// AMD Opteron_G2 +// q35 +// +// 1 +// true +// true +// spice +// +// +// true +// 1 +// +// +// 2 +// +// 4294967296 +// +// true +// 268435456 +// +// +// inherit +// inherit +// +// +// 2 +// +// +// +// hd +// +// +// +// +// +// 200 +// 2 +// +// urandom +// +// true +// +// true +// native +// +// +// true +// +// // // ---- -// type InstanceTypesServiceAddResponse struct { instanceType *InstanceType } @@ -47082,7 +45422,6 @@ func (p *InstanceTypesServiceAddResponse) MustInstanceType() *InstanceType { return p.instanceType } -// // Creates a new instance type. // This requires only a name attribute and can include all hardware configurations of the // virtual machine. @@ -47094,83 +45433,84 @@ func (p *InstanceTypesServiceAddResponse) MustInstanceType() *InstanceType { // [source,xml] // ---- // -// myinstancetype +// +// myinstancetype +// // // ---- // Creating an instance type with all hardware configurations with a request body like this: // [source,xml] // ---- // -// myinstancetype -// -// true -// -// -// -// 2 -// 2 -// 1 -// -// -// AMD Opteron_G2 -// q35 -// -// 1 -// true -// true -// spice -// -// -// true -// 1 -// -// -// 2 -// -// 4294967296 -// -// true -// 268435456 -// -// -// inherit -// inherit -// -// -// 2 -// -// -// -// hd -// -// -// -// -// -// 200 -// 2 -// -// urandom -// -// true -// -// true -// native -// -// -// true -// +// +// myinstancetype +// +// true +// +// +// +// 2 +// 2 +// 1 +// +// +// AMD Opteron_G2 +// q35 +// +// 1 +// true +// true +// spice +// +// +// true +// 1 +// +// +// 2 +// +// 4294967296 +// +// true +// 268435456 +// +// +// inherit +// inherit +// +// +// 2 +// +// +// +// hd +// +// +// +// +// +// 200 +// 2 +// +// urandom +// +// true +// +// true +// native +// +// +// true +// +// // // ---- -// func (p *InstanceTypesService) Add() *InstanceTypesServiceAddRequest { return &InstanceTypesServiceAddRequest{InstanceTypesService: p} } -// // Lists all existing instance types in the system. // The order of the returned list of instance types isn't guaranteed. -// type InstanceTypesServiceListRequest struct { InstanceTypesService *InstanceTypesService header map[string]string @@ -47309,10 +45649,8 @@ func (p *InstanceTypesServiceListRequest) MustSend() *InstanceTypesServiceListRe } } -// // Lists all existing instance types in the system. // The order of the returned list of instance types isn't guaranteed. -// type InstanceTypesServiceListResponse struct { instanceType *InstanceTypeSlice } @@ -47331,23 +45669,17 @@ func (p *InstanceTypesServiceListResponse) MustInstanceType() *InstanceTypeSlice return p.instanceType } -// // Lists all existing instance types in the system. // The order of the returned list of instance types isn't guaranteed. -// func (p *InstanceTypesService) List() *InstanceTypesServiceListRequest { return &InstanceTypesServiceListRequest{InstanceTypesService: p} } -// -// func (op *InstanceTypesService) InstanceTypeService(id string) *InstanceTypeService { return NewInstanceTypeService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *InstanceTypesService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -47363,8 +45695,6 @@ func (op *InstanceTypesService) String() string { return fmt.Sprintf("InstanceTypesService:%s", op.path) } -// -// type IscsiBondService struct { BaseService } @@ -47376,8 +45706,6 @@ func NewIscsiBondService(connection *Connection, path string) *IscsiBondService return &result } -// -// type IscsiBondServiceGetRequest struct { IscsiBondService *IscsiBondService header map[string]string @@ -47486,8 +45814,6 @@ func (p *IscsiBondServiceGetRequest) MustSend() *IscsiBondServiceGetResponse { } } -// -// type IscsiBondServiceGetResponse struct { bond *IscsiBond } @@ -47506,20 +45832,16 @@ func (p *IscsiBondServiceGetResponse) MustBond() *IscsiBond { return p.bond } -// -// func (p *IscsiBondService) Get() *IscsiBondServiceGetRequest { return &IscsiBondServiceGetRequest{IscsiBondService: p} } -// // Removes of an existing iSCSI bond. // For example, to remove the iSCSI bond `456` send a request like this: // [source] // ---- // DELETE /ovirt-engine/api/datacenters/123/iscsibonds/456 // ---- -// type IscsiBondServiceRemoveRequest struct { IscsiBondService *IscsiBondService header map[string]string @@ -47623,30 +45945,25 @@ func (p *IscsiBondServiceRemoveRequest) MustSend() *IscsiBondServiceRemoveRespon } } -// // Removes of an existing iSCSI bond. // For example, to remove the iSCSI bond `456` send a request like this: // [source] // ---- // DELETE /ovirt-engine/api/datacenters/123/iscsibonds/456 // ---- -// type IscsiBondServiceRemoveResponse struct { } -// // Removes of an existing iSCSI bond. // For example, to remove the iSCSI bond `456` send a request like this: // [source] // ---- // DELETE /ovirt-engine/api/datacenters/123/iscsibonds/456 // ---- -// func (p *IscsiBondService) Remove() *IscsiBondServiceRemoveRequest { return &IscsiBondServiceRemoveRequest{IscsiBondService: p} } -// // Updates an iSCSI bond. // Updating of an iSCSI bond can be done on the `name` and the `description` attributes only. For example, to // update the iSCSI bond `456` of data center `123`, send a request like this: @@ -47658,11 +45975,12 @@ func (p *IscsiBondService) Remove() *IscsiBondServiceRemoveRequest { // [source,xml] // ---- // -// mybond -// My iSCSI bond +// +// mybond +// My iSCSI bond +// // // ---- -// type IscsiBondServiceUpdateRequest struct { IscsiBondService *IscsiBondService header map[string]string @@ -47784,7 +46102,6 @@ func (p *IscsiBondServiceUpdateRequest) MustSend() *IscsiBondServiceUpdateRespon } } -// // Updates an iSCSI bond. // Updating of an iSCSI bond can be done on the `name` and the `description` attributes only. For example, to // update the iSCSI bond `456` of data center `123`, send a request like this: @@ -47796,11 +46113,12 @@ func (p *IscsiBondServiceUpdateRequest) MustSend() *IscsiBondServiceUpdateRespon // [source,xml] // ---- // -// mybond -// My iSCSI bond +// +// mybond +// My iSCSI bond +// // // ---- -// type IscsiBondServiceUpdateResponse struct { bond *IscsiBond } @@ -47819,7 +46137,6 @@ func (p *IscsiBondServiceUpdateResponse) MustBond() *IscsiBond { return p.bond } -// // Updates an iSCSI bond. // Updating of an iSCSI bond can be done on the `name` and the `description` attributes only. For example, to // update the iSCSI bond `456` of data center `123`, send a request like this: @@ -47831,30 +46148,25 @@ func (p *IscsiBondServiceUpdateResponse) MustBond() *IscsiBond { // [source,xml] // ---- // -// mybond -// My iSCSI bond +// +// mybond +// My iSCSI bond +// // // ---- -// func (p *IscsiBondService) Update() *IscsiBondServiceUpdateRequest { return &IscsiBondServiceUpdateRequest{IscsiBondService: p} } -// -// func (op *IscsiBondService) NetworksService() *NetworksService { return NewNetworksService(op.connection, fmt.Sprintf("%s/networks", op.path)) } -// -// func (op *IscsiBondService) StorageServerConnectionsService() *StorageServerConnectionsService { return NewStorageServerConnectionsService(op.connection, fmt.Sprintf("%s/storageserverconnections", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *IscsiBondService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -47878,8 +46190,6 @@ func (op *IscsiBondService) String() string { return fmt.Sprintf("IscsiBondService:%s", op.path) } -// -// type IscsiBondsService struct { BaseService } @@ -47891,7 +46201,6 @@ func NewIscsiBondsService(connection *Connection, path string) *IscsiBondsServic return &result } -// // Create a new iSCSI bond on a data center. // For example, to create a new iSCSI bond on data center `123` using storage connections `456` and `789`, send a // request like this: @@ -47903,17 +46212,18 @@ func NewIscsiBondsService(connection *Connection, path string) *IscsiBondsServic // [source,xml] // ---- // -// mybond -// -// -// -// -// -// -// +// +// mybond +// +// +// +// +// +// +// +// // // ---- -// type IscsiBondsServiceAddRequest struct { IscsiBondsService *IscsiBondsService header map[string]string @@ -48025,7 +46335,6 @@ func (p *IscsiBondsServiceAddRequest) MustSend() *IscsiBondsServiceAddResponse { } } -// // Create a new iSCSI bond on a data center. // For example, to create a new iSCSI bond on data center `123` using storage connections `456` and `789`, send a // request like this: @@ -48037,17 +46346,18 @@ func (p *IscsiBondsServiceAddRequest) MustSend() *IscsiBondsServiceAddResponse { // [source,xml] // ---- // -// mybond -// -// -// -// -// -// -// +// +// mybond +// +// +// +// +// +// +// +// // // ---- -// type IscsiBondsServiceAddResponse struct { bond *IscsiBond } @@ -48066,7 +46376,6 @@ func (p *IscsiBondsServiceAddResponse) MustBond() *IscsiBond { return p.bond } -// // Create a new iSCSI bond on a data center. // For example, to create a new iSCSI bond on data center `123` using storage connections `456` and `789`, send a // request like this: @@ -48078,25 +46387,24 @@ func (p *IscsiBondsServiceAddResponse) MustBond() *IscsiBond { // [source,xml] // ---- // -// mybond -// -// -// -// -// -// -// +// +// mybond +// +// +// +// +// +// +// +// // // ---- -// func (p *IscsiBondsService) Add() *IscsiBondsServiceAddRequest { return &IscsiBondsServiceAddRequest{IscsiBondsService: p} } -// // Returns the list of iSCSI bonds configured in the data center. // The order of the returned list of iSCSI bonds isn't guaranteed. -// type IscsiBondsServiceListRequest struct { IscsiBondsService *IscsiBondsService header map[string]string @@ -48215,10 +46523,8 @@ func (p *IscsiBondsServiceListRequest) MustSend() *IscsiBondsServiceListResponse } } -// // Returns the list of iSCSI bonds configured in the data center. // The order of the returned list of iSCSI bonds isn't guaranteed. -// type IscsiBondsServiceListResponse struct { bonds *IscsiBondSlice } @@ -48237,23 +46543,17 @@ func (p *IscsiBondsServiceListResponse) MustBonds() *IscsiBondSlice { return p.bonds } -// // Returns the list of iSCSI bonds configured in the data center. // The order of the returned list of iSCSI bonds isn't guaranteed. -// func (p *IscsiBondsService) List() *IscsiBondsServiceListRequest { return &IscsiBondsServiceListRequest{IscsiBondsService: p} } -// -// func (op *IscsiBondsService) IscsiBondService(id string) *IscsiBondService { return NewIscsiBondService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *IscsiBondsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -48269,9 +46569,7 @@ func (op *IscsiBondsService) String() string { return fmt.Sprintf("IscsiBondsService:%s", op.path) } -// // A service to manage a job. -// type JobService struct { BaseService } @@ -48283,7 +46581,6 @@ func NewJobService(connection *Connection, path string) *JobService { return &result } -// // Set an external job execution to be cleared by the system. // For example, to set a job with identifier `123` send the following request: // [source] @@ -48295,7 +46592,6 @@ func NewJobService(connection *Connection, path string) *JobService { // ---- // // ---- -// type JobServiceClearRequest struct { JobService *JobService header map[string]string @@ -48408,7 +46704,6 @@ func (p *JobServiceClearRequest) MustSend() *JobServiceClearResponse { } } -// // Set an external job execution to be cleared by the system. // For example, to set a job with identifier `123` send the following request: // [source] @@ -48420,11 +46715,9 @@ func (p *JobServiceClearRequest) MustSend() *JobServiceClearResponse { // ---- // // ---- -// type JobServiceClearResponse struct { } -// // Set an external job execution to be cleared by the system. // For example, to set a job with identifier `123` send the following request: // [source] @@ -48436,12 +46729,10 @@ type JobServiceClearResponse struct { // ---- // // ---- -// func (p *JobService) Clear() *JobServiceClearRequest { return &JobServiceClearRequest{JobService: p} } -// // Marks an external job execution as ended. // For example, to terminate a job with identifier `123` send the following request: // [source] @@ -48452,11 +46743,12 @@ func (p *JobService) Clear() *JobServiceClearRequest { // [source,xml] // ---- // -// true -// finished +// +// true +// finished +// // // ---- -// type JobServiceEndRequest struct { JobService *JobService header map[string]string @@ -48587,7 +46879,6 @@ func (p *JobServiceEndRequest) MustSend() *JobServiceEndResponse { } } -// // Marks an external job execution as ended. // For example, to terminate a job with identifier `123` send the following request: // [source] @@ -48598,15 +46889,15 @@ func (p *JobServiceEndRequest) MustSend() *JobServiceEndResponse { // [source,xml] // ---- // -// true -// finished +// +// true +// finished +// // // ---- -// type JobServiceEndResponse struct { } -// // Marks an external job execution as ended. // For example, to terminate a job with identifier `123` send the following request: // [source] @@ -48617,16 +46908,16 @@ type JobServiceEndResponse struct { // [source,xml] // ---- // -// true -// finished +// +// true +// finished +// // // ---- -// func (p *JobService) End() *JobServiceEndRequest { return &JobServiceEndRequest{JobService: p} } -// // Retrieves a job. // [source] // ---- @@ -48636,22 +46927,23 @@ func (p *JobService) End() *JobServiceEndRequest { // [source,xml] // ---- // -// -// -// -// -// Adding Disk -// -// true -// 2016-12-12T23:07:29.758+02:00 -// false -// 2016-12-12T23:07:29.758+02:00 -// 2016-12-12T23:07:26.593+02:00 -// failed -// +// +// +// +// +// +// Adding Disk +// +// true +// 2016-12-12T23:07:29.758+02:00 +// false +// 2016-12-12T23:07:29.758+02:00 +// 2016-12-12T23:07:26.593+02:00 +// failed +// +// // // ---- -// type JobServiceGetRequest struct { JobService *JobService header map[string]string @@ -48760,7 +47052,6 @@ func (p *JobServiceGetRequest) MustSend() *JobServiceGetResponse { } } -// // Retrieves a job. // [source] // ---- @@ -48770,22 +47061,23 @@ func (p *JobServiceGetRequest) MustSend() *JobServiceGetResponse { // [source,xml] // ---- // -// -// -// -// -// Adding Disk -// -// true -// 2016-12-12T23:07:29.758+02:00 -// false -// 2016-12-12T23:07:29.758+02:00 -// 2016-12-12T23:07:26.593+02:00 -// failed -// +// +// +// +// +// +// Adding Disk +// +// true +// 2016-12-12T23:07:29.758+02:00 +// false +// 2016-12-12T23:07:29.758+02:00 +// 2016-12-12T23:07:26.593+02:00 +// failed +// +// // // ---- -// type JobServiceGetResponse struct { job *Job } @@ -48804,7 +47096,6 @@ func (p *JobServiceGetResponse) MustJob() *Job { return p.job } -// // Retrieves a job. // [source] // ---- @@ -48814,37 +47105,34 @@ func (p *JobServiceGetResponse) MustJob() *Job { // [source,xml] // ---- // -// -// -// -// -// Adding Disk -// -// true -// 2016-12-12T23:07:29.758+02:00 -// false -// 2016-12-12T23:07:29.758+02:00 -// 2016-12-12T23:07:26.593+02:00 -// failed -// +// +// +// +// +// +// Adding Disk +// +// true +// 2016-12-12T23:07:29.758+02:00 +// false +// 2016-12-12T23:07:29.758+02:00 +// 2016-12-12T23:07:26.593+02:00 +// failed +// +// // // ---- -// func (p *JobService) Get() *JobServiceGetRequest { return &JobServiceGetRequest{JobService: p} } -// // List all the steps of the job. // The order of the returned list of steps isn't guaranteed. -// func (op *JobService) StepsService() *StepsService { return NewStepsService(op.connection, fmt.Sprintf("%s/steps", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *JobService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -48862,9 +47150,7 @@ func (op *JobService) String() string { return fmt.Sprintf("JobService:%s", op.path) } -// // A service to manage jobs. -// type JobsService struct { BaseService } @@ -48876,7 +47162,6 @@ func NewJobsService(connection *Connection, path string) *JobsService { return &result } -// // Add an external job. // For example, to add a job with the following request: // [source] @@ -48887,29 +47172,32 @@ func NewJobsService(connection *Connection, path string) *JobsService { // [source,xml] // ---- // -// Doing some work -// true +// +// Doing some work +// true +// // // ---- // The response should look like: // [source,xml] // ---- // -// -// -// -// -// Doing some work -// -// true -// true -// 2016-12-13T02:15:42.130+02:00 -// 2016-12-13T02:15:42.130+02:00 -// started -// +// +// +// +// +// +// Doing some work +// +// true +// true +// 2016-12-13T02:15:42.130+02:00 +// 2016-12-13T02:15:42.130+02:00 +// started +// +// // // ---- -// type JobsServiceAddRequest struct { JobsService *JobsService header map[string]string @@ -49021,7 +47309,6 @@ func (p *JobsServiceAddRequest) MustSend() *JobsServiceAddResponse { } } -// // Add an external job. // For example, to add a job with the following request: // [source] @@ -49032,29 +47319,32 @@ func (p *JobsServiceAddRequest) MustSend() *JobsServiceAddResponse { // [source,xml] // ---- // -// Doing some work -// true +// +// Doing some work +// true +// // // ---- // The response should look like: // [source,xml] // ---- // -// -// -// -// -// Doing some work -// -// true -// true -// 2016-12-13T02:15:42.130+02:00 -// 2016-12-13T02:15:42.130+02:00 -// started -// +// +// +// +// +// +// Doing some work +// +// true +// true +// 2016-12-13T02:15:42.130+02:00 +// 2016-12-13T02:15:42.130+02:00 +// started +// +// // // ---- -// type JobsServiceAddResponse struct { job *Job } @@ -49073,7 +47363,6 @@ func (p *JobsServiceAddResponse) MustJob() *Job { return p.job } -// // Add an external job. // For example, to add a job with the following request: // [source] @@ -49084,34 +47373,36 @@ func (p *JobsServiceAddResponse) MustJob() *Job { // [source,xml] // ---- // -// Doing some work -// true +// +// Doing some work +// true +// // // ---- // The response should look like: // [source,xml] // ---- // -// -// -// -// -// Doing some work -// -// true -// true -// 2016-12-13T02:15:42.130+02:00 -// 2016-12-13T02:15:42.130+02:00 -// started -// +// +// +// +// +// +// Doing some work +// +// true +// true +// 2016-12-13T02:15:42.130+02:00 +// 2016-12-13T02:15:42.130+02:00 +// started +// +// // // ---- -// func (p *JobsService) Add() *JobsServiceAddRequest { return &JobsServiceAddRequest{JobsService: p} } -// // Retrieves the representation of the jobs. // [source] // ---- @@ -49121,26 +47412,27 @@ func (p *JobsService) Add() *JobsServiceAddRequest { // [source,xml] // ---- // -// -// -// -// -// -// Adding Disk -// -// true -// 2016-12-12T23:07:29.758+02:00 -// false -// 2016-12-12T23:07:29.758+02:00 -// 2016-12-12T23:07:26.593+02:00 -// failed -// -// -// ... +// +// +// +// +// +// +// Adding Disk +// +// true +// 2016-12-12T23:07:29.758+02:00 +// false +// 2016-12-12T23:07:29.758+02:00 +// 2016-12-12T23:07:26.593+02:00 +// failed +// +// +// ... +// // // ---- // The order of the returned list of jobs isn't guaranteed. -// type JobsServiceListRequest struct { JobsService *JobsService header map[string]string @@ -49279,7 +47571,6 @@ func (p *JobsServiceListRequest) MustSend() *JobsServiceListResponse { } } -// // Retrieves the representation of the jobs. // [source] // ---- @@ -49289,26 +47580,27 @@ func (p *JobsServiceListRequest) MustSend() *JobsServiceListResponse { // [source,xml] // ---- // -// -// -// -// -// -// Adding Disk -// -// true -// 2016-12-12T23:07:29.758+02:00 -// false -// 2016-12-12T23:07:29.758+02:00 -// 2016-12-12T23:07:26.593+02:00 -// failed -// -// -// ... +// +// +// +// +// +// +// Adding Disk +// +// true +// 2016-12-12T23:07:29.758+02:00 +// false +// 2016-12-12T23:07:29.758+02:00 +// 2016-12-12T23:07:26.593+02:00 +// failed +// +// +// ... +// // // ---- // The order of the returned list of jobs isn't guaranteed. -// type JobsServiceListResponse struct { jobs *JobSlice } @@ -49327,7 +47619,6 @@ func (p *JobsServiceListResponse) MustJobs() *JobSlice { return p.jobs } -// // Retrieves the representation of the jobs. // [source] // ---- @@ -49337,40 +47628,37 @@ func (p *JobsServiceListResponse) MustJobs() *JobSlice { // [source,xml] // ---- // -// -// -// -// -// -// Adding Disk -// -// true -// 2016-12-12T23:07:29.758+02:00 -// false -// 2016-12-12T23:07:29.758+02:00 -// 2016-12-12T23:07:26.593+02:00 -// failed -// -// -// ... +// +// +// +// +// +// +// Adding Disk +// +// true +// 2016-12-12T23:07:29.758+02:00 +// false +// 2016-12-12T23:07:29.758+02:00 +// 2016-12-12T23:07:26.593+02:00 +// failed +// +// +// ... +// // // ---- // The order of the returned list of jobs isn't guaranteed. -// func (p *JobsService) List() *JobsServiceListRequest { return &JobsServiceListRequest{JobsService: p} } -// // Reference to the job service. -// func (op *JobsService) JobService(id string) *JobService { return NewJobService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *JobsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -49386,9 +47674,7 @@ func (op *JobsService) String() string { return fmt.Sprintf("JobsService:%s", op.path) } -// // A service to fetch information elements received by Link Layer Discovery Protocol (LLDP). -// type LinkLayerDiscoveryProtocolService struct { BaseService } @@ -49400,9 +47686,7 @@ func NewLinkLayerDiscoveryProtocolService(connection *Connection, path string) * return &result } -// // Fetches information elements received by LLDP. -// type LinkLayerDiscoveryProtocolServiceListRequest struct { LinkLayerDiscoveryProtocolService *LinkLayerDiscoveryProtocolService header map[string]string @@ -49511,9 +47795,7 @@ func (p *LinkLayerDiscoveryProtocolServiceListRequest) MustSend() *LinkLayerDisc } } -// // Fetches information elements received by LLDP. -// type LinkLayerDiscoveryProtocolServiceListResponse struct { elements *LinkLayerDiscoveryProtocolElementSlice } @@ -49532,16 +47814,12 @@ func (p *LinkLayerDiscoveryProtocolServiceListResponse) MustElements() *LinkLaye return p.elements } -// // Fetches information elements received by LLDP. -// func (p *LinkLayerDiscoveryProtocolService) List() *LinkLayerDiscoveryProtocolServiceListRequest { return &LinkLayerDiscoveryProtocolServiceListRequest{LinkLayerDiscoveryProtocolService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *LinkLayerDiscoveryProtocolService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -49553,8 +47831,6 @@ func (op *LinkLayerDiscoveryProtocolService) String() string { return fmt.Sprintf("LinkLayerDiscoveryProtocolService:%s", op.path) } -// -// type MacPoolService struct { BaseService } @@ -49566,8 +47842,6 @@ func NewMacPoolService(connection *Connection, path string) *MacPoolService { return &result } -// -// type MacPoolServiceGetRequest struct { MacPoolService *MacPoolService header map[string]string @@ -49676,8 +47950,6 @@ func (p *MacPoolServiceGetRequest) MustSend() *MacPoolServiceGetResponse { } } -// -// type MacPoolServiceGetResponse struct { pool *MacPool } @@ -49696,20 +47968,16 @@ func (p *MacPoolServiceGetResponse) MustPool() *MacPool { return p.pool } -// -// func (p *MacPoolService) Get() *MacPoolServiceGetRequest { return &MacPoolServiceGetRequest{MacPoolService: p} } -// // Removes a MAC address pool. // For example, to remove the MAC address pool having id `123` send a request like this: // [source] // ---- // DELETE /ovirt-engine/api/macpools/123 // ---- -// type MacPoolServiceRemoveRequest struct { MacPoolService *MacPoolService header map[string]string @@ -49813,30 +48081,25 @@ func (p *MacPoolServiceRemoveRequest) MustSend() *MacPoolServiceRemoveResponse { } } -// // Removes a MAC address pool. // For example, to remove the MAC address pool having id `123` send a request like this: // [source] // ---- // DELETE /ovirt-engine/api/macpools/123 // ---- -// type MacPoolServiceRemoveResponse struct { } -// // Removes a MAC address pool. // For example, to remove the MAC address pool having id `123` send a request like this: // [source] // ---- // DELETE /ovirt-engine/api/macpools/123 // ---- -// func (p *MacPoolService) Remove() *MacPoolServiceRemoveRequest { return &MacPoolServiceRemoveRequest{MacPoolService: p} } -// // Updates a MAC address pool. // The `name`, `description`, `allow_duplicates`, and `ranges` attributes can be updated. // For example, to update the MAC address pool of id `123` send a request like this: @@ -49848,22 +48111,23 @@ func (p *MacPoolService) Remove() *MacPoolServiceRemoveRequest { // [source,xml] // ---- // -// UpdatedMACPool -// An updated MAC address pool -// false -// -// -// 00:1A:4A:16:01:51 -// 00:1A:4A:16:01:e6 -// -// -// 02:1A:4A:01:00:00 -// 02:1A:4A:FF:FF:FF -// -// +// +// UpdatedMACPool +// An updated MAC address pool +// false +// +// +// 00:1A:4A:16:01:51 +// 00:1A:4A:16:01:e6 +// +// +// 02:1A:4A:01:00:00 +// 02:1A:4A:FF:FF:FF +// +// +// // // ---- -// type MacPoolServiceUpdateRequest struct { MacPoolService *MacPoolService header map[string]string @@ -49985,7 +48249,6 @@ func (p *MacPoolServiceUpdateRequest) MustSend() *MacPoolServiceUpdateResponse { } } -// // Updates a MAC address pool. // The `name`, `description`, `allow_duplicates`, and `ranges` attributes can be updated. // For example, to update the MAC address pool of id `123` send a request like this: @@ -49997,22 +48260,23 @@ func (p *MacPoolServiceUpdateRequest) MustSend() *MacPoolServiceUpdateResponse { // [source,xml] // ---- // -// UpdatedMACPool -// An updated MAC address pool -// false -// -// -// 00:1A:4A:16:01:51 -// 00:1A:4A:16:01:e6 -// -// -// 02:1A:4A:01:00:00 -// 02:1A:4A:FF:FF:FF -// -// +// +// UpdatedMACPool +// An updated MAC address pool +// false +// +// +// 00:1A:4A:16:01:51 +// 00:1A:4A:16:01:e6 +// +// +// 02:1A:4A:01:00:00 +// 02:1A:4A:FF:FF:FF +// +// +// // // ---- -// type MacPoolServiceUpdateResponse struct { pool *MacPool } @@ -50031,7 +48295,6 @@ func (p *MacPoolServiceUpdateResponse) MustPool() *MacPool { return p.pool } -// // Updates a MAC address pool. // The `name`, `description`, `allow_duplicates`, and `ranges` attributes can be updated. // For example, to update the MAC address pool of id `123` send a request like this: @@ -50043,36 +48306,33 @@ func (p *MacPoolServiceUpdateResponse) MustPool() *MacPool { // [source,xml] // ---- // -// UpdatedMACPool -// An updated MAC address pool -// false -// -// -// 00:1A:4A:16:01:51 -// 00:1A:4A:16:01:e6 -// -// -// 02:1A:4A:01:00:00 -// 02:1A:4A:FF:FF:FF -// -// +// +// UpdatedMACPool +// An updated MAC address pool +// false +// +// +// 00:1A:4A:16:01:51 +// 00:1A:4A:16:01:e6 +// +// +// 02:1A:4A:01:00:00 +// 02:1A:4A:FF:FF:FF +// +// +// // // ---- -// func (p *MacPoolService) Update() *MacPoolServiceUpdateRequest { return &MacPoolServiceUpdateRequest{MacPoolService: p} } -// // Returns a reference to the service that manages the permissions that are associated with the MacPool. -// func (op *MacPoolService) PermissionsService() *AssignedPermissionsService { return NewAssignedPermissionsService(op.connection, fmt.Sprintf("%s/permissions", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *MacPoolService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -50090,8 +48350,6 @@ func (op *MacPoolService) String() string { return fmt.Sprintf("MacPoolService:%s", op.path) } -// -// type MacPoolsService struct { BaseService } @@ -50103,7 +48361,6 @@ func NewMacPoolsService(connection *Connection, path string) *MacPoolsService { return &result } -// // Creates a new MAC address pool. // Creation of a MAC address pool requires values for the `name` and `ranges` attributes. // For example, to create MAC address pool send a request like this: @@ -50115,19 +48372,20 @@ func NewMacPoolsService(connection *Connection, path string) *MacPoolsService { // [source,xml] // ---- // -// MACPool -// A MAC address pool -// true -// false -// -// -// 00:1A:4A:16:01:51 -// 00:1A:4A:16:01:e6 -// -// +// +// MACPool +// A MAC address pool +// true +// false +// +// +// 00:1A:4A:16:01:51 +// 00:1A:4A:16:01:e6 +// +// +// // // ---- -// type MacPoolsServiceAddRequest struct { MacPoolsService *MacPoolsService header map[string]string @@ -50239,7 +48497,6 @@ func (p *MacPoolsServiceAddRequest) MustSend() *MacPoolsServiceAddResponse { } } -// // Creates a new MAC address pool. // Creation of a MAC address pool requires values for the `name` and `ranges` attributes. // For example, to create MAC address pool send a request like this: @@ -50251,19 +48508,20 @@ func (p *MacPoolsServiceAddRequest) MustSend() *MacPoolsServiceAddResponse { // [source,xml] // ---- // -// MACPool -// A MAC address pool -// true -// false -// -// -// 00:1A:4A:16:01:51 -// 00:1A:4A:16:01:e6 -// -// +// +// MACPool +// A MAC address pool +// true +// false +// +// +// 00:1A:4A:16:01:51 +// 00:1A:4A:16:01:e6 +// +// +// // // ---- -// type MacPoolsServiceAddResponse struct { pool *MacPool } @@ -50282,7 +48540,6 @@ func (p *MacPoolsServiceAddResponse) MustPool() *MacPool { return p.pool } -// // Creates a new MAC address pool. // Creation of a MAC address pool requires values for the `name` and `ranges` attributes. // For example, to create MAC address pool send a request like this: @@ -50294,27 +48551,26 @@ func (p *MacPoolsServiceAddResponse) MustPool() *MacPool { // [source,xml] // ---- // -// MACPool -// A MAC address pool -// true -// false -// -// -// 00:1A:4A:16:01:51 -// 00:1A:4A:16:01:e6 -// -// +// +// MACPool +// A MAC address pool +// true +// false +// +// +// 00:1A:4A:16:01:51 +// 00:1A:4A:16:01:e6 +// +// +// // // ---- -// func (p *MacPoolsService) Add() *MacPoolsServiceAddRequest { return &MacPoolsServiceAddRequest{MacPoolsService: p} } -// // Return the list of MAC address pools of the system. // The returned list of MAC address pools isn't guaranteed. -// type MacPoolsServiceListRequest struct { MacPoolsService *MacPoolsService header map[string]string @@ -50433,10 +48689,8 @@ func (p *MacPoolsServiceListRequest) MustSend() *MacPoolsServiceListResponse { } } -// // Return the list of MAC address pools of the system. // The returned list of MAC address pools isn't guaranteed. -// type MacPoolsServiceListResponse struct { pools *MacPoolSlice } @@ -50455,23 +48709,17 @@ func (p *MacPoolsServiceListResponse) MustPools() *MacPoolSlice { return p.pools } -// // Return the list of MAC address pools of the system. // The returned list of MAC address pools isn't guaranteed. -// func (p *MacPoolsService) List() *MacPoolsServiceListRequest { return &MacPoolsServiceListRequest{MacPoolsService: p} } -// -// func (op *MacPoolsService) MacPoolService(id string) *MacPoolService { return NewMacPoolService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *MacPoolsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -50487,8 +48735,6 @@ func (op *MacPoolsService) String() string { return fmt.Sprintf("MacPoolsService:%s", op.path) } -// -// type MeasurableService struct { BaseService } @@ -50500,15 +48746,11 @@ func NewMeasurableService(connection *Connection, path string) *MeasurableServic return &result } -// -// func (op *MeasurableService) StatisticsService() *StatisticsService { return NewStatisticsService(op.connection, fmt.Sprintf("%s/statistics", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *MeasurableService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -50526,8 +48768,6 @@ func (op *MeasurableService) String() string { return fmt.Sprintf("MeasurableService:%s", op.path) } -// -// type MoveableService struct { BaseService } @@ -50539,8 +48779,6 @@ func NewMoveableService(connection *Connection, path string) *MoveableService { return &result } -// -// type MoveableServiceMoveRequest struct { MoveableService *MoveableService header map[string]string @@ -50653,20 +48891,14 @@ func (p *MoveableServiceMoveRequest) MustSend() *MoveableServiceMoveResponse { } } -// -// type MoveableServiceMoveResponse struct { } -// -// func (p *MoveableService) Move() *MoveableServiceMoveRequest { return &MoveableServiceMoveRequest{MoveableService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *MoveableService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -50678,8 +48910,6 @@ func (op *MoveableService) String() string { return fmt.Sprintf("MoveableService:%s", op.path) } -// -// type NetworkAttachmentService struct { BaseService } @@ -50691,8 +48921,6 @@ func NewNetworkAttachmentService(connection *Connection, path string) *NetworkAt return &result } -// -// type NetworkAttachmentServiceGetRequest struct { NetworkAttachmentService *NetworkAttachmentService header map[string]string @@ -50801,8 +49029,6 @@ func (p *NetworkAttachmentServiceGetRequest) MustSend() *NetworkAttachmentServic } } -// -// type NetworkAttachmentServiceGetResponse struct { attachment *NetworkAttachment } @@ -50821,14 +49047,10 @@ func (p *NetworkAttachmentServiceGetResponse) MustAttachment() *NetworkAttachmen return p.attachment } -// -// func (p *NetworkAttachmentService) Get() *NetworkAttachmentServiceGetRequest { return &NetworkAttachmentServiceGetRequest{NetworkAttachmentService: p} } -// -// type NetworkAttachmentServiceRemoveRequest struct { NetworkAttachmentService *NetworkAttachmentService header map[string]string @@ -50932,20 +49154,14 @@ func (p *NetworkAttachmentServiceRemoveRequest) MustSend() *NetworkAttachmentSer } } -// -// type NetworkAttachmentServiceRemoveResponse struct { } -// -// func (p *NetworkAttachmentService) Remove() *NetworkAttachmentServiceRemoveRequest { return &NetworkAttachmentServiceRemoveRequest{NetworkAttachmentService: p} } -// // Update the specified network attachment on the host. -// type NetworkAttachmentServiceUpdateRequest struct { NetworkAttachmentService *NetworkAttachmentService header map[string]string @@ -51067,9 +49283,7 @@ func (p *NetworkAttachmentServiceUpdateRequest) MustSend() *NetworkAttachmentSer } } -// // Update the specified network attachment on the host. -// type NetworkAttachmentServiceUpdateResponse struct { attachment *NetworkAttachment } @@ -51088,16 +49302,12 @@ func (p *NetworkAttachmentServiceUpdateResponse) MustAttachment() *NetworkAttach return p.attachment } -// // Update the specified network attachment on the host. -// func (p *NetworkAttachmentService) Update() *NetworkAttachmentServiceUpdateRequest { return &NetworkAttachmentServiceUpdateRequest{NetworkAttachmentService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *NetworkAttachmentService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -51109,9 +49319,7 @@ func (op *NetworkAttachmentService) String() string { return fmt.Sprintf("NetworkAttachmentService:%s", op.path) } -// // Manages the set of network attachments of a host or host NIC. -// type NetworkAttachmentsService struct { BaseService } @@ -51123,9 +49331,7 @@ func NewNetworkAttachmentsService(connection *Connection, path string) *NetworkA return &result } -// // Add a new network attachment to the network interface. -// type NetworkAttachmentsServiceAddRequest struct { NetworkAttachmentsService *NetworkAttachmentsService header map[string]string @@ -51237,9 +49443,7 @@ func (p *NetworkAttachmentsServiceAddRequest) MustSend() *NetworkAttachmentsServ } } -// // Add a new network attachment to the network interface. -// type NetworkAttachmentsServiceAddResponse struct { attachment *NetworkAttachment } @@ -51258,17 +49462,13 @@ func (p *NetworkAttachmentsServiceAddResponse) MustAttachment() *NetworkAttachme return p.attachment } -// // Add a new network attachment to the network interface. -// func (p *NetworkAttachmentsService) Add() *NetworkAttachmentsServiceAddRequest { return &NetworkAttachmentsServiceAddRequest{NetworkAttachmentsService: p} } -// // Returns the list of network attachments of the host or host NIC. // The order of the returned list of network attachments isn't guaranteed. -// type NetworkAttachmentsServiceListRequest struct { NetworkAttachmentsService *NetworkAttachmentsService header map[string]string @@ -51387,10 +49587,8 @@ func (p *NetworkAttachmentsServiceListRequest) MustSend() *NetworkAttachmentsSer } } -// // Returns the list of network attachments of the host or host NIC. // The order of the returned list of network attachments isn't guaranteed. -// type NetworkAttachmentsServiceListResponse struct { attachments *NetworkAttachmentSlice } @@ -51409,23 +49607,17 @@ func (p *NetworkAttachmentsServiceListResponse) MustAttachments() *NetworkAttach return p.attachments } -// // Returns the list of network attachments of the host or host NIC. // The order of the returned list of network attachments isn't guaranteed. -// func (p *NetworkAttachmentsService) List() *NetworkAttachmentsServiceListRequest { return &NetworkAttachmentsServiceListRequest{NetworkAttachmentsService: p} } -// -// func (op *NetworkAttachmentsService) AttachmentService(id string) *NetworkAttachmentService { return NewNetworkAttachmentService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *NetworkAttachmentsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -51441,22 +49633,22 @@ func (op *NetworkAttachmentsService) String() string { return fmt.Sprintf("NetworkAttachmentsService:%s", op.path) } -// // Manages a network filter. // [source,xml] // ---- // -// example-network-filter-b -// -// 4 -// 0 -// -1 -// -1 -// +// +// example-network-filter-b +// +// 4 +// 0 +// -1 +// -1 +// +// // // ---- // Please note that version is referring to the minimal support version for the specific filter. -// type NetworkFilterService struct { BaseService } @@ -51468,9 +49660,7 @@ func NewNetworkFilterService(connection *Connection, path string) *NetworkFilter return &result } -// // Retrieves a representation of the network filter. -// type NetworkFilterServiceGetRequest struct { NetworkFilterService *NetworkFilterService header map[string]string @@ -51579,9 +49769,7 @@ func (p *NetworkFilterServiceGetRequest) MustSend() *NetworkFilterServiceGetResp } } -// // Retrieves a representation of the network filter. -// type NetworkFilterServiceGetResponse struct { networkFilter *NetworkFilter } @@ -51600,16 +49788,12 @@ func (p *NetworkFilterServiceGetResponse) MustNetworkFilter() *NetworkFilter { return p.networkFilter } -// // Retrieves a representation of the network filter. -// func (p *NetworkFilterService) Get() *NetworkFilterServiceGetRequest { return &NetworkFilterServiceGetRequest{NetworkFilterService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *NetworkFilterService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -51621,7 +49805,6 @@ func (op *NetworkFilterService) String() string { return fmt.Sprintf("NetworkFilterService:%s", op.path) } -// // Represents a readonly network filters sub-collection. // The network filter enables to filter packets send to/from the VM's nic according to defined rules. // For more information please refer to <> service documentation @@ -51644,36 +49827,37 @@ func (op *NetworkFilterService) String() string { // [source,xml] // ---- // -// -// example-network-filter-a -// -// 4 -// 0 -// -1 -// -1 -// -// -// -// example-network-filter-b -// -// 4 -// 0 -// -1 -// -1 -// -// -// -// example-network-filter-a -// -// 3 -// 0 -// -1 -// -1 -// -// +// +// +// example-network-filter-a +// +// 4 +// 0 +// -1 +// -1 +// +// +// +// example-network-filter-b +// +// 4 +// 0 +// -1 +// -1 +// +// +// +// example-network-filter-a +// +// 3 +// 0 +// -1 +// -1 +// +// +// // // ---- -// type NetworkFiltersService struct { BaseService } @@ -51685,10 +49869,8 @@ func NewNetworkFiltersService(connection *Connection, path string) *NetworkFilte return &result } -// // Retrieves the representations of the network filters. // The order of the returned list of network filters isn't guaranteed. -// type NetworkFiltersServiceListRequest struct { NetworkFiltersService *NetworkFiltersService header map[string]string @@ -51797,10 +49979,8 @@ func (p *NetworkFiltersServiceListRequest) MustSend() *NetworkFiltersServiceList } } -// // Retrieves the representations of the network filters. // The order of the returned list of network filters isn't guaranteed. -// type NetworkFiltersServiceListResponse struct { filters *NetworkFilterSlice } @@ -51819,23 +49999,17 @@ func (p *NetworkFiltersServiceListResponse) MustFilters() *NetworkFilterSlice { return p.filters } -// // Retrieves the representations of the network filters. // The order of the returned list of network filters isn't guaranteed. -// func (p *NetworkFiltersService) List() *NetworkFiltersServiceListRequest { return &NetworkFiltersServiceListRequest{NetworkFiltersService: p} } -// -// func (op *NetworkFiltersService) NetworkFilterService(id string) *NetworkFilterService { return NewNetworkFilterService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *NetworkFiltersService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -51851,8 +50025,6 @@ func (op *NetworkFiltersService) String() string { return fmt.Sprintf("NetworkFiltersService:%s", op.path) } -// -// type NetworkLabelService struct { BaseService } @@ -51864,8 +50036,6 @@ func NewNetworkLabelService(connection *Connection, path string) *NetworkLabelSe return &result } -// -// type NetworkLabelServiceGetRequest struct { NetworkLabelService *NetworkLabelService header map[string]string @@ -51974,8 +50144,6 @@ func (p *NetworkLabelServiceGetRequest) MustSend() *NetworkLabelServiceGetRespon } } -// -// type NetworkLabelServiceGetResponse struct { label *NetworkLabel } @@ -51994,20 +50162,16 @@ func (p *NetworkLabelServiceGetResponse) MustLabel() *NetworkLabel { return p.label } -// -// func (p *NetworkLabelService) Get() *NetworkLabelServiceGetRequest { return &NetworkLabelServiceGetRequest{NetworkLabelService: p} } -// // Removes a label from a logical network. // For example, to remove the label `exemplary` from a logical network having id `123` send the following request: // [source] // ---- // DELETE /ovirt-engine/api/networks/123/networklabels/exemplary // ---- -// type NetworkLabelServiceRemoveRequest struct { NetworkLabelService *NetworkLabelService header map[string]string @@ -52111,32 +50275,26 @@ func (p *NetworkLabelServiceRemoveRequest) MustSend() *NetworkLabelServiceRemove } } -// // Removes a label from a logical network. // For example, to remove the label `exemplary` from a logical network having id `123` send the following request: // [source] // ---- // DELETE /ovirt-engine/api/networks/123/networklabels/exemplary // ---- -// type NetworkLabelServiceRemoveResponse struct { } -// // Removes a label from a logical network. // For example, to remove the label `exemplary` from a logical network having id `123` send the following request: // [source] // ---- // DELETE /ovirt-engine/api/networks/123/networklabels/exemplary // ---- -// func (p *NetworkLabelService) Remove() *NetworkLabelServiceRemoveRequest { return &NetworkLabelServiceRemoveRequest{NetworkLabelService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *NetworkLabelService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -52148,9 +50306,7 @@ func (op *NetworkLabelService) String() string { return fmt.Sprintf("NetworkLabelService:%s", op.path) } -// // Manages the ser of labels attached to a network or to a host NIC. -// type NetworkLabelsService struct { BaseService } @@ -52162,7 +50318,6 @@ func NewNetworkLabelsService(connection *Connection, path string) *NetworkLabels return &result } -// // Attaches label to logical network. // You can attach labels to a logical network to automate the association of that logical network with physical host // network interfaces to which the same label has been attached. @@ -52176,7 +50331,6 @@ func NewNetworkLabelsService(connection *Connection, path string) *NetworkLabels // ---- // // ---- -// type NetworkLabelsServiceAddRequest struct { NetworkLabelsService *NetworkLabelsService header map[string]string @@ -52288,7 +50442,6 @@ func (p *NetworkLabelsServiceAddRequest) MustSend() *NetworkLabelsServiceAddResp } } -// // Attaches label to logical network. // You can attach labels to a logical network to automate the association of that logical network with physical host // network interfaces to which the same label has been attached. @@ -52302,7 +50455,6 @@ func (p *NetworkLabelsServiceAddRequest) MustSend() *NetworkLabelsServiceAddResp // ---- // // ---- -// type NetworkLabelsServiceAddResponse struct { label *NetworkLabel } @@ -52321,7 +50473,6 @@ func (p *NetworkLabelsServiceAddResponse) MustLabel() *NetworkLabel { return p.label } -// // Attaches label to logical network. // You can attach labels to a logical network to automate the association of that logical network with physical host // network interfaces to which the same label has been attached. @@ -52335,15 +50486,12 @@ func (p *NetworkLabelsServiceAddResponse) MustLabel() *NetworkLabel { // ---- // // ---- -// func (p *NetworkLabelsService) Add() *NetworkLabelsServiceAddRequest { return &NetworkLabelsServiceAddRequest{NetworkLabelsService: p} } -// // Returns the list of labels attached to the network or host NIC. // The order of the returned list of labels isn't guaranteed. -// type NetworkLabelsServiceListRequest struct { NetworkLabelsService *NetworkLabelsService header map[string]string @@ -52462,10 +50610,8 @@ func (p *NetworkLabelsServiceListRequest) MustSend() *NetworkLabelsServiceListRe } } -// // Returns the list of labels attached to the network or host NIC. // The order of the returned list of labels isn't guaranteed. -// type NetworkLabelsServiceListResponse struct { labels *NetworkLabelSlice } @@ -52484,23 +50630,17 @@ func (p *NetworkLabelsServiceListResponse) MustLabels() *NetworkLabelSlice { return p.labels } -// // Returns the list of labels attached to the network or host NIC. // The order of the returned list of labels isn't guaranteed. -// func (p *NetworkLabelsService) List() *NetworkLabelsServiceListRequest { return &NetworkLabelsServiceListRequest{NetworkLabelsService: p} } -// -// func (op *NetworkLabelsService) LabelService(id string) *NetworkLabelService { return NewNetworkLabelService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *NetworkLabelsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -52516,9 +50656,7 @@ func (op *NetworkLabelsService) String() string { return fmt.Sprintf("NetworkLabelsService:%s", op.path) } -// // A service managing a network -// type NetworkService struct { BaseService } @@ -52530,7 +50668,6 @@ func NewNetworkService(connection *Connection, path string) *NetworkService { return &result } -// // Gets a logical network. // For example: // [source] @@ -52541,20 +50678,21 @@ func NewNetworkService(connection *Connection, path string) *NetworkService { // [source,xml] // ---- // -// ovirtmgmt -// Default Management Network -// -// -// -// 0 -// false -// -// vm -// -// +// +// ovirtmgmt +// Default Management Network +// +// +// +// 0 +// false +// +// vm +// +// +// // // ---- -// type NetworkServiceGetRequest struct { NetworkService *NetworkService header map[string]string @@ -52663,7 +50801,6 @@ func (p *NetworkServiceGetRequest) MustSend() *NetworkServiceGetResponse { } } -// // Gets a logical network. // For example: // [source] @@ -52674,20 +50811,21 @@ func (p *NetworkServiceGetRequest) MustSend() *NetworkServiceGetResponse { // [source,xml] // ---- // -// ovirtmgmt -// Default Management Network -// -// -// -// 0 -// false -// -// vm -// -// +// +// ovirtmgmt +// Default Management Network +// +// +// +// 0 +// false +// +// vm +// +// +// // // ---- -// type NetworkServiceGetResponse struct { network *Network } @@ -52706,7 +50844,6 @@ func (p *NetworkServiceGetResponse) MustNetwork() *Network { return p.network } -// // Gets a logical network. // For example: // [source] @@ -52717,25 +50854,25 @@ func (p *NetworkServiceGetResponse) MustNetwork() *Network { // [source,xml] // ---- // -// ovirtmgmt -// Default Management Network -// -// -// -// 0 -// false -// -// vm -// -// +// +// ovirtmgmt +// Default Management Network +// +// +// +// 0 +// false +// +// vm +// +// +// // // ---- -// func (p *NetworkService) Get() *NetworkServiceGetRequest { return &NetworkServiceGetRequest{NetworkService: p} } -// // Removes a logical network, or the association of a logical network to a data center. // For example, to remove the logical network `123` send a request like this: // [source] @@ -52755,7 +50892,6 @@ func (p *NetworkService) Get() *NetworkServiceGetRequest { // The entity representing the external network inside {product-name} is removed automatically, // if <> is enabled for the provider, // otherwise the entity has to be removed using this method. -// type NetworkServiceRemoveRequest struct { NetworkService *NetworkService header map[string]string @@ -52859,7 +50995,6 @@ func (p *NetworkServiceRemoveRequest) MustSend() *NetworkServiceRemoveResponse { } } -// // Removes a logical network, or the association of a logical network to a data center. // For example, to remove the logical network `123` send a request like this: // [source] @@ -52879,11 +51014,9 @@ func (p *NetworkServiceRemoveRequest) MustSend() *NetworkServiceRemoveResponse { // The entity representing the external network inside {product-name} is removed automatically, // if <> is enabled for the provider, // otherwise the entity has to be removed using this method. -// type NetworkServiceRemoveResponse struct { } -// // Removes a logical network, or the association of a logical network to a data center. // For example, to remove the logical network `123` send a request like this: // [source] @@ -52903,12 +51036,10 @@ type NetworkServiceRemoveResponse struct { // The entity representing the external network inside {product-name} is removed automatically, // if <> is enabled for the provider, // otherwise the entity has to be removed using this method. -// func (p *NetworkService) Remove() *NetworkServiceRemoveRequest { return &NetworkServiceRemoveRequest{NetworkService: p} } -// // Updates a logical network. // The `name`, `description`, `ip`, `vlan`, `stp` and `display` attributes can be updated. // For example, to update the description of the logical network `123` send a request like this: @@ -52920,7 +51051,9 @@ func (p *NetworkService) Remove() *NetworkServiceRemoveRequest { // [source,xml] // ---- // -// My updated description +// +// My updated description +// // // ---- // The maximum transmission unit of a network is set using a PUT request to @@ -52934,11 +51067,12 @@ func (p *NetworkService) Remove() *NetworkServiceRemoveRequest { // [source,xml] // ---- // -// 1500 +// +// 1500 +// // // ---- // NOTE: Updating external networks is not propagated to the provider. -// type NetworkServiceUpdateRequest struct { NetworkService *NetworkService header map[string]string @@ -53060,7 +51194,6 @@ func (p *NetworkServiceUpdateRequest) MustSend() *NetworkServiceUpdateResponse { } } -// // Updates a logical network. // The `name`, `description`, `ip`, `vlan`, `stp` and `display` attributes can be updated. // For example, to update the description of the logical network `123` send a request like this: @@ -53072,7 +51205,9 @@ func (p *NetworkServiceUpdateRequest) MustSend() *NetworkServiceUpdateResponse { // [source,xml] // ---- // -// My updated description +// +// My updated description +// // // ---- // The maximum transmission unit of a network is set using a PUT request to @@ -53086,11 +51221,12 @@ func (p *NetworkServiceUpdateRequest) MustSend() *NetworkServiceUpdateResponse { // [source,xml] // ---- // -// 1500 +// +// 1500 +// // // ---- // NOTE: Updating external networks is not propagated to the provider. -// type NetworkServiceUpdateResponse struct { network *Network } @@ -53109,7 +51245,6 @@ func (p *NetworkServiceUpdateResponse) MustNetwork() *Network { return p.network } -// // Updates a logical network. // The `name`, `description`, `ip`, `vlan`, `stp` and `display` attributes can be updated. // For example, to update the description of the logical network `123` send a request like this: @@ -53121,7 +51256,9 @@ func (p *NetworkServiceUpdateResponse) MustNetwork() *Network { // [source,xml] // ---- // -// My updated description +// +// My updated description +// // // ---- // The maximum transmission unit of a network is set using a PUT request to @@ -53135,39 +51272,32 @@ func (p *NetworkServiceUpdateResponse) MustNetwork() *Network { // [source,xml] // ---- // -// 1500 +// +// 1500 +// // // ---- // NOTE: Updating external networks is not propagated to the provider. -// func (p *NetworkService) Update() *NetworkServiceUpdateRequest { return &NetworkServiceUpdateRequest{NetworkService: p} } -// // Reference to the service that manages the network labels assigned to this network. -// func (op *NetworkService) NetworkLabelsService() *NetworkLabelsService { return NewNetworkLabelsService(op.connection, fmt.Sprintf("%s/networklabels", op.path)) } -// // Reference to the service that manages the permissions assigned to this network. -// func (op *NetworkService) PermissionsService() *AssignedPermissionsService { return NewAssignedPermissionsService(op.connection, fmt.Sprintf("%s/permissions", op.path)) } -// // Reference to the service that manages the vNIC profiles assigned to this network. -// func (op *NetworkService) VnicProfilesService() *AssignedVnicProfilesService { return NewAssignedVnicProfilesService(op.connection, fmt.Sprintf("%s/vnicprofiles", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *NetworkService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -53197,12 +51327,10 @@ func (op *NetworkService) String() string { return fmt.Sprintf("NetworkService:%s", op.path) } -// // Manages logical networks. // The engine creates a default `ovirtmgmt` network on installation. This network acts as the management network for // access to hypervisor hosts. This network is associated with the `Default` cluster and is a member of the `Default` // data center. -// type NetworksService struct { BaseService } @@ -53214,7 +51342,6 @@ func NewNetworksService(connection *Connection, path string) *NetworksService { return &result } -// // Creates a new logical network, or associates an existing network with a data center. // Creation of a new network requires the `name` and `data_center` elements. // For example, to create a network named `mynetwork` for data center `123` send a request like this: @@ -53226,8 +51353,10 @@ func NewNetworksService(connection *Connection, path string) *NetworksService { // [source,xml] // ---- // -// mynetwork -// +// +// mynetwork +// +// // // ---- // To associate the existing network `456` with the data center `123` send a request like this: @@ -53239,7 +51368,9 @@ func NewNetworksService(connection *Connection, path string) *NetworksService { // [source,xml] // ---- // -// ovirtmgmt +// +// ovirtmgmt +// // // ---- // To create a network named `exnetwork` on top of an external _OpenStack_ network provider `456` send a request @@ -53251,12 +51382,13 @@ func NewNetworksService(connection *Connection, path string) *NetworksService { // [source,xml] // ---- // -// exnetwork -// -// +// +// exnetwork +// +// +// // // ---- -// type NetworksServiceAddRequest struct { NetworksService *NetworksService header map[string]string @@ -53368,7 +51500,6 @@ func (p *NetworksServiceAddRequest) MustSend() *NetworksServiceAddResponse { } } -// // Creates a new logical network, or associates an existing network with a data center. // Creation of a new network requires the `name` and `data_center` elements. // For example, to create a network named `mynetwork` for data center `123` send a request like this: @@ -53380,8 +51511,10 @@ func (p *NetworksServiceAddRequest) MustSend() *NetworksServiceAddResponse { // [source,xml] // ---- // -// mynetwork -// +// +// mynetwork +// +// // // ---- // To associate the existing network `456` with the data center `123` send a request like this: @@ -53393,7 +51526,9 @@ func (p *NetworksServiceAddRequest) MustSend() *NetworksServiceAddResponse { // [source,xml] // ---- // -// ovirtmgmt +// +// ovirtmgmt +// // // ---- // To create a network named `exnetwork` on top of an external _OpenStack_ network provider `456` send a request @@ -53405,12 +51540,13 @@ func (p *NetworksServiceAddRequest) MustSend() *NetworksServiceAddResponse { // [source,xml] // ---- // -// exnetwork -// -// +// +// exnetwork +// +// +// // // ---- -// type NetworksServiceAddResponse struct { network *Network } @@ -53429,7 +51565,6 @@ func (p *NetworksServiceAddResponse) MustNetwork() *Network { return p.network } -// // Creates a new logical network, or associates an existing network with a data center. // Creation of a new network requires the `name` and `data_center` elements. // For example, to create a network named `mynetwork` for data center `123` send a request like this: @@ -53441,8 +51576,10 @@ func (p *NetworksServiceAddResponse) MustNetwork() *Network { // [source,xml] // ---- // -// mynetwork -// +// +// mynetwork +// +// // // ---- // To associate the existing network `456` with the data center `123` send a request like this: @@ -53454,7 +51591,9 @@ func (p *NetworksServiceAddResponse) MustNetwork() *Network { // [source,xml] // ---- // -// ovirtmgmt +// +// ovirtmgmt +// // // ---- // To create a network named `exnetwork` on top of an external _OpenStack_ network provider `456` send a request @@ -53466,17 +51605,17 @@ func (p *NetworksServiceAddResponse) MustNetwork() *Network { // [source,xml] // ---- // -// exnetwork -// -// +// +// exnetwork +// +// +// // // ---- -// func (p *NetworksService) Add() *NetworksServiceAddRequest { return &NetworksServiceAddRequest{NetworksService: p} } -// // List logical networks. // For example: // [source] @@ -53487,25 +51626,26 @@ func (p *NetworksService) Add() *NetworksServiceAddRequest { // [source,xml] // ---- // -// -// ovirtmgmt -// Default Management Network -// -// -// -// 0 -// false -// -// vm -// -// -// -// ... +// +// +// ovirtmgmt +// Default Management Network +// +// +// +// 0 +// false +// +// vm +// +// +// +// ... +// // // ---- // The order of the returned list of networks is guaranteed only if the `sortby` clause is included in the // `search` parameter. -// type NetworksServiceListRequest struct { NetworksService *NetworksService header map[string]string @@ -53644,7 +51784,6 @@ func (p *NetworksServiceListRequest) MustSend() *NetworksServiceListResponse { } } -// // List logical networks. // For example: // [source] @@ -53655,25 +51794,26 @@ func (p *NetworksServiceListRequest) MustSend() *NetworksServiceListResponse { // [source,xml] // ---- // -// -// ovirtmgmt -// Default Management Network -// -// -// -// 0 -// false -// -// vm -// -// -// -// ... +// +// +// ovirtmgmt +// Default Management Network +// +// +// +// 0 +// false +// +// vm +// +// +// +// ... +// // // ---- // The order of the returned list of networks is guaranteed only if the `sortby` clause is included in the // `search` parameter. -// type NetworksServiceListResponse struct { networks *NetworkSlice } @@ -53692,7 +51832,6 @@ func (p *NetworksServiceListResponse) MustNetworks() *NetworkSlice { return p.networks } -// // List logical networks. // For example: // [source] @@ -53703,39 +51842,36 @@ func (p *NetworksServiceListResponse) MustNetworks() *NetworkSlice { // [source,xml] // ---- // -// -// ovirtmgmt -// Default Management Network -// -// -// -// 0 -// false -// -// vm -// -// -// -// ... +// +// +// ovirtmgmt +// Default Management Network +// +// +// +// 0 +// false +// +// vm +// +// +// +// ... +// // // ---- // The order of the returned list of networks is guaranteed only if the `sortby` clause is included in the // `search` parameter. -// func (p *NetworksService) List() *NetworksServiceListRequest { return &NetworksServiceListRequest{NetworksService: p} } -// // Reference to the service that manages a specific network. -// func (op *NetworksService) NetworkService(id string) *NetworkService { return NewNetworkService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *NetworksService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -53751,9 +51887,7 @@ func (op *NetworksService) String() string { return fmt.Sprintf("NetworksService:%s", op.path) } -// // This service manages a parameter for a network filter. -// type NicNetworkFilterParameterService struct { BaseService } @@ -53765,9 +51899,7 @@ func NewNicNetworkFilterParameterService(connection *Connection, path string) *N return &result } -// // Retrieves a representation of the network filter parameter. -// type NicNetworkFilterParameterServiceGetRequest struct { NicNetworkFilterParameterService *NicNetworkFilterParameterService header map[string]string @@ -53876,9 +52008,7 @@ func (p *NicNetworkFilterParameterServiceGetRequest) MustSend() *NicNetworkFilte } } -// // Retrieves a representation of the network filter parameter. -// type NicNetworkFilterParameterServiceGetResponse struct { parameter *NetworkFilterParameter } @@ -53897,14 +52027,11 @@ func (p *NicNetworkFilterParameterServiceGetResponse) MustParameter() *NetworkFi return p.parameter } -// // Retrieves a representation of the network filter parameter. -// func (p *NicNetworkFilterParameterService) Get() *NicNetworkFilterParameterServiceGetRequest { return &NicNetworkFilterParameterServiceGetRequest{NicNetworkFilterParameterService: p} } -// // Removes the filter parameter. // For example, to remove the filter parameter with id `123` on NIC `456` of virtual machine `789` // send a request like this: @@ -53912,7 +52039,6 @@ func (p *NicNetworkFilterParameterService) Get() *NicNetworkFilterParameterServi // ---- // DELETE /ovirt-engine/api/vms/789/nics/456/networkfilterparameters/123 // ---- -// type NicNetworkFilterParameterServiceRemoveRequest struct { NicNetworkFilterParameterService *NicNetworkFilterParameterService header map[string]string @@ -54006,7 +52132,6 @@ func (p *NicNetworkFilterParameterServiceRemoveRequest) MustSend() *NicNetworkFi } } -// // Removes the filter parameter. // For example, to remove the filter parameter with id `123` on NIC `456` of virtual machine `789` // send a request like this: @@ -54014,11 +52139,9 @@ func (p *NicNetworkFilterParameterServiceRemoveRequest) MustSend() *NicNetworkFi // ---- // DELETE /ovirt-engine/api/vms/789/nics/456/networkfilterparameters/123 // ---- -// type NicNetworkFilterParameterServiceRemoveResponse struct { } -// // Removes the filter parameter. // For example, to remove the filter parameter with id `123` on NIC `456` of virtual machine `789` // send a request like this: @@ -54026,12 +52149,10 @@ type NicNetworkFilterParameterServiceRemoveResponse struct { // ---- // DELETE /ovirt-engine/api/vms/789/nics/456/networkfilterparameters/123 // ---- -// func (p *NicNetworkFilterParameterService) Remove() *NicNetworkFilterParameterServiceRemoveRequest { return &NicNetworkFilterParameterServiceRemoveRequest{NicNetworkFilterParameterService: p} } -// // Updates the network filter parameter. // For example, to update the network filter parameter having with with id `123` on NIC `456` of // virtual machine `789` send a request like this: @@ -54043,11 +52164,12 @@ func (p *NicNetworkFilterParameterService) Remove() *NicNetworkFilterParameterSe // [source,xml] // ---- // -// updatedName -// updatedValue +// +// updatedName +// updatedValue +// // // ---- -// type NicNetworkFilterParameterServiceUpdateRequest struct { NicNetworkFilterParameterService *NicNetworkFilterParameterService header map[string]string @@ -54159,7 +52281,6 @@ func (p *NicNetworkFilterParameterServiceUpdateRequest) MustSend() *NicNetworkFi } } -// // Updates the network filter parameter. // For example, to update the network filter parameter having with with id `123` on NIC `456` of // virtual machine `789` send a request like this: @@ -54171,11 +52292,12 @@ func (p *NicNetworkFilterParameterServiceUpdateRequest) MustSend() *NicNetworkFi // [source,xml] // ---- // -// updatedName -// updatedValue +// +// updatedName +// updatedValue +// // // ---- -// type NicNetworkFilterParameterServiceUpdateResponse struct { parameter *NetworkFilterParameter } @@ -54194,7 +52316,6 @@ func (p *NicNetworkFilterParameterServiceUpdateResponse) MustParameter() *Networ return p.parameter } -// // Updates the network filter parameter. // For example, to update the network filter parameter having with with id `123` on NIC `456` of // virtual machine `789` send a request like this: @@ -54206,18 +52327,17 @@ func (p *NicNetworkFilterParameterServiceUpdateResponse) MustParameter() *Networ // [source,xml] // ---- // -// updatedName -// updatedValue +// +// updatedName +// updatedValue +// // // ---- -// func (p *NicNetworkFilterParameterService) Update() *NicNetworkFilterParameterServiceUpdateRequest { return &NicNetworkFilterParameterServiceUpdateRequest{NicNetworkFilterParameterService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *NicNetworkFilterParameterService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -54229,9 +52349,7 @@ func (op *NicNetworkFilterParameterService) String() string { return fmt.Sprintf("NicNetworkFilterParameterService:%s", op.path) } -// // This service manages a collection of parameters for network filters. -// type NicNetworkFilterParametersService struct { BaseService } @@ -54243,7 +52361,6 @@ func NewNicNetworkFilterParametersService(connection *Connection, path string) * return &result } -// // Add a network filter parameter. // For example, to add the parameter for the network filter on NIC `456` of // virtual machine `789` send a request like this: @@ -54255,11 +52372,12 @@ func NewNicNetworkFilterParametersService(connection *Connection, path string) * // [source,xml] // ---- // -// IP -// 10.0.1.2 +// +// IP +// 10.0.1.2 +// // // ---- -// type NicNetworkFilterParametersServiceAddRequest struct { NicNetworkFilterParametersService *NicNetworkFilterParametersService header map[string]string @@ -54371,7 +52489,6 @@ func (p *NicNetworkFilterParametersServiceAddRequest) MustSend() *NicNetworkFilt } } -// // Add a network filter parameter. // For example, to add the parameter for the network filter on NIC `456` of // virtual machine `789` send a request like this: @@ -54383,11 +52500,12 @@ func (p *NicNetworkFilterParametersServiceAddRequest) MustSend() *NicNetworkFilt // [source,xml] // ---- // -// IP -// 10.0.1.2 +// +// IP +// 10.0.1.2 +// // // ---- -// type NicNetworkFilterParametersServiceAddResponse struct { parameter *NetworkFilterParameter } @@ -54406,7 +52524,6 @@ func (p *NicNetworkFilterParametersServiceAddResponse) MustParameter() *NetworkF return p.parameter } -// // Add a network filter parameter. // For example, to add the parameter for the network filter on NIC `456` of // virtual machine `789` send a request like this: @@ -54418,19 +52535,18 @@ func (p *NicNetworkFilterParametersServiceAddResponse) MustParameter() *NetworkF // [source,xml] // ---- // -// IP -// 10.0.1.2 +// +// IP +// 10.0.1.2 +// // // ---- -// func (p *NicNetworkFilterParametersService) Add() *NicNetworkFilterParametersServiceAddRequest { return &NicNetworkFilterParametersServiceAddRequest{NicNetworkFilterParametersService: p} } -// // Retrieves the representations of the network filter parameters. // The order of the returned list of network filters isn't guaranteed. -// type NicNetworkFilterParametersServiceListRequest struct { NicNetworkFilterParametersService *NicNetworkFilterParametersService header map[string]string @@ -54539,10 +52655,8 @@ func (p *NicNetworkFilterParametersServiceListRequest) MustSend() *NicNetworkFil } } -// // Retrieves the representations of the network filter parameters. // The order of the returned list of network filters isn't guaranteed. -// type NicNetworkFilterParametersServiceListResponse struct { parameters *NetworkFilterParameterSlice } @@ -54561,24 +52675,18 @@ func (p *NicNetworkFilterParametersServiceListResponse) MustParameters() *Networ return p.parameters } -// // Retrieves the representations of the network filter parameters. // The order of the returned list of network filters isn't guaranteed. -// func (p *NicNetworkFilterParametersService) List() *NicNetworkFilterParametersServiceListRequest { return &NicNetworkFilterParametersServiceListRequest{NicNetworkFilterParametersService: p} } -// // Reference to the service that manages a specific network filter parameter. -// func (op *NicNetworkFilterParametersService) ParameterService(id string) *NicNetworkFilterParameterService { return NewNicNetworkFilterParameterService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *NicNetworkFilterParametersService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -54594,8 +52702,6 @@ func (op *NicNetworkFilterParametersService) String() string { return fmt.Sprintf("NicNetworkFilterParametersService:%s", op.path) } -// -// type OperatingSystemService struct { BaseService } @@ -54607,8 +52713,6 @@ func NewOperatingSystemService(connection *Connection, path string) *OperatingSy return &result } -// -// type OperatingSystemServiceGetRequest struct { OperatingSystemService *OperatingSystemService header map[string]string @@ -54717,8 +52821,6 @@ func (p *OperatingSystemServiceGetRequest) MustSend() *OperatingSystemServiceGet } } -// -// type OperatingSystemServiceGetResponse struct { operatingSystem *OperatingSystemInfo } @@ -54737,15 +52839,11 @@ func (p *OperatingSystemServiceGetResponse) MustOperatingSystem() *OperatingSyst return p.operatingSystem } -// -// func (p *OperatingSystemService) Get() *OperatingSystemServiceGetRequest { return &OperatingSystemServiceGetRequest{OperatingSystemService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *OperatingSystemService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -54757,9 +52855,7 @@ func (op *OperatingSystemService) String() string { return fmt.Sprintf("OperatingSystemService:%s", op.path) } -// // Manages the set of types of operating systems available in the system. -// type OperatingSystemsService struct { BaseService } @@ -54771,10 +52867,8 @@ func NewOperatingSystemsService(connection *Connection, path string) *OperatingS return &result } -// // Returns the list of types of operating system available in the system. // The order of the returned list of operating systems isn't guaranteed. -// type OperatingSystemsServiceListRequest struct { OperatingSystemsService *OperatingSystemsService header map[string]string @@ -54893,10 +52987,8 @@ func (p *OperatingSystemsServiceListRequest) MustSend() *OperatingSystemsService } } -// // Returns the list of types of operating system available in the system. // The order of the returned list of operating systems isn't guaranteed. -// type OperatingSystemsServiceListResponse struct { operatingSystem *OperatingSystemInfoSlice } @@ -54915,23 +53007,17 @@ func (p *OperatingSystemsServiceListResponse) MustOperatingSystem() *OperatingSy return p.operatingSystem } -// // Returns the list of types of operating system available in the system. // The order of the returned list of operating systems isn't guaranteed. -// func (p *OperatingSystemsService) List() *OperatingSystemsServiceListRequest { return &OperatingSystemsServiceListRequest{OperatingSystemsService: p} } -// -// func (op *OperatingSystemsService) OperatingSystemService(id string) *OperatingSystemService { return NewOperatingSystemService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *OperatingSystemsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -54947,8 +53033,6 @@ func (op *OperatingSystemsService) String() string { return fmt.Sprintf("OperatingSystemsService:%s", op.path) } -// -// type PermissionService struct { BaseService } @@ -54960,8 +53044,6 @@ func NewPermissionService(connection *Connection, path string) *PermissionServic return &result } -// -// type PermissionServiceGetRequest struct { PermissionService *PermissionService header map[string]string @@ -55070,8 +53152,6 @@ func (p *PermissionServiceGetRequest) MustSend() *PermissionServiceGetResponse { } } -// -// type PermissionServiceGetResponse struct { permission *Permission } @@ -55090,14 +53170,10 @@ func (p *PermissionServiceGetResponse) MustPermission() *Permission { return p.permission } -// -// func (p *PermissionService) Get() *PermissionServiceGetRequest { return &PermissionServiceGetRequest{PermissionService: p} } -// -// type PermissionServiceRemoveRequest struct { PermissionService *PermissionService header map[string]string @@ -55201,20 +53277,14 @@ func (p *PermissionServiceRemoveRequest) MustSend() *PermissionServiceRemoveResp } } -// -// type PermissionServiceRemoveResponse struct { } -// -// func (p *PermissionService) Remove() *PermissionServiceRemoveRequest { return &PermissionServiceRemoveRequest{PermissionService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *PermissionService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -55226,9 +53296,7 @@ func (op *PermissionService) String() string { return fmt.Sprintf("PermissionService:%s", op.path) } -// // A service to manage a specific permit of the role. -// type PermitService struct { BaseService } @@ -55240,7 +53308,6 @@ func NewPermitService(connection *Connection, path string) *PermitService { return &result } -// // Gets the information about the permit of the role. // For example to retrieve the information about the permit with the id `456` of the role with the id `123` // send a request like this: @@ -55250,12 +53317,13 @@ func NewPermitService(connection *Connection, path string) *PermitService { // [source,xml] // ---- // -// change_vm_cd -// false -// +// +// change_vm_cd +// false +// +// // // ---- -// type PermitServiceGetRequest struct { PermitService *PermitService header map[string]string @@ -55364,7 +53432,6 @@ func (p *PermitServiceGetRequest) MustSend() *PermitServiceGetResponse { } } -// // Gets the information about the permit of the role. // For example to retrieve the information about the permit with the id `456` of the role with the id `123` // send a request like this: @@ -55374,12 +53441,13 @@ func (p *PermitServiceGetRequest) MustSend() *PermitServiceGetResponse { // [source,xml] // ---- // -// change_vm_cd -// false -// +// +// change_vm_cd +// false +// +// // // ---- -// type PermitServiceGetResponse struct { permit *Permit } @@ -55398,7 +53466,6 @@ func (p *PermitServiceGetResponse) MustPermit() *Permit { return p.permit } -// // Gets the information about the permit of the role. // For example to retrieve the information about the permit with the id `456` of the role with the id `123` // send a request like this: @@ -55408,23 +53475,22 @@ func (p *PermitServiceGetResponse) MustPermit() *Permit { // [source,xml] // ---- // -// change_vm_cd -// false -// +// +// change_vm_cd +// false +// +// // // ---- -// func (p *PermitService) Get() *PermitServiceGetRequest { return &PermitServiceGetRequest{PermitService: p} } -// // Removes the permit from the role. // For example to remove the permit with id `456` from the role with id `123` send a request like this: // .... // DELETE /ovirt-engine/api/roles/123/permits/456 // .... -// type PermitServiceRemoveRequest struct { PermitService *PermitService header map[string]string @@ -55528,30 +53594,24 @@ func (p *PermitServiceRemoveRequest) MustSend() *PermitServiceRemoveResponse { } } -// // Removes the permit from the role. // For example to remove the permit with id `456` from the role with id `123` send a request like this: // .... // DELETE /ovirt-engine/api/roles/123/permits/456 // .... -// type PermitServiceRemoveResponse struct { } -// // Removes the permit from the role. // For example to remove the permit with id `456` from the role with id `123` send a request like this: // .... // DELETE /ovirt-engine/api/roles/123/permits/456 // .... -// func (p *PermitService) Remove() *PermitServiceRemoveRequest { return &PermitServiceRemoveRequest{PermitService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *PermitService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -55563,9 +53623,7 @@ func (op *PermitService) String() string { return fmt.Sprintf("PermitService:%s", op.path) } -// // Represents a permits sub-collection of the specific role. -// type PermitsService struct { BaseService } @@ -55577,7 +53635,6 @@ func NewPermitsService(connection *Connection, path string) *PermitsService { return &result } -// // Adds a permit to the role. The permit name can be retrieved from the <> service. // For example to assign a permit `create_vm` to the role with id `123` send a request like this: // .... @@ -55587,10 +53644,11 @@ func NewPermitsService(connection *Connection, path string) *PermitsService { // [source,xml] // ---- // -// create_vm +// +// create_vm +// // // ---- -// type PermitsServiceAddRequest struct { PermitsService *PermitsService header map[string]string @@ -55702,7 +53760,6 @@ func (p *PermitsServiceAddRequest) MustSend() *PermitsServiceAddResponse { } } -// // Adds a permit to the role. The permit name can be retrieved from the <> service. // For example to assign a permit `create_vm` to the role with id `123` send a request like this: // .... @@ -55712,10 +53769,11 @@ func (p *PermitsServiceAddRequest) MustSend() *PermitsServiceAddResponse { // [source,xml] // ---- // -// create_vm +// +// create_vm +// // // ---- -// type PermitsServiceAddResponse struct { permit *Permit } @@ -55734,7 +53792,6 @@ func (p *PermitsServiceAddResponse) MustPermit() *Permit { return p.permit } -// // Adds a permit to the role. The permit name can be retrieved from the <> service. // For example to assign a permit `create_vm` to the role with id `123` send a request like this: // .... @@ -55744,15 +53801,15 @@ func (p *PermitsServiceAddResponse) MustPermit() *Permit { // [source,xml] // ---- // -// create_vm +// +// create_vm +// // // ---- -// func (p *PermitsService) Add() *PermitsServiceAddRequest { return &PermitsServiceAddRequest{PermitsService: p} } -// // List the permits of the role. // For example to list the permits of the role with the id `123` send a request like this: // .... @@ -55761,20 +53818,21 @@ func (p *PermitsService) Add() *PermitsServiceAddRequest { // [source,xml] // ---- // -// -// change_vm_cd -// false -// -// -// -// connect_to_vm -// false -// -// +// +// +// change_vm_cd +// false +// +// +// +// connect_to_vm +// false +// +// +// // // ---- // The order of the returned list of permits isn't guaranteed. -// type PermitsServiceListRequest struct { PermitsService *PermitsService header map[string]string @@ -55893,7 +53951,6 @@ func (p *PermitsServiceListRequest) MustSend() *PermitsServiceListResponse { } } -// // List the permits of the role. // For example to list the permits of the role with the id `123` send a request like this: // .... @@ -55902,20 +53959,21 @@ func (p *PermitsServiceListRequest) MustSend() *PermitsServiceListResponse { // [source,xml] // ---- // -// -// change_vm_cd -// false -// -// -// -// connect_to_vm -// false -// -// +// +// +// change_vm_cd +// false +// +// +// +// connect_to_vm +// false +// +// +// // // ---- // The order of the returned list of permits isn't guaranteed. -// type PermitsServiceListResponse struct { permits *PermitSlice } @@ -55934,7 +53992,6 @@ func (p *PermitsServiceListResponse) MustPermits() *PermitSlice { return p.permits } -// // List the permits of the role. // For example to list the permits of the role with the id `123` send a request like this: // .... @@ -55943,34 +54000,31 @@ func (p *PermitsServiceListResponse) MustPermits() *PermitSlice { // [source,xml] // ---- // -// -// change_vm_cd -// false -// -// -// -// connect_to_vm -// false -// -// +// +// +// change_vm_cd +// false +// +// +// +// connect_to_vm +// false +// +// +// // // ---- // The order of the returned list of permits isn't guaranteed. -// func (p *PermitsService) List() *PermitsServiceListRequest { return &PermitsServiceListRequest{PermitsService: p} } -// // Sub-resource locator method, returns individual permit resource on which the remainder of the URI is dispatched. -// func (op *PermitsService) PermitService(id string) *PermitService { return NewPermitService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *PermitsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -55986,8 +54040,6 @@ func (op *PermitsService) String() string { return fmt.Sprintf("PermitsService:%s", op.path) } -// -// type QosService struct { BaseService } @@ -55999,7 +54051,6 @@ func NewQosService(connection *Connection, path string) *QosService { return &result } -// // Get specified QoS in the data center. // [source] // ---- @@ -56009,15 +54060,16 @@ func NewQosService(connection *Connection, path string) *QosService { // [source,xml] // ---- // -// 123 -// 123 -// 1 -// 1 -// storage -// +// +// 123 +// 123 +// 1 +// 1 +// storage +// +// // // ---- -// type QosServiceGetRequest struct { QosService *QosService header map[string]string @@ -56126,7 +54178,6 @@ func (p *QosServiceGetRequest) MustSend() *QosServiceGetResponse { } } -// // Get specified QoS in the data center. // [source] // ---- @@ -56136,15 +54187,16 @@ func (p *QosServiceGetRequest) MustSend() *QosServiceGetResponse { // [source,xml] // ---- // -// 123 -// 123 -// 1 -// 1 -// storage -// +// +// 123 +// 123 +// 1 +// 1 +// storage +// +// // // ---- -// type QosServiceGetResponse struct { qos *Qos } @@ -56163,7 +54215,6 @@ func (p *QosServiceGetResponse) MustQos() *Qos { return p.qos } -// // Get specified QoS in the data center. // [source] // ---- @@ -56173,26 +54224,25 @@ func (p *QosServiceGetResponse) MustQos() *Qos { // [source,xml] // ---- // -// 123 -// 123 -// 1 -// 1 -// storage -// +// +// 123 +// 123 +// 1 +// 1 +// storage +// +// // // ---- -// func (p *QosService) Get() *QosServiceGetRequest { return &QosServiceGetRequest{QosService: p} } -// // Remove specified QoS from datacenter. // [source] // ---- // DELETE /ovirt-engine/api/datacenters/123/qoss/123 // ---- -// type QosServiceRemoveRequest struct { QosService *QosService header map[string]string @@ -56296,28 +54346,23 @@ func (p *QosServiceRemoveRequest) MustSend() *QosServiceRemoveResponse { } } -// // Remove specified QoS from datacenter. // [source] // ---- // DELETE /ovirt-engine/api/datacenters/123/qoss/123 // ---- -// type QosServiceRemoveResponse struct { } -// // Remove specified QoS from datacenter. // [source] // ---- // DELETE /ovirt-engine/api/datacenters/123/qoss/123 // ---- -// func (p *QosService) Remove() *QosServiceRemoveRequest { return &QosServiceRemoveRequest{QosService: p} } -// // Update the specified QoS in the dataCenter. // [source] // ---- @@ -56334,15 +54379,16 @@ func (p *QosService) Remove() *QosServiceRemoveRequest { // [source,xml] // ---- // -// 321 -// 321 -// 10 -// 1 -// storage -// +// +// 321 +// 321 +// 10 +// 1 +// storage +// +// // // ---- -// type QosServiceUpdateRequest struct { QosService *QosService header map[string]string @@ -56464,7 +54510,6 @@ func (p *QosServiceUpdateRequest) MustSend() *QosServiceUpdateResponse { } } -// // Update the specified QoS in the dataCenter. // [source] // ---- @@ -56481,15 +54526,16 @@ func (p *QosServiceUpdateRequest) MustSend() *QosServiceUpdateResponse { // [source,xml] // ---- // -// 321 -// 321 -// 10 -// 1 -// storage -// +// +// 321 +// 321 +// 10 +// 1 +// storage +// +// // // ---- -// type QosServiceUpdateResponse struct { qos *Qos } @@ -56508,7 +54554,6 @@ func (p *QosServiceUpdateResponse) MustQos() *Qos { return p.qos } -// // Update the specified QoS in the dataCenter. // [source] // ---- @@ -56525,22 +54570,21 @@ func (p *QosServiceUpdateResponse) MustQos() *Qos { // [source,xml] // ---- // -// 321 -// 321 -// 10 -// 1 -// storage -// +// +// 321 +// 321 +// 10 +// 1 +// storage +// +// // // ---- -// func (p *QosService) Update() *QosServiceUpdateRequest { return &QosServiceUpdateRequest{QosService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *QosService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -56552,9 +54596,7 @@ func (op *QosService) String() string { return fmt.Sprintf("QosService:%s", op.path) } -// // Manages the set of _quality of service_ configurations available in a data center. -// type QossService struct { BaseService } @@ -56566,7 +54608,6 @@ func NewQossService(connection *Connection, path string) *QossService { return &result } -// // Add a new QoS to the dataCenter. // [source] // ---- @@ -56576,14 +54617,15 @@ func NewQossService(connection *Connection, path string) *QossService { // [source,xml] // ---- // -// 123 -// 123 -// 10 -// storage -// +// +// 123 +// 123 +// 10 +// storage +// +// // // ---- -// type QossServiceAddRequest struct { QossService *QossService header map[string]string @@ -56695,7 +54737,6 @@ func (p *QossServiceAddRequest) MustSend() *QossServiceAddResponse { } } -// // Add a new QoS to the dataCenter. // [source] // ---- @@ -56705,14 +54746,15 @@ func (p *QossServiceAddRequest) MustSend() *QossServiceAddResponse { // [source,xml] // ---- // -// 123 -// 123 -// 10 -// storage -// +// +// 123 +// 123 +// 10 +// storage +// +// // // ---- -// type QossServiceAddResponse struct { qos *Qos } @@ -56731,7 +54773,6 @@ func (p *QossServiceAddResponse) MustQos() *Qos { return p.qos } -// // Add a new QoS to the dataCenter. // [source] // ---- @@ -56741,19 +54782,19 @@ func (p *QossServiceAddResponse) MustQos() *Qos { // [source,xml] // ---- // -// 123 -// 123 -// 10 -// storage -// +// +// 123 +// 123 +// 10 +// storage +// +// // // ---- -// func (p *QossService) Add() *QossServiceAddRequest { return &QossServiceAddRequest{QossService: p} } -// // Returns the list of _quality of service_ configurations available in the data center. // [source] // ---- @@ -56763,13 +54804,14 @@ func (p *QossService) Add() *QossServiceAddRequest { // [source, xml] // ---- // -// ... -// ... -// ... +// +// ... +// ... +// ... +// // // ---- // The returned list of quality of service configurations isn't guaranteed. -// type QossServiceListRequest struct { QossService *QossService header map[string]string @@ -56888,7 +54930,6 @@ func (p *QossServiceListRequest) MustSend() *QossServiceListResponse { } } -// // Returns the list of _quality of service_ configurations available in the data center. // [source] // ---- @@ -56898,13 +54939,14 @@ func (p *QossServiceListRequest) MustSend() *QossServiceListResponse { // [source, xml] // ---- // -// ... -// ... -// ... +// +// ... +// ... +// ... +// // // ---- // The returned list of quality of service configurations isn't guaranteed. -// type QossServiceListResponse struct { qoss *QosSlice } @@ -56923,7 +54965,6 @@ func (p *QossServiceListResponse) MustQoss() *QosSlice { return p.qoss } -// // Returns the list of _quality of service_ configurations available in the data center. // [source] // ---- @@ -56933,27 +54974,24 @@ func (p *QossServiceListResponse) MustQoss() *QosSlice { // [source, xml] // ---- // -// ... -// ... -// ... +// +// ... +// ... +// ... +// // // ---- // The returned list of quality of service configurations isn't guaranteed. -// func (p *QossService) List() *QossServiceListRequest { return &QossServiceListRequest{QossService: p} } -// // A reference to a service managing a specific QoS. -// func (op *QossService) QosService(id string) *QosService { return NewQosService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *QossService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -56969,8 +55007,6 @@ func (op *QossService) String() string { return fmt.Sprintf("QossService:%s", op.path) } -// -// type QuotaClusterLimitService struct { BaseService } @@ -56982,8 +55018,6 @@ func NewQuotaClusterLimitService(connection *Connection, path string) *QuotaClus return &result } -// -// type QuotaClusterLimitServiceGetRequest struct { QuotaClusterLimitService *QuotaClusterLimitService header map[string]string @@ -57092,8 +55126,6 @@ func (p *QuotaClusterLimitServiceGetRequest) MustSend() *QuotaClusterLimitServic } } -// -// type QuotaClusterLimitServiceGetResponse struct { limit *QuotaClusterLimit } @@ -57112,14 +55144,10 @@ func (p *QuotaClusterLimitServiceGetResponse) MustLimit() *QuotaClusterLimit { return p.limit } -// -// func (p *QuotaClusterLimitService) Get() *QuotaClusterLimitServiceGetRequest { return &QuotaClusterLimitServiceGetRequest{QuotaClusterLimitService: p} } -// -// type QuotaClusterLimitServiceRemoveRequest struct { QuotaClusterLimitService *QuotaClusterLimitService header map[string]string @@ -57223,20 +55251,14 @@ func (p *QuotaClusterLimitServiceRemoveRequest) MustSend() *QuotaClusterLimitSer } } -// -// type QuotaClusterLimitServiceRemoveResponse struct { } -// -// func (p *QuotaClusterLimitService) Remove() *QuotaClusterLimitServiceRemoveRequest { return &QuotaClusterLimitServiceRemoveRequest{QuotaClusterLimitService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *QuotaClusterLimitService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -57248,9 +55270,7 @@ func (op *QuotaClusterLimitService) String() string { return fmt.Sprintf("QuotaClusterLimitService:%s", op.path) } -// // Manages the set of quota limits configured for a cluster. -// type QuotaClusterLimitsService struct { BaseService } @@ -57262,9 +55282,7 @@ func NewQuotaClusterLimitsService(connection *Connection, path string) *QuotaClu return &result } -// // Add a cluster limit to a specified Quota. -// type QuotaClusterLimitsServiceAddRequest struct { QuotaClusterLimitsService *QuotaClusterLimitsService header map[string]string @@ -57376,9 +55394,7 @@ func (p *QuotaClusterLimitsServiceAddRequest) MustSend() *QuotaClusterLimitsServ } } -// // Add a cluster limit to a specified Quota. -// type QuotaClusterLimitsServiceAddResponse struct { limit *QuotaClusterLimit } @@ -57397,17 +55413,13 @@ func (p *QuotaClusterLimitsServiceAddResponse) MustLimit() *QuotaClusterLimit { return p.limit } -// // Add a cluster limit to a specified Quota. -// func (p *QuotaClusterLimitsService) Add() *QuotaClusterLimitsServiceAddRequest { return &QuotaClusterLimitsServiceAddRequest{QuotaClusterLimitsService: p} } -// // Returns the set of quota limits configured for the cluster. // The returned list of quota limits isn't guaranteed. -// type QuotaClusterLimitsServiceListRequest struct { QuotaClusterLimitsService *QuotaClusterLimitsService header map[string]string @@ -57526,10 +55538,8 @@ func (p *QuotaClusterLimitsServiceListRequest) MustSend() *QuotaClusterLimitsSer } } -// // Returns the set of quota limits configured for the cluster. // The returned list of quota limits isn't guaranteed. -// type QuotaClusterLimitsServiceListResponse struct { limits *QuotaClusterLimitSlice } @@ -57548,23 +55558,17 @@ func (p *QuotaClusterLimitsServiceListResponse) MustLimits() *QuotaClusterLimitS return p.limits } -// // Returns the set of quota limits configured for the cluster. // The returned list of quota limits isn't guaranteed. -// func (p *QuotaClusterLimitsService) List() *QuotaClusterLimitsServiceListRequest { return &QuotaClusterLimitsServiceListRequest{QuotaClusterLimitsService: p} } -// -// func (op *QuotaClusterLimitsService) LimitService(id string) *QuotaClusterLimitService { return NewQuotaClusterLimitService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *QuotaClusterLimitsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -57580,8 +55584,6 @@ func (op *QuotaClusterLimitsService) String() string { return fmt.Sprintf("QuotaClusterLimitsService:%s", op.path) } -// -// type QuotaService struct { BaseService } @@ -57593,7 +55595,6 @@ func NewQuotaService(connection *Connection, path string) *QuotaService { return &result } -// // Retrieves a quota. // An example of retrieving a quota: // [source] @@ -57603,15 +55604,16 @@ func NewQuotaService(connection *Connection, path string) *QuotaService { // [source,xml] // ---- // -// myquota -// My new quota for virtual machines -// 20 -// 80 -// 20 -// 80 +// +// myquota +// My new quota for virtual machines +// 20 +// 80 +// 20 +// 80 +// // // ---- -// type QuotaServiceGetRequest struct { QuotaService *QuotaService header map[string]string @@ -57720,7 +55722,6 @@ func (p *QuotaServiceGetRequest) MustSend() *QuotaServiceGetResponse { } } -// // Retrieves a quota. // An example of retrieving a quota: // [source] @@ -57730,15 +55731,16 @@ func (p *QuotaServiceGetRequest) MustSend() *QuotaServiceGetResponse { // [source,xml] // ---- // -// myquota -// My new quota for virtual machines -// 20 -// 80 -// 20 -// 80 +// +// myquota +// My new quota for virtual machines +// 20 +// 80 +// 20 +// 80 +// // // ---- -// type QuotaServiceGetResponse struct { quota *Quota } @@ -57757,7 +55759,6 @@ func (p *QuotaServiceGetResponse) MustQuota() *Quota { return p.quota } -// // Retrieves a quota. // An example of retrieving a quota: // [source] @@ -57767,20 +55768,20 @@ func (p *QuotaServiceGetResponse) MustQuota() *Quota { // [source,xml] // ---- // -// myquota -// My new quota for virtual machines -// 20 -// 80 -// 20 -// 80 +// +// myquota +// My new quota for virtual machines +// 20 +// 80 +// 20 +// 80 +// // // ---- -// func (p *QuotaService) Get() *QuotaServiceGetRequest { return &QuotaServiceGetRequest{QuotaService: p} } -// // Delete a quota. // An example of deleting a quota: // [source] @@ -57790,7 +55791,6 @@ func (p *QuotaService) Get() *QuotaServiceGetRequest { // Accept: application/xml // Content-type: application/xml // ---- -// type QuotaServiceRemoveRequest struct { QuotaService *QuotaService header map[string]string @@ -57894,7 +55894,6 @@ func (p *QuotaServiceRemoveRequest) MustSend() *QuotaServiceRemoveResponse { } } -// // Delete a quota. // An example of deleting a quota: // [source] @@ -57904,11 +55903,9 @@ func (p *QuotaServiceRemoveRequest) MustSend() *QuotaServiceRemoveResponse { // Accept: application/xml // Content-type: application/xml // ---- -// type QuotaServiceRemoveResponse struct { } -// // Delete a quota. // An example of deleting a quota: // [source] @@ -57918,12 +55915,10 @@ type QuotaServiceRemoveResponse struct { // Accept: application/xml // Content-type: application/xml // ---- -// func (p *QuotaService) Remove() *QuotaServiceRemoveRequest { return &QuotaServiceRemoveRequest{QuotaService: p} } -// // Updates a quota. // An example of updating a quota: // [source] @@ -57933,13 +55928,14 @@ func (p *QuotaService) Remove() *QuotaServiceRemoveRequest { // [source,xml] // ---- // -// 30 -// 70 -// 20 -// 80 +// +// 30 +// 70 +// 20 +// 80 +// // // ---- -// type QuotaServiceUpdateRequest struct { QuotaService *QuotaService header map[string]string @@ -58061,7 +56057,6 @@ func (p *QuotaServiceUpdateRequest) MustSend() *QuotaServiceUpdateResponse { } } -// // Updates a quota. // An example of updating a quota: // [source] @@ -58071,13 +56066,14 @@ func (p *QuotaServiceUpdateRequest) MustSend() *QuotaServiceUpdateResponse { // [source,xml] // ---- // -// 30 -// 70 -// 20 -// 80 +// +// 30 +// 70 +// 20 +// 80 +// // // ---- -// type QuotaServiceUpdateResponse struct { quota *Quota } @@ -58096,7 +56092,6 @@ func (p *QuotaServiceUpdateResponse) MustQuota() *Quota { return p.quota } -// // Updates a quota. // An example of updating a quota: // [source] @@ -58106,38 +56101,31 @@ func (p *QuotaServiceUpdateResponse) MustQuota() *Quota { // [source,xml] // ---- // -// 30 -// 70 -// 20 -// 80 +// +// 30 +// 70 +// 20 +// 80 +// // // ---- -// func (p *QuotaService) Update() *QuotaServiceUpdateRequest { return &QuotaServiceUpdateRequest{QuotaService: p} } -// -// func (op *QuotaService) PermissionsService() *AssignedPermissionsService { return NewAssignedPermissionsService(op.connection, fmt.Sprintf("%s/permissions", op.path)) } -// -// func (op *QuotaService) QuotaClusterLimitsService() *QuotaClusterLimitsService { return NewQuotaClusterLimitsService(op.connection, fmt.Sprintf("%s/quotaclusterlimits", op.path)) } -// -// func (op *QuotaService) QuotaStorageLimitsService() *QuotaStorageLimitsService { return NewQuotaStorageLimitsService(op.connection, fmt.Sprintf("%s/quotastoragelimits", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *QuotaService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -58167,8 +56155,6 @@ func (op *QuotaService) String() string { return fmt.Sprintf("QuotaService:%s", op.path) } -// -// type QuotaStorageLimitService struct { BaseService } @@ -58180,8 +56166,6 @@ func NewQuotaStorageLimitService(connection *Connection, path string) *QuotaStor return &result } -// -// type QuotaStorageLimitServiceGetRequest struct { QuotaStorageLimitService *QuotaStorageLimitService header map[string]string @@ -58290,8 +56274,6 @@ func (p *QuotaStorageLimitServiceGetRequest) MustSend() *QuotaStorageLimitServic } } -// -// type QuotaStorageLimitServiceGetResponse struct { limit *QuotaStorageLimit } @@ -58310,14 +56292,10 @@ func (p *QuotaStorageLimitServiceGetResponse) MustLimit() *QuotaStorageLimit { return p.limit } -// -// func (p *QuotaStorageLimitService) Get() *QuotaStorageLimitServiceGetRequest { return &QuotaStorageLimitServiceGetRequest{QuotaStorageLimitService: p} } -// -// type QuotaStorageLimitServiceRemoveRequest struct { QuotaStorageLimitService *QuotaStorageLimitService header map[string]string @@ -58421,20 +56399,14 @@ func (p *QuotaStorageLimitServiceRemoveRequest) MustSend() *QuotaStorageLimitSer } } -// -// type QuotaStorageLimitServiceRemoveResponse struct { } -// -// func (p *QuotaStorageLimitService) Remove() *QuotaStorageLimitServiceRemoveRequest { return &QuotaStorageLimitServiceRemoveRequest{QuotaStorageLimitService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *QuotaStorageLimitService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -58446,9 +56418,7 @@ func (op *QuotaStorageLimitService) String() string { return fmt.Sprintf("QuotaStorageLimitService:%s", op.path) } -// // Manages the set of storage limits configured for a quota. -// type QuotaStorageLimitsService struct { BaseService } @@ -58460,7 +56430,6 @@ func NewQuotaStorageLimitsService(connection *Connection, path string) *QuotaSto return &result } -// // Adds a storage limit to a specified quota. // To create a 100GiB storage limit for all storage domains in a data center, send a request like this: // [source] @@ -58471,7 +56440,9 @@ func NewQuotaStorageLimitsService(connection *Connection, path string) *QuotaSto // [source,xml] // ---- // -// 100 +// +// 100 +// // // ---- // To create a 50GiB storage limit for a storage domain with the ID `000`, send a request like this: @@ -58483,11 +56454,12 @@ func NewQuotaStorageLimitsService(connection *Connection, path string) *QuotaSto // [source,xml] // ---- // -// 50 -// +// +// 50 +// +// // // ---- -// type QuotaStorageLimitsServiceAddRequest struct { QuotaStorageLimitsService *QuotaStorageLimitsService header map[string]string @@ -58599,7 +56571,6 @@ func (p *QuotaStorageLimitsServiceAddRequest) MustSend() *QuotaStorageLimitsServ } } -// // Adds a storage limit to a specified quota. // To create a 100GiB storage limit for all storage domains in a data center, send a request like this: // [source] @@ -58610,7 +56581,9 @@ func (p *QuotaStorageLimitsServiceAddRequest) MustSend() *QuotaStorageLimitsServ // [source,xml] // ---- // -// 100 +// +// 100 +// // // ---- // To create a 50GiB storage limit for a storage domain with the ID `000`, send a request like this: @@ -58622,11 +56595,12 @@ func (p *QuotaStorageLimitsServiceAddRequest) MustSend() *QuotaStorageLimitsServ // [source,xml] // ---- // -// 50 -// +// +// 50 +// +// // // ---- -// type QuotaStorageLimitsServiceAddResponse struct { limit *QuotaStorageLimit } @@ -58645,7 +56619,6 @@ func (p *QuotaStorageLimitsServiceAddResponse) MustLimit() *QuotaStorageLimit { return p.limit } -// // Adds a storage limit to a specified quota. // To create a 100GiB storage limit for all storage domains in a data center, send a request like this: // [source] @@ -58656,7 +56629,9 @@ func (p *QuotaStorageLimitsServiceAddResponse) MustLimit() *QuotaStorageLimit { // [source,xml] // ---- // -// 100 +// +// 100 +// // // ---- // To create a 50GiB storage limit for a storage domain with the ID `000`, send a request like this: @@ -58668,19 +56643,18 @@ func (p *QuotaStorageLimitsServiceAddResponse) MustLimit() *QuotaStorageLimit { // [source,xml] // ---- // -// 50 -// +// +// 50 +// +// // // ---- -// func (p *QuotaStorageLimitsService) Add() *QuotaStorageLimitsServiceAddRequest { return &QuotaStorageLimitsServiceAddRequest{QuotaStorageLimitsService: p} } -// // Returns the list of storage limits configured for the quota. // The order of the returned list of storage limits is not guaranteed. -// type QuotaStorageLimitsServiceListRequest struct { QuotaStorageLimitsService *QuotaStorageLimitsService header map[string]string @@ -58799,10 +56773,8 @@ func (p *QuotaStorageLimitsServiceListRequest) MustSend() *QuotaStorageLimitsSer } } -// // Returns the list of storage limits configured for the quota. // The order of the returned list of storage limits is not guaranteed. -// type QuotaStorageLimitsServiceListResponse struct { limits *QuotaStorageLimitSlice } @@ -58821,23 +56793,17 @@ func (p *QuotaStorageLimitsServiceListResponse) MustLimits() *QuotaStorageLimitS return p.limits } -// // Returns the list of storage limits configured for the quota. // The order of the returned list of storage limits is not guaranteed. -// func (p *QuotaStorageLimitsService) List() *QuotaStorageLimitsServiceListRequest { return &QuotaStorageLimitsServiceListRequest{QuotaStorageLimitsService: p} } -// -// func (op *QuotaStorageLimitsService) LimitService(id string) *QuotaStorageLimitService { return NewQuotaStorageLimitService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *QuotaStorageLimitsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -58853,9 +56819,7 @@ func (op *QuotaStorageLimitsService) String() string { return fmt.Sprintf("QuotaStorageLimitsService:%s", op.path) } -// // Manages the set of quotas configured for a data center. -// type QuotasService struct { BaseService } @@ -58867,7 +56831,6 @@ func NewQuotasService(connection *Connection, path string) *QuotasService { return &result } -// // Creates a new quota. // An example of creating a new quota: // [source] @@ -58877,11 +56840,12 @@ func NewQuotasService(connection *Connection, path string) *QuotasService { // [source,xml] // ---- // -// myquota -// My new quota for virtual machines +// +// myquota +// My new quota for virtual machines +// // // ---- -// type QuotasServiceAddRequest struct { QuotasService *QuotasService header map[string]string @@ -58993,7 +56957,6 @@ func (p *QuotasServiceAddRequest) MustSend() *QuotasServiceAddResponse { } } -// // Creates a new quota. // An example of creating a new quota: // [source] @@ -59003,11 +56966,12 @@ func (p *QuotasServiceAddRequest) MustSend() *QuotasServiceAddResponse { // [source,xml] // ---- // -// myquota -// My new quota for virtual machines +// +// myquota +// My new quota for virtual machines +// // // ---- -// type QuotasServiceAddResponse struct { quota *Quota } @@ -59026,7 +56990,6 @@ func (p *QuotasServiceAddResponse) MustQuota() *Quota { return p.quota } -// // Creates a new quota. // An example of creating a new quota: // [source] @@ -59036,19 +56999,18 @@ func (p *QuotasServiceAddResponse) MustQuota() *Quota { // [source,xml] // ---- // -// myquota -// My new quota for virtual machines +// +// myquota +// My new quota for virtual machines +// // // ---- -// func (p *QuotasService) Add() *QuotasServiceAddRequest { return &QuotasServiceAddRequest{QuotasService: p} } -// // Lists quotas of a data center. // The order of the returned list of quotas isn't guaranteed. -// type QuotasServiceListRequest struct { QuotasService *QuotasService header map[string]string @@ -59167,10 +57129,8 @@ func (p *QuotasServiceListRequest) MustSend() *QuotasServiceListResponse { } } -// // Lists quotas of a data center. // The order of the returned list of quotas isn't guaranteed. -// type QuotasServiceListResponse struct { quotas *QuotaSlice } @@ -59189,23 +57149,17 @@ func (p *QuotasServiceListResponse) MustQuotas() *QuotaSlice { return p.quotas } -// // Lists quotas of a data center. // The order of the returned list of quotas isn't guaranteed. -// func (p *QuotasService) List() *QuotasServiceListRequest { return &QuotasServiceListRequest{QuotasService: p} } -// -// func (op *QuotasService) QuotaService(id string) *QuotaService { return NewQuotaService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *QuotasService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -59221,8 +57175,6 @@ func (op *QuotasService) String() string { return fmt.Sprintf("QuotasService:%s", op.path) } -// -// type RoleService struct { BaseService } @@ -59234,7 +57186,6 @@ func NewRoleService(connection *Connection, path string) *RoleService { return &result } -// // Get the role. // [source] // ---- @@ -59244,14 +57195,15 @@ func NewRoleService(connection *Connection, path string) *RoleService { // [source,xml] // ---- // -// MyRole -// MyRole description -// -// true -// false +// +// MyRole +// MyRole description +// +// true +// false +// // // ---- -// type RoleServiceGetRequest struct { RoleService *RoleService header map[string]string @@ -59360,7 +57312,6 @@ func (p *RoleServiceGetRequest) MustSend() *RoleServiceGetResponse { } } -// // Get the role. // [source] // ---- @@ -59370,14 +57321,15 @@ func (p *RoleServiceGetRequest) MustSend() *RoleServiceGetResponse { // [source,xml] // ---- // -// MyRole -// MyRole description -// -// true -// false +// +// MyRole +// MyRole description +// +// true +// false +// // // ---- -// type RoleServiceGetResponse struct { role *Role } @@ -59396,7 +57348,6 @@ func (p *RoleServiceGetResponse) MustRole() *Role { return p.role } -// // Get the role. // [source] // ---- @@ -59406,26 +57357,25 @@ func (p *RoleServiceGetResponse) MustRole() *Role { // [source,xml] // ---- // -// MyRole -// MyRole description -// -// true -// false +// +// MyRole +// MyRole description +// +// true +// false +// // // ---- -// func (p *RoleService) Get() *RoleServiceGetRequest { return &RoleServiceGetRequest{RoleService: p} } -// // Removes the role. // To remove the role you need to know its id, then send request like this: // [source] // ---- // DELETE /ovirt-engine/api/roles/{role_id} // ---- -// type RoleServiceRemoveRequest struct { RoleService *RoleService header map[string]string @@ -59529,30 +57479,25 @@ func (p *RoleServiceRemoveRequest) MustSend() *RoleServiceRemoveResponse { } } -// // Removes the role. // To remove the role you need to know its id, then send request like this: // [source] // ---- // DELETE /ovirt-engine/api/roles/{role_id} // ---- -// type RoleServiceRemoveResponse struct { } -// // Removes the role. // To remove the role you need to know its id, then send request like this: // [source] // ---- // DELETE /ovirt-engine/api/roles/{role_id} // ---- -// func (p *RoleService) Remove() *RoleServiceRemoveRequest { return &RoleServiceRemoveRequest{RoleService: p} } -// // Updates a role. You are allowed to update `name`, `description` and `administrative` attributes after role is // created. Within this endpoint you can't add or remove roles permits you need to use // <> that manages permits of role. @@ -59565,12 +57510,13 @@ func (p *RoleService) Remove() *RoleServiceRemoveRequest { // [source,xml] // ---- // -// MyNewRoleName -// My new description of the role -// true +// +// MyNewRoleName +// My new description of the role +// true +// // // ---- -// type RoleServiceUpdateRequest struct { RoleService *RoleService header map[string]string @@ -59692,7 +57638,6 @@ func (p *RoleServiceUpdateRequest) MustSend() *RoleServiceUpdateResponse { } } -// // Updates a role. You are allowed to update `name`, `description` and `administrative` attributes after role is // created. Within this endpoint you can't add or remove roles permits you need to use // <> that manages permits of role. @@ -59705,12 +57650,13 @@ func (p *RoleServiceUpdateRequest) MustSend() *RoleServiceUpdateResponse { // [source,xml] // ---- // -// MyNewRoleName -// My new description of the role -// true +// +// MyNewRoleName +// My new description of the role +// true +// // // ---- -// type RoleServiceUpdateResponse struct { role *Role } @@ -59729,7 +57675,6 @@ func (p *RoleServiceUpdateResponse) MustRole() *Role { return p.role } -// // Updates a role. You are allowed to update `name`, `description` and `administrative` attributes after role is // created. Within this endpoint you can't add or remove roles permits you need to use // <> that manages permits of role. @@ -59742,26 +57687,23 @@ func (p *RoleServiceUpdateResponse) MustRole() *Role { // [source,xml] // ---- // -// MyNewRoleName -// My new description of the role -// true +// +// MyNewRoleName +// My new description of the role +// true +// // // ---- -// func (p *RoleService) Update() *RoleServiceUpdateRequest { return &RoleServiceUpdateRequest{RoleService: p} } -// // Sub-resource locator method, returns permits service. -// func (op *RoleService) PermitsService() *PermitsService { return NewPermitsService(op.connection, fmt.Sprintf("%s/permits", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *RoleService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -59779,9 +57721,7 @@ func (op *RoleService) String() string { return fmt.Sprintf("RoleService:%s", op.path) } -// // Provides read-only access to the global set of roles -// type RolesService struct { BaseService } @@ -59793,7 +57733,6 @@ func NewRolesService(connection *Connection, path string) *RolesService { return &result } -// // Create a new role. The role can be administrative or non-administrative and can have different permits. // For example, to add the `MyRole` non-administrative role with permits to login and create virtual machines // send a request like this (note that you have to pass permit id): @@ -59805,16 +57744,17 @@ func NewRolesService(connection *Connection, path string) *RolesService { // [source,xml] // ---- // -// MyRole -// My custom role to create virtual machines -// false -// -// -// -// +// +// MyRole +// My custom role to create virtual machines +// false +// +// +// +// +// // // ---- -// type RolesServiceAddRequest struct { RolesService *RolesService header map[string]string @@ -59926,7 +57866,6 @@ func (p *RolesServiceAddRequest) MustSend() *RolesServiceAddResponse { } } -// // Create a new role. The role can be administrative or non-administrative and can have different permits. // For example, to add the `MyRole` non-administrative role with permits to login and create virtual machines // send a request like this (note that you have to pass permit id): @@ -59938,16 +57877,17 @@ func (p *RolesServiceAddRequest) MustSend() *RolesServiceAddResponse { // [source,xml] // ---- // -// MyRole -// My custom role to create virtual machines -// false -// -// -// -// +// +// MyRole +// My custom role to create virtual machines +// false +// +// +// +// +// // // ---- -// type RolesServiceAddResponse struct { role *Role } @@ -59966,7 +57906,6 @@ func (p *RolesServiceAddResponse) MustRole() *Role { return p.role } -// // Create a new role. The role can be administrative or non-administrative and can have different permits. // For example, to add the `MyRole` non-administrative role with permits to login and create virtual machines // send a request like this (note that you have to pass permit id): @@ -59978,21 +57917,21 @@ func (p *RolesServiceAddResponse) MustRole() *Role { // [source,xml] // ---- // -// MyRole -// My custom role to create virtual machines -// false -// -// -// -// +// +// MyRole +// My custom role to create virtual machines +// false +// +// +// +// +// // // ---- -// func (p *RolesService) Add() *RolesServiceAddRequest { return &RolesServiceAddRequest{RolesService: p} } -// // List roles. // [source] // ---- @@ -60002,18 +57941,19 @@ func (p *RolesService) Add() *RolesServiceAddRequest { // [source,xml] // ---- // -// -// SuperUser -// Roles management administrator -// -// true -// false -// -// ... +// +// +// SuperUser +// Roles management administrator +// +// true +// false +// +// ... +// // // ---- // The order of the returned list of roles isn't guaranteed. -// type RolesServiceListRequest struct { RolesService *RolesService header map[string]string @@ -60132,7 +58072,6 @@ func (p *RolesServiceListRequest) MustSend() *RolesServiceListResponse { } } -// // List roles. // [source] // ---- @@ -60142,18 +58081,19 @@ func (p *RolesServiceListRequest) MustSend() *RolesServiceListResponse { // [source,xml] // ---- // -// -// SuperUser -// Roles management administrator -// -// true -// false -// -// ... +// +// +// SuperUser +// Roles management administrator +// +// true +// false +// +// ... +// // // ---- // The order of the returned list of roles isn't guaranteed. -// type RolesServiceListResponse struct { roles *RoleSlice } @@ -60172,7 +58112,6 @@ func (p *RolesServiceListResponse) MustRoles() *RoleSlice { return p.roles } -// // List roles. // [source] // ---- @@ -60182,32 +58121,29 @@ func (p *RolesServiceListResponse) MustRoles() *RoleSlice { // [source,xml] // ---- // -// -// SuperUser -// Roles management administrator -// -// true -// false -// -// ... +// +// +// SuperUser +// Roles management administrator +// +// true +// false +// +// ... +// // // ---- // The order of the returned list of roles isn't guaranteed. -// func (p *RolesService) List() *RolesServiceListRequest { return &RolesServiceListRequest{RolesService: p} } -// // Sub-resource locator method, returns individual role resource on which the remainder of the URI is dispatched. -// func (op *RolesService) RoleService(id string) *RoleService { return NewRoleService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *RolesService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -60223,9 +58159,7 @@ func (op *RolesService) String() string { return fmt.Sprintf("RolesService:%s", op.path) } -// // Manages the set of scheduling policies available in the system. -// type SchedulingPoliciesService struct { BaseService } @@ -60237,9 +58171,7 @@ func NewSchedulingPoliciesService(connection *Connection, path string) *Scheduli return &result } -// // Add a new scheduling policy to the system. -// type SchedulingPoliciesServiceAddRequest struct { SchedulingPoliciesService *SchedulingPoliciesService header map[string]string @@ -60351,9 +58283,7 @@ func (p *SchedulingPoliciesServiceAddRequest) MustSend() *SchedulingPoliciesServ } } -// // Add a new scheduling policy to the system. -// type SchedulingPoliciesServiceAddResponse struct { policy *SchedulingPolicy } @@ -60372,17 +58302,13 @@ func (p *SchedulingPoliciesServiceAddResponse) MustPolicy() *SchedulingPolicy { return p.policy } -// // Add a new scheduling policy to the system. -// func (p *SchedulingPoliciesService) Add() *SchedulingPoliciesServiceAddRequest { return &SchedulingPoliciesServiceAddRequest{SchedulingPoliciesService: p} } -// // Returns the list of scheduling policies available in the system. // The order of the returned list of scheduling policies isn't guaranteed. -// type SchedulingPoliciesServiceListRequest struct { SchedulingPoliciesService *SchedulingPoliciesService header map[string]string @@ -60511,10 +58437,8 @@ func (p *SchedulingPoliciesServiceListRequest) MustSend() *SchedulingPoliciesSer } } -// // Returns the list of scheduling policies available in the system. // The order of the returned list of scheduling policies isn't guaranteed. -// type SchedulingPoliciesServiceListResponse struct { policies *SchedulingPolicySlice } @@ -60533,23 +58457,17 @@ func (p *SchedulingPoliciesServiceListResponse) MustPolicies() *SchedulingPolicy return p.policies } -// // Returns the list of scheduling policies available in the system. // The order of the returned list of scheduling policies isn't guaranteed. -// func (p *SchedulingPoliciesService) List() *SchedulingPoliciesServiceListRequest { return &SchedulingPoliciesServiceListRequest{SchedulingPoliciesService: p} } -// -// func (op *SchedulingPoliciesService) PolicyService(id string) *SchedulingPolicyService { return NewSchedulingPolicyService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *SchedulingPoliciesService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -60565,8 +58483,6 @@ func (op *SchedulingPoliciesService) String() string { return fmt.Sprintf("SchedulingPoliciesService:%s", op.path) } -// -// type SchedulingPolicyService struct { BaseService } @@ -60578,8 +58494,6 @@ func NewSchedulingPolicyService(connection *Connection, path string) *Scheduling return &result } -// -// type SchedulingPolicyServiceGetRequest struct { SchedulingPolicyService *SchedulingPolicyService header map[string]string @@ -60698,8 +58612,6 @@ func (p *SchedulingPolicyServiceGetRequest) MustSend() *SchedulingPolicyServiceG } } -// -// type SchedulingPolicyServiceGetResponse struct { policy *SchedulingPolicy } @@ -60718,14 +58630,10 @@ func (p *SchedulingPolicyServiceGetResponse) MustPolicy() *SchedulingPolicy { return p.policy } -// -// func (p *SchedulingPolicyService) Get() *SchedulingPolicyServiceGetRequest { return &SchedulingPolicyServiceGetRequest{SchedulingPolicyService: p} } -// -// type SchedulingPolicyServiceRemoveRequest struct { SchedulingPolicyService *SchedulingPolicyService header map[string]string @@ -60829,20 +58737,14 @@ func (p *SchedulingPolicyServiceRemoveRequest) MustSend() *SchedulingPolicyServi } } -// -// type SchedulingPolicyServiceRemoveResponse struct { } -// -// func (p *SchedulingPolicyService) Remove() *SchedulingPolicyServiceRemoveRequest { return &SchedulingPolicyServiceRemoveRequest{SchedulingPolicyService: p} } -// // Update the specified user defined scheduling policy in the system. -// type SchedulingPolicyServiceUpdateRequest struct { SchedulingPolicyService *SchedulingPolicyService header map[string]string @@ -60964,9 +58866,7 @@ func (p *SchedulingPolicyServiceUpdateRequest) MustSend() *SchedulingPolicyServi } } -// // Update the specified user defined scheduling policy in the system. -// type SchedulingPolicyServiceUpdateResponse struct { policy *SchedulingPolicy } @@ -60985,34 +58885,24 @@ func (p *SchedulingPolicyServiceUpdateResponse) MustPolicy() *SchedulingPolicy { return p.policy } -// // Update the specified user defined scheduling policy in the system. -// func (p *SchedulingPolicyService) Update() *SchedulingPolicyServiceUpdateRequest { return &SchedulingPolicyServiceUpdateRequest{SchedulingPolicyService: p} } -// -// func (op *SchedulingPolicyService) BalancesService() *BalancesService { return NewBalancesService(op.connection, fmt.Sprintf("%s/balances", op.path)) } -// -// func (op *SchedulingPolicyService) FiltersService() *FiltersService { return NewFiltersService(op.connection, fmt.Sprintf("%s/filters", op.path)) } -// -// func (op *SchedulingPolicyService) WeightsService() *WeightsService { return NewWeightsService(op.connection, fmt.Sprintf("%s/weights", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *SchedulingPolicyService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -61042,8 +58932,6 @@ func (op *SchedulingPolicyService) String() string { return fmt.Sprintf("SchedulingPolicyService:%s", op.path) } -// -// type SchedulingPolicyUnitService struct { BaseService } @@ -61055,8 +58943,6 @@ func NewSchedulingPolicyUnitService(connection *Connection, path string) *Schedu return &result } -// -// type SchedulingPolicyUnitServiceGetRequest struct { SchedulingPolicyUnitService *SchedulingPolicyUnitService header map[string]string @@ -61175,8 +59061,6 @@ func (p *SchedulingPolicyUnitServiceGetRequest) MustSend() *SchedulingPolicyUnit } } -// -// type SchedulingPolicyUnitServiceGetResponse struct { unit *SchedulingPolicyUnit } @@ -61195,14 +59079,10 @@ func (p *SchedulingPolicyUnitServiceGetResponse) MustUnit() *SchedulingPolicyUni return p.unit } -// -// func (p *SchedulingPolicyUnitService) Get() *SchedulingPolicyUnitServiceGetRequest { return &SchedulingPolicyUnitServiceGetRequest{SchedulingPolicyUnitService: p} } -// -// type SchedulingPolicyUnitServiceRemoveRequest struct { SchedulingPolicyUnitService *SchedulingPolicyUnitService header map[string]string @@ -61306,20 +59186,14 @@ func (p *SchedulingPolicyUnitServiceRemoveRequest) MustSend() *SchedulingPolicyU } } -// -// type SchedulingPolicyUnitServiceRemoveResponse struct { } -// -// func (p *SchedulingPolicyUnitService) Remove() *SchedulingPolicyUnitServiceRemoveRequest { return &SchedulingPolicyUnitServiceRemoveRequest{SchedulingPolicyUnitService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *SchedulingPolicyUnitService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -61331,9 +59205,7 @@ func (op *SchedulingPolicyUnitService) String() string { return fmt.Sprintf("SchedulingPolicyUnitService:%s", op.path) } -// // Manages the set of scheduling policy units available in the system. -// type SchedulingPolicyUnitsService struct { BaseService } @@ -61345,10 +59217,8 @@ func NewSchedulingPolicyUnitsService(connection *Connection, path string) *Sched return &result } -// // Returns the list of scheduling policy units available in the system. // The order of the returned list of scheduling policy units isn't guaranteed. -// type SchedulingPolicyUnitsServiceListRequest struct { SchedulingPolicyUnitsService *SchedulingPolicyUnitsService header map[string]string @@ -61477,10 +59347,8 @@ func (p *SchedulingPolicyUnitsServiceListRequest) MustSend() *SchedulingPolicyUn } } -// // Returns the list of scheduling policy units available in the system. // The order of the returned list of scheduling policy units isn't guaranteed. -// type SchedulingPolicyUnitsServiceListResponse struct { units *SchedulingPolicyUnitSlice } @@ -61499,23 +59367,17 @@ func (p *SchedulingPolicyUnitsServiceListResponse) MustUnits() *SchedulingPolicy return p.units } -// // Returns the list of scheduling policy units available in the system. // The order of the returned list of scheduling policy units isn't guaranteed. -// func (p *SchedulingPolicyUnitsService) List() *SchedulingPolicyUnitsServiceListRequest { return &SchedulingPolicyUnitsServiceListRequest{SchedulingPolicyUnitsService: p} } -// -// func (op *SchedulingPolicyUnitsService) UnitService(id string) *SchedulingPolicyUnitService { return NewSchedulingPolicyUnitService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *SchedulingPolicyUnitsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -61531,8 +59393,6 @@ func (op *SchedulingPolicyUnitsService) String() string { return fmt.Sprintf("SchedulingPolicyUnitsService:%s", op.path) } -// -// type SnapshotCdromService struct { BaseService } @@ -61544,8 +59404,6 @@ func NewSnapshotCdromService(connection *Connection, path string) *SnapshotCdrom return &result } -// -// type SnapshotCdromServiceGetRequest struct { SnapshotCdromService *SnapshotCdromService header map[string]string @@ -61654,8 +59512,6 @@ func (p *SnapshotCdromServiceGetRequest) MustSend() *SnapshotCdromServiceGetResp } } -// -// type SnapshotCdromServiceGetResponse struct { cdrom *Cdrom } @@ -61674,15 +59530,11 @@ func (p *SnapshotCdromServiceGetResponse) MustCdrom() *Cdrom { return p.cdrom } -// -// func (p *SnapshotCdromService) Get() *SnapshotCdromServiceGetRequest { return &SnapshotCdromServiceGetRequest{SnapshotCdromService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *SnapshotCdromService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -61694,9 +59546,7 @@ func (op *SnapshotCdromService) String() string { return fmt.Sprintf("SnapshotCdromService:%s", op.path) } -// // Manages the set of CD-ROM devices of a virtual machine snapshot. -// type SnapshotCdromsService struct { BaseService } @@ -61708,10 +59558,8 @@ func NewSnapshotCdromsService(connection *Connection, path string) *SnapshotCdro return &result } -// // Returns the list of CD-ROM devices of the snapshot. // The order of the returned list of CD-ROM devices isn't guaranteed. -// type SnapshotCdromsServiceListRequest struct { SnapshotCdromsService *SnapshotCdromsService header map[string]string @@ -61830,10 +59678,8 @@ func (p *SnapshotCdromsServiceListRequest) MustSend() *SnapshotCdromsServiceList } } -// // Returns the list of CD-ROM devices of the snapshot. // The order of the returned list of CD-ROM devices isn't guaranteed. -// type SnapshotCdromsServiceListResponse struct { cdroms *CdromSlice } @@ -61852,23 +59698,17 @@ func (p *SnapshotCdromsServiceListResponse) MustCdroms() *CdromSlice { return p.cdroms } -// // Returns the list of CD-ROM devices of the snapshot. // The order of the returned list of CD-ROM devices isn't guaranteed. -// func (p *SnapshotCdromsService) List() *SnapshotCdromsServiceListRequest { return &SnapshotCdromsServiceListRequest{SnapshotCdromsService: p} } -// -// func (op *SnapshotCdromsService) CdromService(id string) *SnapshotCdromService { return NewSnapshotCdromService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *SnapshotCdromsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -61884,8 +59724,6 @@ func (op *SnapshotCdromsService) String() string { return fmt.Sprintf("SnapshotCdromsService:%s", op.path) } -// -// type SnapshotDiskService struct { BaseService } @@ -61897,8 +59735,6 @@ func NewSnapshotDiskService(connection *Connection, path string) *SnapshotDiskSe return &result } -// -// type SnapshotDiskServiceGetRequest struct { SnapshotDiskService *SnapshotDiskService header map[string]string @@ -62007,8 +59843,6 @@ func (p *SnapshotDiskServiceGetRequest) MustSend() *SnapshotDiskServiceGetRespon } } -// -// type SnapshotDiskServiceGetResponse struct { disk *Disk } @@ -62027,15 +59861,11 @@ func (p *SnapshotDiskServiceGetResponse) MustDisk() *Disk { return p.disk } -// -// func (p *SnapshotDiskService) Get() *SnapshotDiskServiceGetRequest { return &SnapshotDiskServiceGetRequest{SnapshotDiskService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *SnapshotDiskService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -62047,9 +59877,7 @@ func (op *SnapshotDiskService) String() string { return fmt.Sprintf("SnapshotDiskService:%s", op.path) } -// // Manages the set of disks of an snapshot. -// type SnapshotDisksService struct { BaseService } @@ -62061,10 +59889,8 @@ func NewSnapshotDisksService(connection *Connection, path string) *SnapshotDisks return &result } -// // Returns the list of disks of the snapshot. // The order of the returned list of disks isn't guaranteed. -// type SnapshotDisksServiceListRequest struct { SnapshotDisksService *SnapshotDisksService header map[string]string @@ -62183,10 +60009,8 @@ func (p *SnapshotDisksServiceListRequest) MustSend() *SnapshotDisksServiceListRe } } -// // Returns the list of disks of the snapshot. // The order of the returned list of disks isn't guaranteed. -// type SnapshotDisksServiceListResponse struct { disks *DiskSlice } @@ -62205,23 +60029,17 @@ func (p *SnapshotDisksServiceListResponse) MustDisks() *DiskSlice { return p.disks } -// // Returns the list of disks of the snapshot. // The order of the returned list of disks isn't guaranteed. -// func (p *SnapshotDisksService) List() *SnapshotDisksServiceListRequest { return &SnapshotDisksServiceListRequest{SnapshotDisksService: p} } -// -// func (op *SnapshotDisksService) DiskService(id string) *SnapshotDiskService { return NewSnapshotDiskService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *SnapshotDisksService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -62237,8 +60055,6 @@ func (op *SnapshotDisksService) String() string { return fmt.Sprintf("SnapshotDisksService:%s", op.path) } -// -// type SnapshotNicService struct { BaseService } @@ -62250,8 +60066,6 @@ func NewSnapshotNicService(connection *Connection, path string) *SnapshotNicServ return &result } -// -// type SnapshotNicServiceGetRequest struct { SnapshotNicService *SnapshotNicService header map[string]string @@ -62360,8 +60174,6 @@ func (p *SnapshotNicServiceGetRequest) MustSend() *SnapshotNicServiceGetResponse } } -// -// type SnapshotNicServiceGetResponse struct { nic *Nic } @@ -62380,15 +60192,11 @@ func (p *SnapshotNicServiceGetResponse) MustNic() *Nic { return p.nic } -// -// func (p *SnapshotNicService) Get() *SnapshotNicServiceGetRequest { return &SnapshotNicServiceGetRequest{SnapshotNicService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *SnapshotNicService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -62400,9 +60208,7 @@ func (op *SnapshotNicService) String() string { return fmt.Sprintf("SnapshotNicService:%s", op.path) } -// // Manages the set of NICs of an snapshot. -// type SnapshotNicsService struct { BaseService } @@ -62414,10 +60220,8 @@ func NewSnapshotNicsService(connection *Connection, path string) *SnapshotNicsSe return &result } -// // Returns the list of NICs of the snapshot. // The order of the returned list of NICs isn't guaranteed. -// type SnapshotNicsServiceListRequest struct { SnapshotNicsService *SnapshotNicsService header map[string]string @@ -62536,10 +60340,8 @@ func (p *SnapshotNicsServiceListRequest) MustSend() *SnapshotNicsServiceListResp } } -// // Returns the list of NICs of the snapshot. // The order of the returned list of NICs isn't guaranteed. -// type SnapshotNicsServiceListResponse struct { nics *NicSlice } @@ -62558,23 +60360,17 @@ func (p *SnapshotNicsServiceListResponse) MustNics() *NicSlice { return p.nics } -// // Returns the list of NICs of the snapshot. // The order of the returned list of NICs isn't guaranteed. -// func (p *SnapshotNicsService) List() *SnapshotNicsServiceListRequest { return &SnapshotNicsServiceListRequest{SnapshotNicsService: p} } -// -// func (op *SnapshotNicsService) NicService(id string) *SnapshotNicService { return NewSnapshotNicService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *SnapshotNicsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -62590,8 +60386,6 @@ func (op *SnapshotNicsService) String() string { return fmt.Sprintf("SnapshotNicsService:%s", op.path) } -// -// type SnapshotService struct { BaseService } @@ -62603,8 +60397,6 @@ func NewSnapshotService(connection *Connection, path string) *SnapshotService { return &result } -// -// type SnapshotServiceGetRequest struct { SnapshotService *SnapshotService header map[string]string @@ -62713,8 +60505,6 @@ func (p *SnapshotServiceGetRequest) MustSend() *SnapshotServiceGetResponse { } } -// -// type SnapshotServiceGetResponse struct { snapshot *Snapshot } @@ -62733,14 +60523,10 @@ func (p *SnapshotServiceGetResponse) MustSnapshot() *Snapshot { return p.snapshot } -// -// func (p *SnapshotService) Get() *SnapshotServiceGetRequest { return &SnapshotServiceGetRequest{SnapshotService: p} } -// -// type SnapshotServiceRemoveRequest struct { SnapshotService *SnapshotService header map[string]string @@ -62854,18 +60640,13 @@ func (p *SnapshotServiceRemoveRequest) MustSend() *SnapshotServiceRemoveResponse } } -// -// type SnapshotServiceRemoveResponse struct { } -// -// func (p *SnapshotService) Remove() *SnapshotServiceRemoveRequest { return &SnapshotServiceRemoveRequest{SnapshotService: p} } -// // Restores a virtual machine snapshot. // For example, to restore the snapshot with identifier `456` of virtual machine with identifier `123` send a // request like this: @@ -62879,7 +60660,6 @@ func (p *SnapshotService) Remove() *SnapshotServiceRemoveRequest { // // ---- // NOTE: Confirm that the commit operation is finished and the virtual machine is down before running the virtual machine. -// type SnapshotServiceRestoreRequest struct { SnapshotService *SnapshotService header map[string]string @@ -63016,7 +60796,6 @@ func (p *SnapshotServiceRestoreRequest) MustSend() *SnapshotServiceRestoreRespon } } -// // Restores a virtual machine snapshot. // For example, to restore the snapshot with identifier `456` of virtual machine with identifier `123` send a // request like this: @@ -63030,11 +60809,9 @@ func (p *SnapshotServiceRestoreRequest) MustSend() *SnapshotServiceRestoreRespon // // ---- // NOTE: Confirm that the commit operation is finished and the virtual machine is down before running the virtual machine. -// type SnapshotServiceRestoreResponse struct { } -// // Restores a virtual machine snapshot. // For example, to restore the snapshot with identifier `456` of virtual machine with identifier `123` send a // request like this: @@ -63048,32 +60825,23 @@ type SnapshotServiceRestoreResponse struct { // // ---- // NOTE: Confirm that the commit operation is finished and the virtual machine is down before running the virtual machine. -// func (p *SnapshotService) Restore() *SnapshotServiceRestoreRequest { return &SnapshotServiceRestoreRequest{SnapshotService: p} } -// -// func (op *SnapshotService) CdromsService() *SnapshotCdromsService { return NewSnapshotCdromsService(op.connection, fmt.Sprintf("%s/cdroms", op.path)) } -// -// func (op *SnapshotService) DisksService() *SnapshotDisksService { return NewSnapshotDisksService(op.connection, fmt.Sprintf("%s/disks", op.path)) } -// -// func (op *SnapshotService) NicsService() *SnapshotNicsService { return NewSnapshotNicsService(op.connection, fmt.Sprintf("%s/nics", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *SnapshotService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -63103,9 +60871,7 @@ func (op *SnapshotService) String() string { return fmt.Sprintf("SnapshotService:%s", op.path) } -// // Manages the set of snapshots of a storage domain or virtual machine. -// type SnapshotsService struct { BaseService } @@ -63117,7 +60883,6 @@ func NewSnapshotsService(connection *Connection, path string) *SnapshotsService return &result } -// // Creates a virtual machine snapshot. // For example, to create a new snapshot for virtual machine `123` send a request like this: // [source] @@ -63128,7 +60893,9 @@ func NewSnapshotsService(connection *Connection, path string) *SnapshotsService // [source,xml] // ---- // -// My snapshot +// +// My snapshot +// // // ---- // For including only a sub-set of disks in the snapshots, add `disk_attachments` element to the @@ -63143,14 +60910,16 @@ func NewSnapshotsService(connection *Connection, path string) *SnapshotsService // [source,xml] // ---- // -// My snapshot -// -// -// -// 456 -// -// -// +// +// My snapshot +// +// +// +// 456 +// +// +// +// // // ---- // [IMPORTANT] @@ -63163,12 +60932,13 @@ func NewSnapshotsService(connection *Connection, path string) *SnapshotsService // [source,xml] // ---- // -// My snapshot -// false +// +// My snapshot +// false +// // // ---- // ==== -// type SnapshotsServiceAddRequest struct { SnapshotsService *SnapshotsService header map[string]string @@ -63280,7 +61050,6 @@ func (p *SnapshotsServiceAddRequest) MustSend() *SnapshotsServiceAddResponse { } } -// // Creates a virtual machine snapshot. // For example, to create a new snapshot for virtual machine `123` send a request like this: // [source] @@ -63291,7 +61060,9 @@ func (p *SnapshotsServiceAddRequest) MustSend() *SnapshotsServiceAddResponse { // [source,xml] // ---- // -// My snapshot +// +// My snapshot +// // // ---- // For including only a sub-set of disks in the snapshots, add `disk_attachments` element to the @@ -63306,14 +61077,16 @@ func (p *SnapshotsServiceAddRequest) MustSend() *SnapshotsServiceAddResponse { // [source,xml] // ---- // -// My snapshot -// -// -// -// 456 -// -// -// +// +// My snapshot +// +// +// +// 456 +// +// +// +// // // ---- // [IMPORTANT] @@ -63326,12 +61099,13 @@ func (p *SnapshotsServiceAddRequest) MustSend() *SnapshotsServiceAddResponse { // [source,xml] // ---- // -// My snapshot -// false +// +// My snapshot +// false +// // // ---- // ==== -// type SnapshotsServiceAddResponse struct { snapshot *Snapshot } @@ -63350,7 +61124,6 @@ func (p *SnapshotsServiceAddResponse) MustSnapshot() *Snapshot { return p.snapshot } -// // Creates a virtual machine snapshot. // For example, to create a new snapshot for virtual machine `123` send a request like this: // [source] @@ -63361,7 +61134,9 @@ func (p *SnapshotsServiceAddResponse) MustSnapshot() *Snapshot { // [source,xml] // ---- // -// My snapshot +// +// My snapshot +// // // ---- // For including only a sub-set of disks in the snapshots, add `disk_attachments` element to the @@ -63376,14 +61151,16 @@ func (p *SnapshotsServiceAddResponse) MustSnapshot() *Snapshot { // [source,xml] // ---- // -// My snapshot -// -// -// -// 456 -// -// -// +// +// My snapshot +// +// +// +// 456 +// +// +// +// // // ---- // [IMPORTANT] @@ -63396,20 +61173,19 @@ func (p *SnapshotsServiceAddResponse) MustSnapshot() *Snapshot { // [source,xml] // ---- // -// My snapshot -// false +// +// My snapshot +// false +// // // ---- // ==== -// func (p *SnapshotsService) Add() *SnapshotsServiceAddRequest { return &SnapshotsServiceAddRequest{SnapshotsService: p} } -// // Returns the list of snapshots of the storage domain or virtual machine. // The order of the returned list of snapshots isn't guaranteed. -// type SnapshotsServiceListRequest struct { SnapshotsService *SnapshotsService header map[string]string @@ -63538,10 +61314,8 @@ func (p *SnapshotsServiceListRequest) MustSend() *SnapshotsServiceListResponse { } } -// // Returns the list of snapshots of the storage domain or virtual machine. // The order of the returned list of snapshots isn't guaranteed. -// type SnapshotsServiceListResponse struct { snapshots *SnapshotSlice } @@ -63560,23 +61334,17 @@ func (p *SnapshotsServiceListResponse) MustSnapshots() *SnapshotSlice { return p.snapshots } -// // Returns the list of snapshots of the storage domain or virtual machine. // The order of the returned list of snapshots isn't guaranteed. -// func (p *SnapshotsService) List() *SnapshotsServiceListRequest { return &SnapshotsServiceListRequest{SnapshotsService: p} } -// -// func (op *SnapshotsService) SnapshotService(id string) *SnapshotService { return NewSnapshotService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *SnapshotsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -63592,8 +61360,6 @@ func (op *SnapshotsService) String() string { return fmt.Sprintf("SnapshotsService:%s", op.path) } -// -// type StatisticService struct { BaseService } @@ -63605,8 +61371,6 @@ func NewStatisticService(connection *Connection, path string) *StatisticService return &result } -// -// type StatisticServiceGetRequest struct { StatisticService *StatisticService header map[string]string @@ -63715,8 +61479,6 @@ func (p *StatisticServiceGetRequest) MustSend() *StatisticServiceGetResponse { } } -// -// type StatisticServiceGetResponse struct { statistic *Statistic } @@ -63735,15 +61497,11 @@ func (p *StatisticServiceGetResponse) MustStatistic() *Statistic { return p.statistic } -// -// func (p *StatisticService) Get() *StatisticServiceGetRequest { return &StatisticServiceGetRequest{StatisticService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *StatisticService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -63755,8 +61513,6 @@ func (op *StatisticService) String() string { return fmt.Sprintf("StatisticService:%s", op.path) } -// -// type StatisticsService struct { BaseService } @@ -63768,7 +61524,6 @@ func NewStatisticsService(connection *Connection, path string) *StatisticsServic return &result } -// // Retrieves a list of statistics. // For example, to retrieve the statistics for virtual machine `123` send a // request like this: @@ -63780,20 +61535,22 @@ func NewStatisticsService(connection *Connection, path string) *StatisticsServic // [source,xml] // ---- // -// -// memory.installed -// Total memory configured -// gauge -// integer -// bytes -// -// -// 1073741824 -// -// -// -// -// ... +// +// +// memory.installed +// Total memory configured +// gauge +// integer +// bytes +// +// +// 1073741824 +// +// +// +// +// ... +// // // ---- // Just a single part of the statistics can be retrieved by specifying its id at the end of the URI. That means: @@ -63805,21 +61562,22 @@ func NewStatisticsService(connection *Connection, path string) *StatisticsServic // [source,xml] // ---- // -// memory.installed -// Total memory configured -// gauge -// integer -// bytes -// -// -// 1073741824 -// -// -// +// +// memory.installed +// Total memory configured +// gauge +// integer +// bytes +// +// +// 1073741824 +// +// +// +// // // ---- // The order of the returned list of statistics isn't guaranteed. -// type StatisticsServiceListRequest struct { StatisticsService *StatisticsService header map[string]string @@ -63938,7 +61696,6 @@ func (p *StatisticsServiceListRequest) MustSend() *StatisticsServiceListResponse } } -// // Retrieves a list of statistics. // For example, to retrieve the statistics for virtual machine `123` send a // request like this: @@ -63950,20 +61707,22 @@ func (p *StatisticsServiceListRequest) MustSend() *StatisticsServiceListResponse // [source,xml] // ---- // -// -// memory.installed -// Total memory configured -// gauge -// integer -// bytes -// -// -// 1073741824 -// -// -// -// -// ... +// +// +// memory.installed +// Total memory configured +// gauge +// integer +// bytes +// +// +// 1073741824 +// +// +// +// +// ... +// // // ---- // Just a single part of the statistics can be retrieved by specifying its id at the end of the URI. That means: @@ -63975,21 +61734,22 @@ func (p *StatisticsServiceListRequest) MustSend() *StatisticsServiceListResponse // [source,xml] // ---- // -// memory.installed -// Total memory configured -// gauge -// integer -// bytes -// -// -// 1073741824 -// -// -// +// +// memory.installed +// Total memory configured +// gauge +// integer +// bytes +// +// +// 1073741824 +// +// +// +// // // ---- // The order of the returned list of statistics isn't guaranteed. -// type StatisticsServiceListResponse struct { statistics *StatisticSlice } @@ -64008,7 +61768,6 @@ func (p *StatisticsServiceListResponse) MustStatistics() *StatisticSlice { return p.statistics } -// // Retrieves a list of statistics. // For example, to retrieve the statistics for virtual machine `123` send a // request like this: @@ -64020,20 +61779,22 @@ func (p *StatisticsServiceListResponse) MustStatistics() *StatisticSlice { // [source,xml] // ---- // -// -// memory.installed -// Total memory configured -// gauge -// integer -// bytes -// -// -// 1073741824 -// -// -// -// -// ... +// +// +// memory.installed +// Total memory configured +// gauge +// integer +// bytes +// +// +// 1073741824 +// +// +// +// +// ... +// // // ---- // Just a single part of the statistics can be retrieved by specifying its id at the end of the URI. That means: @@ -64045,34 +61806,31 @@ func (p *StatisticsServiceListResponse) MustStatistics() *StatisticSlice { // [source,xml] // ---- // -// memory.installed -// Total memory configured -// gauge -// integer -// bytes -// -// -// 1073741824 -// -// -// +// +// memory.installed +// Total memory configured +// gauge +// integer +// bytes +// +// +// 1073741824 +// +// +// +// // // ---- // The order of the returned list of statistics isn't guaranteed. -// func (p *StatisticsService) List() *StatisticsServiceListRequest { return &StatisticsServiceListRequest{StatisticsService: p} } -// -// func (op *StatisticsService) StatisticService(id string) *StatisticService { return NewStatisticService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *StatisticsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -64088,9 +61846,7 @@ func (op *StatisticsService) String() string { return fmt.Sprintf("StatisticsService:%s", op.path) } -// // A service to manage a step. -// type StepService struct { BaseService } @@ -64102,7 +61858,6 @@ func NewStepService(connection *Connection, path string) *StepService { return &result } -// // Marks an external step execution as ended. // For example, to terminate a step with identifier `456` which belongs to a `job` with identifier `123` send the // following request: @@ -64114,11 +61869,12 @@ func NewStepService(connection *Connection, path string) *StepService { // [source,xml] // ---- // -// true -// true +// +// true +// true +// // // ---- -// type StepServiceEndRequest struct { StepService *StepService header map[string]string @@ -64249,7 +62005,6 @@ func (p *StepServiceEndRequest) MustSend() *StepServiceEndResponse { } } -// // Marks an external step execution as ended. // For example, to terminate a step with identifier `456` which belongs to a `job` with identifier `123` send the // following request: @@ -64261,15 +62016,15 @@ func (p *StepServiceEndRequest) MustSend() *StepServiceEndResponse { // [source,xml] // ---- // -// true -// true +// +// true +// true +// // // ---- -// type StepServiceEndResponse struct { } -// // Marks an external step execution as ended. // For example, to terminate a step with identifier `456` which belongs to a `job` with identifier `123` send the // following request: @@ -64281,16 +62036,16 @@ type StepServiceEndResponse struct { // [source,xml] // ---- // -// true -// true +// +// true +// true +// // // ---- -// func (p *StepService) End() *StepServiceEndRequest { return &StepServiceEndRequest{StepService: p} } -// // Retrieves a step. // [source] // ---- @@ -64300,20 +62055,21 @@ func (p *StepService) End() *StepServiceEndRequest { // [source,xml] // ---- // -// -// -// -// Validating -// 2016-12-12T23:07:26.627+02:00 -// false -// 0 -// 2016-12-12T23:07:26.605+02:00 -// finished -// validating -// +// +// +// +// +// Validating +// 2016-12-12T23:07:26.627+02:00 +// false +// 0 +// 2016-12-12T23:07:26.605+02:00 +// finished +// validating +// +// // // ---- -// type StepServiceGetRequest struct { StepService *StepService header map[string]string @@ -64422,7 +62178,6 @@ func (p *StepServiceGetRequest) MustSend() *StepServiceGetResponse { } } -// // Retrieves a step. // [source] // ---- @@ -64432,20 +62187,21 @@ func (p *StepServiceGetRequest) MustSend() *StepServiceGetResponse { // [source,xml] // ---- // -// -// -// -// Validating -// 2016-12-12T23:07:26.627+02:00 -// false -// 0 -// 2016-12-12T23:07:26.605+02:00 -// finished -// validating -// +// +// +// +// +// Validating +// 2016-12-12T23:07:26.627+02:00 +// false +// 0 +// 2016-12-12T23:07:26.605+02:00 +// finished +// validating +// +// // // ---- -// type StepServiceGetResponse struct { step *Step } @@ -64464,7 +62220,6 @@ func (p *StepServiceGetResponse) MustStep() *Step { return p.step } -// // Retrieves a step. // [source] // ---- @@ -64474,33 +62229,30 @@ func (p *StepServiceGetResponse) MustStep() *Step { // [source,xml] // ---- // -// -// -// -// Validating -// 2016-12-12T23:07:26.627+02:00 -// false -// 0 -// 2016-12-12T23:07:26.605+02:00 -// finished -// validating -// +// +// +// +// +// Validating +// 2016-12-12T23:07:26.627+02:00 +// false +// 0 +// 2016-12-12T23:07:26.605+02:00 +// finished +// validating +// +// // // ---- -// func (p *StepService) Get() *StepServiceGetRequest { return &StepServiceGetRequest{StepService: p} } -// -// func (op *StepService) StatisticsService() *StatisticsService { return NewStatisticsService(op.connection, fmt.Sprintf("%s/statistics", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *StepService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -64518,9 +62270,7 @@ func (op *StepService) String() string { return fmt.Sprintf("StepService:%s", op.path) } -// // A service to manage steps. -// type StepsService struct { BaseService } @@ -64532,7 +62282,6 @@ func NewStepsService(connection *Connection, path string) *StepsService { return &result } -// // Add an external step to an existing job or to an existing step. // For example, to add a step to `job` with identifier `123` send the // following request: @@ -64544,30 +62293,33 @@ func NewStepsService(connection *Connection, path string) *StepsService { // [source,xml] // ---- // -// Validating -// 2016-12-12T23:07:26.605+02:00 -// started -// validating +// +// Validating +// 2016-12-12T23:07:26.605+02:00 +// started +// validating +// // // ---- // The response should look like: // [source,xml] // ---- // -// -// -// -// Validating -// -// true -// 2 -// 2016-12-13T01:06:15.380+02:00 -// started -// validating -// +// +// +// +// +// Validating +// +// true +// 2 +// 2016-12-13T01:06:15.380+02:00 +// started +// validating +// +// // // ---- -// type StepsServiceAddRequest struct { StepsService *StepsService header map[string]string @@ -64679,7 +62431,6 @@ func (p *StepsServiceAddRequest) MustSend() *StepsServiceAddResponse { } } -// // Add an external step to an existing job or to an existing step. // For example, to add a step to `job` with identifier `123` send the // following request: @@ -64691,30 +62442,33 @@ func (p *StepsServiceAddRequest) MustSend() *StepsServiceAddResponse { // [source,xml] // ---- // -// Validating -// 2016-12-12T23:07:26.605+02:00 -// started -// validating +// +// Validating +// 2016-12-12T23:07:26.605+02:00 +// started +// validating +// // // ---- // The response should look like: // [source,xml] // ---- // -// -// -// -// Validating -// -// true -// 2 -// 2016-12-13T01:06:15.380+02:00 -// started -// validating -// +// +// +// +// +// Validating +// +// true +// 2 +// 2016-12-13T01:06:15.380+02:00 +// started +// validating +// +// // // ---- -// type StepsServiceAddResponse struct { step *Step } @@ -64733,7 +62487,6 @@ func (p *StepsServiceAddResponse) MustStep() *Step { return p.step } -// // Add an external step to an existing job or to an existing step. // For example, to add a step to `job` with identifier `123` send the // following request: @@ -64745,35 +62498,37 @@ func (p *StepsServiceAddResponse) MustStep() *Step { // [source,xml] // ---- // -// Validating -// 2016-12-12T23:07:26.605+02:00 -// started -// validating +// +// Validating +// 2016-12-12T23:07:26.605+02:00 +// started +// validating +// // // ---- // The response should look like: // [source,xml] // ---- // -// -// -// -// Validating -// -// true -// 2 -// 2016-12-13T01:06:15.380+02:00 -// started -// validating -// +// +// +// +// +// Validating +// +// true +// 2 +// 2016-12-13T01:06:15.380+02:00 +// started +// validating +// +// // // ---- -// func (p *StepsService) Add() *StepsServiceAddRequest { return &StepsServiceAddRequest{StepsService: p} } -// // Retrieves the representation of the steps. // [source] // ---- @@ -64783,24 +62538,25 @@ func (p *StepsService) Add() *StepsServiceAddRequest { // [source,xml] // ---- // -// -// -// -// -// Validating -// -// true -// 2 -// 2016-12-13T01:06:15.380+02:00 -// started -// validating -// -// -// ... +// +// +// +// +// +// Validating +// +// true +// 2 +// 2016-12-13T01:06:15.380+02:00 +// started +// validating +// +// +// ... +// // // ---- // The order of the returned list of steps isn't guaranteed. -// type StepsServiceListRequest struct { StepsService *StepsService header map[string]string @@ -64919,7 +62675,6 @@ func (p *StepsServiceListRequest) MustSend() *StepsServiceListResponse { } } -// // Retrieves the representation of the steps. // [source] // ---- @@ -64929,24 +62684,25 @@ func (p *StepsServiceListRequest) MustSend() *StepsServiceListResponse { // [source,xml] // ---- // -// -// -// -// -// Validating -// -// true -// 2 -// 2016-12-13T01:06:15.380+02:00 -// started -// validating -// -// -// ... +// +// +// +// +// +// Validating +// +// true +// 2 +// 2016-12-13T01:06:15.380+02:00 +// started +// validating +// +// +// ... +// // // ---- // The order of the returned list of steps isn't guaranteed. -// type StepsServiceListResponse struct { steps *StepSlice } @@ -64965,7 +62721,6 @@ func (p *StepsServiceListResponse) MustSteps() *StepSlice { return p.steps } -// // Retrieves the representation of the steps. // [source] // ---- @@ -64975,38 +62730,35 @@ func (p *StepsServiceListResponse) MustSteps() *StepSlice { // [source,xml] // ---- // -// -// -// -// -// Validating -// -// true -// 2 -// 2016-12-13T01:06:15.380+02:00 -// started -// validating -// -// -// ... +// +// +// +// +// +// Validating +// +// true +// 2 +// 2016-12-13T01:06:15.380+02:00 +// started +// validating +// +// +// ... +// // // ---- // The order of the returned list of steps isn't guaranteed. -// func (p *StepsService) List() *StepsServiceListRequest { return &StepsServiceListRequest{StepsService: p} } -// // Reference to the step service. -// func (op *StepsService) StepService(id string) *StepService { return NewStepService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *StepsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -65022,8 +62774,6 @@ func (op *StepsService) String() string { return fmt.Sprintf("StepsService:%s", op.path) } -// -// type StorageDomainContentDiskService struct { BaseService } @@ -65035,8 +62785,6 @@ func NewStorageDomainContentDiskService(connection *Connection, path string) *St return &result } -// -// type StorageDomainContentDiskServiceGetRequest struct { StorageDomainContentDiskService *StorageDomainContentDiskService header map[string]string @@ -65155,8 +62903,6 @@ func (p *StorageDomainContentDiskServiceGetRequest) MustSend() *StorageDomainCon } } -// -// type StorageDomainContentDiskServiceGetResponse struct { disk *Disk } @@ -65175,15 +62921,11 @@ func (p *StorageDomainContentDiskServiceGetResponse) MustDisk() *Disk { return p.disk } -// -// func (p *StorageDomainContentDiskService) Get() *StorageDomainContentDiskServiceGetRequest { return &StorageDomainContentDiskServiceGetRequest{StorageDomainContentDiskService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *StorageDomainContentDiskService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -65195,9 +62937,7 @@ func (op *StorageDomainContentDiskService) String() string { return fmt.Sprintf("StorageDomainContentDiskService:%s", op.path) } -// // Manages the set of disks available in a storage domain. -// type StorageDomainContentDisksService struct { BaseService } @@ -65209,11 +62949,9 @@ func NewStorageDomainContentDisksService(connection *Connection, path string) *S return &result } -// // Returns the list of disks available in the storage domain. // The order of the returned list of disks is guaranteed only if the `sortby` clause is included in // the `search` parameter. -// type StorageDomainContentDisksServiceListRequest struct { StorageDomainContentDisksService *StorageDomainContentDisksService header map[string]string @@ -65352,11 +63090,9 @@ func (p *StorageDomainContentDisksServiceListRequest) MustSend() *StorageDomainC } } -// // Returns the list of disks available in the storage domain. // The order of the returned list of disks is guaranteed only if the `sortby` clause is included in // the `search` parameter. -// type StorageDomainContentDisksServiceListResponse struct { disks *DiskSlice } @@ -65375,24 +63111,18 @@ func (p *StorageDomainContentDisksServiceListResponse) MustDisks() *DiskSlice { return p.disks } -// // Returns the list of disks available in the storage domain. // The order of the returned list of disks is guaranteed only if the `sortby` clause is included in // the `search` parameter. -// func (p *StorageDomainContentDisksService) List() *StorageDomainContentDisksServiceListRequest { return &StorageDomainContentDisksServiceListRequest{StorageDomainContentDisksService: p} } -// -// func (op *StorageDomainContentDisksService) DiskService(id string) *StorageDomainContentDiskService { return NewStorageDomainContentDiskService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *StorageDomainContentDisksService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -65408,13 +63138,11 @@ func (op *StorageDomainContentDisksService) String() string { return fmt.Sprintf("StorageDomainContentDisksService:%s", op.path) } -// // Manages a single disk available in a storage domain. // IMPORTANT: Since version 4.2 of the engine this service is intended only to list disks available in the storage // domain, and to register unregistered disks. All the other operations, like copying a disk, moving a disk, etc, have // been deprecated and will be removed in the future. To perform those operations use the <>, or the <>. -// type StorageDomainDiskService struct { BaseService } @@ -65426,12 +63154,10 @@ func NewStorageDomainDiskService(connection *Connection, path string) *StorageDo return &result } -// // Copies a disk to the specified storage domain. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To copy a disk use the <> // operation of the service that manages that disk. -// type StorageDomainDiskServiceCopyRequest struct { StorageDomainDiskService *StorageDomainDiskService header map[string]string @@ -65549,31 +63275,25 @@ func (p *StorageDomainDiskServiceCopyRequest) MustSend() *StorageDomainDiskServi } } -// // Copies a disk to the specified storage domain. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To copy a disk use the <> // operation of the service that manages that disk. -// type StorageDomainDiskServiceCopyResponse struct { } -// // Copies a disk to the specified storage domain. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To copy a disk use the <> // operation of the service that manages that disk. -// func (p *StorageDomainDiskService) Copy() *StorageDomainDiskServiceCopyRequest { return &StorageDomainDiskServiceCopyRequest{StorageDomainDiskService: p} } -// // Exports a disk to an export storage domain. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To export a disk use the <> // operation of the service that manages that disk. -// type StorageDomainDiskServiceExportRequest struct { StorageDomainDiskService *StorageDomainDiskService header map[string]string @@ -65684,28 +63404,22 @@ func (p *StorageDomainDiskServiceExportRequest) MustSend() *StorageDomainDiskSer } } -// // Exports a disk to an export storage domain. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To export a disk use the <> // operation of the service that manages that disk. -// type StorageDomainDiskServiceExportResponse struct { } -// // Exports a disk to an export storage domain. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To export a disk use the <> // operation of the service that manages that disk. -// func (p *StorageDomainDiskService) Export() *StorageDomainDiskServiceExportRequest { return &StorageDomainDiskServiceExportRequest{StorageDomainDiskService: p} } -// // Retrieves the description of the disk. -// type StorageDomainDiskServiceGetRequest struct { StorageDomainDiskService *StorageDomainDiskService header map[string]string @@ -65814,9 +63528,7 @@ func (p *StorageDomainDiskServiceGetRequest) MustSend() *StorageDomainDiskServic } } -// // Retrieves the description of the disk. -// type StorageDomainDiskServiceGetResponse struct { disk *Disk } @@ -65835,19 +63547,15 @@ func (p *StorageDomainDiskServiceGetResponse) MustDisk() *Disk { return p.disk } -// // Retrieves the description of the disk. -// func (p *StorageDomainDiskService) Get() *StorageDomainDiskServiceGetRequest { return &StorageDomainDiskServiceGetRequest{StorageDomainDiskService: p} } -// // Moves a disk to another storage domain. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To move a disk use the <> // operation of the service that manages that disk. -// type StorageDomainDiskServiceMoveRequest struct { StorageDomainDiskService *StorageDomainDiskService header map[string]string @@ -65976,31 +63684,25 @@ func (p *StorageDomainDiskServiceMoveRequest) MustSend() *StorageDomainDiskServi } } -// // Moves a disk to another storage domain. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To move a disk use the <> // operation of the service that manages that disk. -// type StorageDomainDiskServiceMoveResponse struct { } -// // Moves a disk to another storage domain. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To move a disk use the <> // operation of the service that manages that disk. -// func (p *StorageDomainDiskService) Move() *StorageDomainDiskServiceMoveRequest { return &StorageDomainDiskServiceMoveRequest{StorageDomainDiskService: p} } -// // Reduces the size of the disk image. // Invokes _reduce_ on the logical volume (i.e. this is only applicable for block storage domains). // This is applicable for floating disks and disks attached to non-running virtual machines. // There is no need to specify the size as the optimal size is calculated automatically. -// type StorageDomainDiskServiceReduceRequest struct { StorageDomainDiskService *StorageDomainDiskService header map[string]string @@ -66113,31 +63815,25 @@ func (p *StorageDomainDiskServiceReduceRequest) MustSend() *StorageDomainDiskSer } } -// // Reduces the size of the disk image. // Invokes _reduce_ on the logical volume (i.e. this is only applicable for block storage domains). // This is applicable for floating disks and disks attached to non-running virtual machines. // There is no need to specify the size as the optimal size is calculated automatically. -// type StorageDomainDiskServiceReduceResponse struct { } -// // Reduces the size of the disk image. // Invokes _reduce_ on the logical volume (i.e. this is only applicable for block storage domains). // This is applicable for floating disks and disks attached to non-running virtual machines. // There is no need to specify the size as the optimal size is calculated automatically. -// func (p *StorageDomainDiskService) Reduce() *StorageDomainDiskServiceReduceRequest { return &StorageDomainDiskServiceReduceRequest{StorageDomainDiskService: p} } -// // Removes a disk. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To remove a disk use the <> // operation of the service that manages that disk. -// type StorageDomainDiskServiceRemoveRequest struct { StorageDomainDiskService *StorageDomainDiskService header map[string]string @@ -66231,31 +63927,25 @@ func (p *StorageDomainDiskServiceRemoveRequest) MustSend() *StorageDomainDiskSer } } -// // Removes a disk. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To remove a disk use the <> // operation of the service that manages that disk. -// type StorageDomainDiskServiceRemoveResponse struct { } -// // Removes a disk. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To remove a disk use the <> // operation of the service that manages that disk. -// func (p *StorageDomainDiskService) Remove() *StorageDomainDiskServiceRemoveRequest { return &StorageDomainDiskServiceRemoveRequest{StorageDomainDiskService: p} } -// // Sparsify the disk. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To remove a disk use the <> // operation of the service that manages that disk. -// type StorageDomainDiskServiceSparsifyRequest struct { StorageDomainDiskService *StorageDomainDiskService header map[string]string @@ -66359,31 +64049,25 @@ func (p *StorageDomainDiskServiceSparsifyRequest) MustSend() *StorageDomainDiskS } } -// // Sparsify the disk. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To remove a disk use the <> // operation of the service that manages that disk. -// type StorageDomainDiskServiceSparsifyResponse struct { } -// // Sparsify the disk. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To remove a disk use the <> // operation of the service that manages that disk. -// func (p *StorageDomainDiskService) Sparsify() *StorageDomainDiskServiceSparsifyRequest { return &StorageDomainDiskServiceSparsifyRequest{StorageDomainDiskService: p} } -// // Updates the disk. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To update a disk use the // <> operation of the service that manages that disk. -// type StorageDomainDiskServiceUpdateRequest struct { StorageDomainDiskService *StorageDomainDiskService header map[string]string @@ -66495,12 +64179,10 @@ func (p *StorageDomainDiskServiceUpdateRequest) MustSend() *StorageDomainDiskSer } } -// // Updates the disk. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To update a disk use the // <> operation of the service that manages that disk. -// type StorageDomainDiskServiceUpdateResponse struct { disk *Disk } @@ -66519,32 +64201,24 @@ func (p *StorageDomainDiskServiceUpdateResponse) MustDisk() *Disk { return p.disk } -// // Updates the disk. // IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To update a disk use the // <> operation of the service that manages that disk. -// func (p *StorageDomainDiskService) Update() *StorageDomainDiskServiceUpdateRequest { return &StorageDomainDiskServiceUpdateRequest{StorageDomainDiskService: p} } -// // Reference to the service that manages the permissions assigned to the disk. -// func (op *StorageDomainDiskService) PermissionsService() *AssignedPermissionsService { return NewAssignedPermissionsService(op.connection, fmt.Sprintf("%s/permissions", op.path)) } -// -// func (op *StorageDomainDiskService) StatisticsService() *StatisticsService { return NewStatisticsService(op.connection, fmt.Sprintf("%s/statistics", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *StorageDomainDiskService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -66568,9 +64242,7 @@ func (op *StorageDomainDiskService) String() string { return fmt.Sprintf("StorageDomainDiskService:%s", op.path) } -// // Manages the collection of disks available inside a specific storage domain. -// type StorageDomainDisksService struct { BaseService } @@ -66582,14 +64254,12 @@ func NewStorageDomainDisksService(connection *Connection, path string) *StorageD return &result } -// // Adds or registers a disk. // IMPORTANT: Since version 4.2 of the {engine-name} this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To add a new disk use the <> // operation of the service that manages the disks of the system. To register an unregistered disk use the // <> operation of the service that manages // that disk. -// type StorageDomainDisksServiceAddRequest struct { StorageDomainDisksService *StorageDomainDisksService header map[string]string @@ -66711,14 +64381,12 @@ func (p *StorageDomainDisksServiceAddRequest) MustSend() *StorageDomainDisksServ } } -// // Adds or registers a disk. // IMPORTANT: Since version 4.2 of the {engine-name} this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To add a new disk use the <> // operation of the service that manages the disks of the system. To register an unregistered disk use the // <> operation of the service that manages // that disk. -// type StorageDomainDisksServiceAddResponse struct { disk *Disk } @@ -66737,22 +64405,18 @@ func (p *StorageDomainDisksServiceAddResponse) MustDisk() *Disk { return p.disk } -// // Adds or registers a disk. // IMPORTANT: Since version 4.2 of the {engine-name} this operation is deprecated, and preserved only for backwards // compatibility. It will be removed in the future. To add a new disk use the <> // operation of the service that manages the disks of the system. To register an unregistered disk use the // <> operation of the service that manages // that disk. -// func (p *StorageDomainDisksService) Add() *StorageDomainDisksServiceAddRequest { return &StorageDomainDisksServiceAddRequest{StorageDomainDisksService: p} } -// // Retrieves the list of disks that are available in the storage domain. // The order of the returned list of disks is not guaranteed. -// type StorageDomainDisksServiceListRequest struct { StorageDomainDisksService *StorageDomainDisksService header map[string]string @@ -66881,10 +64545,8 @@ func (p *StorageDomainDisksServiceListRequest) MustSend() *StorageDomainDisksSer } } -// // Retrieves the list of disks that are available in the storage domain. // The order of the returned list of disks is not guaranteed. -// type StorageDomainDisksServiceListResponse struct { disks *DiskSlice } @@ -66903,24 +64565,18 @@ func (p *StorageDomainDisksServiceListResponse) MustDisks() *DiskSlice { return p.disks } -// // Retrieves the list of disks that are available in the storage domain. // The order of the returned list of disks is not guaranteed. -// func (p *StorageDomainDisksService) List() *StorageDomainDisksServiceListRequest { return &StorageDomainDisksServiceListRequest{StorageDomainDisksService: p} } -// // A reference to the service that manages a specific disk. -// func (op *StorageDomainDisksService) DiskService(id string) *StorageDomainDiskService { return NewStorageDomainDiskService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *StorageDomainDisksService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -66936,8 +64592,6 @@ func (op *StorageDomainDisksService) String() string { return fmt.Sprintf("StorageDomainDisksService:%s", op.path) } -// -// type StorageDomainServerConnectionService struct { BaseService } @@ -66949,8 +64603,6 @@ func NewStorageDomainServerConnectionService(connection *Connection, path string return &result } -// -// type StorageDomainServerConnectionServiceGetRequest struct { StorageDomainServerConnectionService *StorageDomainServerConnectionService header map[string]string @@ -67059,8 +64711,6 @@ func (p *StorageDomainServerConnectionServiceGetRequest) MustSend() *StorageDoma } } -// -// type StorageDomainServerConnectionServiceGetResponse struct { connection *StorageConnection } @@ -67079,15 +64729,11 @@ func (p *StorageDomainServerConnectionServiceGetResponse) MustConnection() *Stor return p.connection } -// -// func (p *StorageDomainServerConnectionService) Get() *StorageDomainServerConnectionServiceGetRequest { return &StorageDomainServerConnectionServiceGetRequest{StorageDomainServerConnectionService: p} } -// // Detaches a storage connection from storage. -// type StorageDomainServerConnectionServiceRemoveRequest struct { StorageDomainServerConnectionService *StorageDomainServerConnectionService header map[string]string @@ -67191,22 +64837,16 @@ func (p *StorageDomainServerConnectionServiceRemoveRequest) MustSend() *StorageD } } -// // Detaches a storage connection from storage. -// type StorageDomainServerConnectionServiceRemoveResponse struct { } -// // Detaches a storage connection from storage. -// func (p *StorageDomainServerConnectionService) Remove() *StorageDomainServerConnectionServiceRemoveRequest { return &StorageDomainServerConnectionServiceRemoveRequest{StorageDomainServerConnectionService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *StorageDomainServerConnectionService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -67218,9 +64858,7 @@ func (op *StorageDomainServerConnectionService) String() string { return fmt.Sprintf("StorageDomainServerConnectionService:%s", op.path) } -// // Manages the set of connections to storage servers that exist in a storage domain. -// type StorageDomainServerConnectionsService struct { BaseService } @@ -67232,8 +64870,6 @@ func NewStorageDomainServerConnectionsService(connection *Connection, path strin return &result } -// -// type StorageDomainServerConnectionsServiceAddRequest struct { StorageDomainServerConnectionsService *StorageDomainServerConnectionsService header map[string]string @@ -67345,8 +64981,6 @@ func (p *StorageDomainServerConnectionsServiceAddRequest) MustSend() *StorageDom } } -// -// type StorageDomainServerConnectionsServiceAddResponse struct { connection *StorageConnection } @@ -67365,16 +64999,12 @@ func (p *StorageDomainServerConnectionsServiceAddResponse) MustConnection() *Sto return p.connection } -// -// func (p *StorageDomainServerConnectionsService) Add() *StorageDomainServerConnectionsServiceAddRequest { return &StorageDomainServerConnectionsServiceAddRequest{StorageDomainServerConnectionsService: p} } -// // Returns the list of connections to storage servers that existin the storage domain. // The order of the returned list of connections isn't guaranteed. -// type StorageDomainServerConnectionsServiceListRequest struct { StorageDomainServerConnectionsService *StorageDomainServerConnectionsService header map[string]string @@ -67493,10 +65123,8 @@ func (p *StorageDomainServerConnectionsServiceListRequest) MustSend() *StorageDo } } -// // Returns the list of connections to storage servers that existin the storage domain. // The order of the returned list of connections isn't guaranteed. -// type StorageDomainServerConnectionsServiceListResponse struct { connections *StorageConnectionSlice } @@ -67515,23 +65143,17 @@ func (p *StorageDomainServerConnectionsServiceListResponse) MustConnections() *S return p.connections } -// // Returns the list of connections to storage servers that existin the storage domain. // The order of the returned list of connections isn't guaranteed. -// func (p *StorageDomainServerConnectionsService) List() *StorageDomainServerConnectionsServiceListRequest { return &StorageDomainServerConnectionsServiceListRequest{StorageDomainServerConnectionsService: p} } -// -// func (op *StorageDomainServerConnectionsService) ConnectionService(id string) *StorageDomainServerConnectionService { return NewStorageDomainServerConnectionService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *StorageDomainServerConnectionsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -67547,8 +65169,6 @@ func (op *StorageDomainServerConnectionsService) String() string { return fmt.Sprintf("StorageDomainServerConnectionsService:%s", op.path) } -// -// type StorageDomainService struct { BaseService } @@ -67560,9 +65180,7 @@ func NewStorageDomainService(connection *Connection, path string) *StorageDomain return &result } -// // Retrieves the description of the storage domain. -// type StorageDomainServiceGetRequest struct { StorageDomainService *StorageDomainService header map[string]string @@ -67681,9 +65299,7 @@ func (p *StorageDomainServiceGetRequest) MustSend() *StorageDomainServiceGetResp } } -// // Retrieves the description of the storage domain. -// type StorageDomainServiceGetResponse struct { storageDomain *StorageDomain } @@ -67702,18 +65318,14 @@ func (p *StorageDomainServiceGetResponse) MustStorageDomain() *StorageDomain { return p.storageDomain } -// // Retrieves the description of the storage domain. -// func (p *StorageDomainService) Get() *StorageDomainServiceGetRequest { return &StorageDomainServiceGetRequest{StorageDomainService: p} } -// // Used for querying if the storage domain is already attached to a data center using // the is_attached boolean field, which is part of the storage server. IMPORTANT: // Executing this API will cause the host to disconnect from the storage domain. -// type StorageDomainServiceIsAttachedRequest struct { StorageDomainService *StorageDomainService header map[string]string @@ -67834,11 +65446,9 @@ func (p *StorageDomainServiceIsAttachedRequest) MustSend() *StorageDomainService } } -// // Used for querying if the storage domain is already attached to a data center using // the is_attached boolean field, which is part of the storage server. IMPORTANT: // Executing this API will cause the host to disconnect from the storage domain. -// type StorageDomainServiceIsAttachedResponse struct { isAttached *bool } @@ -67858,16 +65468,13 @@ func (p *StorageDomainServiceIsAttachedResponse) MustIsAttached() bool { return *p.isAttached } -// // Used for querying if the storage domain is already attached to a data center using // the is_attached boolean field, which is part of the storage server. IMPORTANT: // Executing this API will cause the host to disconnect from the storage domain. -// func (p *StorageDomainService) IsAttached() *StorageDomainServiceIsAttachedRequest { return &StorageDomainServiceIsAttachedRequest{StorageDomainService: p} } -// // This operation reduces logical units from the storage domain. // In order to do so the data stored on the provided logical units will be moved to other logical units of the // storage domain and only then they will be reduced from the storage domain. @@ -67879,16 +65486,18 @@ func (p *StorageDomainService) IsAttached() *StorageDomainServiceIsAttachedReque // With a request body like this: // [source,xml] // ---- -// -// -// -// -// -// +// +// +// +// +// +// +// +// // ---- -// Note that this operation is only applicable to block storage domains (i.e., storage domains with the -// < of iSCSI or FCP). // +// Note that this operation is only applicable to block storage domains (i.e., storage domains with the +// < of iSCSI or FCP). type StorageDomainServiceReduceLunsRequest struct { StorageDomainService *StorageDomainService header map[string]string @@ -68007,7 +65616,6 @@ func (p *StorageDomainServiceReduceLunsRequest) MustSend() *StorageDomainService } } -// // This operation reduces logical units from the storage domain. // In order to do so the data stored on the provided logical units will be moved to other logical units of the // storage domain and only then they will be reduced from the storage domain. @@ -68019,20 +65627,21 @@ func (p *StorageDomainServiceReduceLunsRequest) MustSend() *StorageDomainService // With a request body like this: // [source,xml] // ---- -// -// -// -// -// -// +// +// +// +// +// +// +// +// // ---- -// Note that this operation is only applicable to block storage domains (i.e., storage domains with the -// < of iSCSI or FCP). // +// Note that this operation is only applicable to block storage domains (i.e., storage domains with the +// < of iSCSI or FCP). type StorageDomainServiceReduceLunsResponse struct { } -// // This operation reduces logical units from the storage domain. // In order to do so the data stored on the provided logical units will be moved to other logical units of the // storage domain and only then they will be reduced from the storage domain. @@ -68044,21 +65653,22 @@ type StorageDomainServiceReduceLunsResponse struct { // With a request body like this: // [source,xml] // ---- -// -// -// -// -// -// +// +// +// +// +// +// +// +// // ---- -// Note that this operation is only applicable to block storage domains (i.e., storage domains with the -// < of iSCSI or FCP). // +// Note that this operation is only applicable to block storage domains (i.e., storage domains with the +// < of iSCSI or FCP). func (p *StorageDomainService) ReduceLuns() *StorageDomainServiceReduceLunsRequest { return &StorageDomainServiceReduceLunsRequest{StorageDomainService: p} } -// // This operation refreshes the LUN size. // After increasing the size of the underlying LUN on the storage server, // the user can refresh the LUN size. @@ -68072,14 +65682,15 @@ func (p *StorageDomainService) ReduceLuns() *StorageDomainServiceReduceLunsReque // With a request body like this: // [source,xml] // ---- -// -// -// -// -// -// -// ---- // +// +// +// +// +// +// +// +// ---- type StorageDomainServiceRefreshLunsRequest struct { StorageDomainService *StorageDomainService header map[string]string @@ -68207,7 +65818,6 @@ func (p *StorageDomainServiceRefreshLunsRequest) MustSend() *StorageDomainServic } } -// // This operation refreshes the LUN size. // After increasing the size of the underlying LUN on the storage server, // the user can refresh the LUN size. @@ -68221,18 +65831,18 @@ func (p *StorageDomainServiceRefreshLunsRequest) MustSend() *StorageDomainServic // With a request body like this: // [source,xml] // ---- -// -// -// -// -// -// -// ---- // +// +// +// +// +// +// +// +// ---- type StorageDomainServiceRefreshLunsResponse struct { } -// // This operation refreshes the LUN size. // After increasing the size of the underlying LUN on the storage server, // the user can refresh the LUN size. @@ -68246,19 +65856,19 @@ type StorageDomainServiceRefreshLunsResponse struct { // With a request body like this: // [source,xml] // ---- -// -// -// -// -// -// -// ---- // +// +// +// +// +// +// +// +// ---- func (p *StorageDomainService) RefreshLuns() *StorageDomainServiceRefreshLunsRequest { return &StorageDomainServiceRefreshLunsRequest{StorageDomainService: p} } -// // Removes the storage domain. // Without any special parameters, the storage domain is detached from the system and removed from the database. The // storage domain can then be imported to the same or to a different setup, with all the data on it. If the storage is @@ -68267,7 +65877,6 @@ func (p *StorageDomainService) RefreshLuns() *StorageDomainServiceRefreshLunsReq // accessible, the failure is just ignored and the storage domain is removed from the database anyway. // If the `format` parameter is `true` then the actual storage is formatted, and the metadata is removed from the // LUN or directory, so it can no longer be imported to the same or to a different setup. -// type StorageDomainServiceRemoveRequest struct { StorageDomainService *StorageDomainService header map[string]string @@ -68401,7 +66010,6 @@ func (p *StorageDomainServiceRemoveRequest) MustSend() *StorageDomainServiceRemo } } -// // Removes the storage domain. // Without any special parameters, the storage domain is detached from the system and removed from the database. The // storage domain can then be imported to the same or to a different setup, with all the data on it. If the storage is @@ -68410,11 +66018,9 @@ func (p *StorageDomainServiceRemoveRequest) MustSend() *StorageDomainServiceRemo // accessible, the failure is just ignored and the storage domain is removed from the database anyway. // If the `format` parameter is `true` then the actual storage is formatted, and the metadata is removed from the // LUN or directory, so it can no longer be imported to the same or to a different setup. -// type StorageDomainServiceRemoveResponse struct { } -// // Removes the storage domain. // Without any special parameters, the storage domain is detached from the system and removed from the database. The // storage domain can then be imported to the same or to a different setup, with all the data on it. If the storage is @@ -68423,12 +66029,10 @@ type StorageDomainServiceRemoveResponse struct { // accessible, the failure is just ignored and the storage domain is removed from the database anyway. // If the `format` parameter is `true` then the actual storage is formatted, and the metadata is removed from the // LUN or directory, so it can no longer be imported to the same or to a different setup. -// func (p *StorageDomainService) Remove() *StorageDomainServiceRemoveRequest { return &StorageDomainServiceRemoveRequest{StorageDomainService: p} } -// // Updates a storage domain. // Not all of the <>'s attributes are updatable after creation. Those that can be // updated are: `name`, `description`, `comment`, `warning_low_space_indicator`, `critical_space_action_blocker` and @@ -68444,11 +66048,12 @@ func (p *StorageDomainService) Remove() *StorageDomainServiceRemoveRequest { // [source,xml] // ---- // -// data2 -// true +// +// data2 +// true +// // // ---- -// type StorageDomainServiceUpdateRequest struct { StorageDomainService *StorageDomainService header map[string]string @@ -68570,7 +66175,6 @@ func (p *StorageDomainServiceUpdateRequest) MustSend() *StorageDomainServiceUpda } } -// // Updates a storage domain. // Not all of the <>'s attributes are updatable after creation. Those that can be // updated are: `name`, `description`, `comment`, `warning_low_space_indicator`, `critical_space_action_blocker` and @@ -68586,11 +66190,12 @@ func (p *StorageDomainServiceUpdateRequest) MustSend() *StorageDomainServiceUpda // [source,xml] // ---- // -// data2 -// true +// +// data2 +// true +// // // ---- -// type StorageDomainServiceUpdateResponse struct { storageDomain *StorageDomain } @@ -68609,7 +66214,6 @@ func (p *StorageDomainServiceUpdateResponse) MustStorageDomain() *StorageDomain return p.storageDomain } -// // Updates a storage domain. // Not all of the <>'s attributes are updatable after creation. Those that can be // updated are: `name`, `description`, `comment`, `warning_low_space_indicator`, `critical_space_action_blocker` and @@ -68625,16 +66229,16 @@ func (p *StorageDomainServiceUpdateResponse) MustStorageDomain() *StorageDomain // [source,xml] // ---- // -// data2 -// true +// +// data2 +// true +// // // ---- -// func (p *StorageDomainService) Update() *StorageDomainServiceUpdateRequest { return &StorageDomainServiceUpdateRequest{StorageDomainService: p} } -// // This operation forces the update of the `OVF_STORE` // of this storage domain. // The `OVF_STORE` is a disk image that contains the metadata @@ -68648,7 +66252,6 @@ func (p *StorageDomainService) Update() *StorageDomainServiceUpdateRequest { // `OVF_STORE` is corrupt. // When initiated by the user, `OVF_STORE` update will be performed whether // an update is needed or not. -// type StorageDomainServiceUpdateOvfStoreRequest struct { StorageDomainService *StorageDomainService header map[string]string @@ -68761,7 +66364,6 @@ func (p *StorageDomainServiceUpdateOvfStoreRequest) MustSend() *StorageDomainSer } } -// // This operation forces the update of the `OVF_STORE` // of this storage domain. // The `OVF_STORE` is a disk image that contains the metadata @@ -68775,11 +66377,9 @@ func (p *StorageDomainServiceUpdateOvfStoreRequest) MustSend() *StorageDomainSer // `OVF_STORE` is corrupt. // When initiated by the user, `OVF_STORE` update will be performed whether // an update is needed or not. -// type StorageDomainServiceUpdateOvfStoreResponse struct { } -// // This operation forces the update of the `OVF_STORE` // of this storage domain. // The `OVF_STORE` is a disk image that contains the metadata @@ -68793,71 +66393,50 @@ type StorageDomainServiceUpdateOvfStoreResponse struct { // `OVF_STORE` is corrupt. // When initiated by the user, `OVF_STORE` update will be performed whether // an update is needed or not. -// func (p *StorageDomainService) UpdateOvfStore() *StorageDomainServiceUpdateOvfStoreRequest { return &StorageDomainServiceUpdateOvfStoreRequest{StorageDomainService: p} } -// -// func (op *StorageDomainService) DiskProfilesService() *AssignedDiskProfilesService { return NewAssignedDiskProfilesService(op.connection, fmt.Sprintf("%s/diskprofiles", op.path)) } -// -// func (op *StorageDomainService) DiskSnapshotsService() *DiskSnapshotsService { return NewDiskSnapshotsService(op.connection, fmt.Sprintf("%s/disksnapshots", op.path)) } -// // Reference to the service that manages the disks available in the storage domain. -// func (op *StorageDomainService) DisksService() *StorageDomainDisksService { return NewStorageDomainDisksService(op.connection, fmt.Sprintf("%s/disks", op.path)) } -// // Returns a reference to the service that manages the files available in the storage domain. -// func (op *StorageDomainService) FilesService() *FilesService { return NewFilesService(op.connection, fmt.Sprintf("%s/files", op.path)) } -// -// func (op *StorageDomainService) ImagesService() *ImagesService { return NewImagesService(op.connection, fmt.Sprintf("%s/images", op.path)) } -// -// func (op *StorageDomainService) PermissionsService() *AssignedPermissionsService { return NewAssignedPermissionsService(op.connection, fmt.Sprintf("%s/permissions", op.path)) } -// // Returns a reference to the service that manages the storage connections. -// func (op *StorageDomainService) StorageConnectionsService() *StorageDomainServerConnectionsService { return NewStorageDomainServerConnectionsService(op.connection, fmt.Sprintf("%s/storageconnections", op.path)) } -// -// func (op *StorageDomainService) TemplatesService() *StorageDomainTemplatesService { return NewStorageDomainTemplatesService(op.connection, fmt.Sprintf("%s/templates", op.path)) } -// -// func (op *StorageDomainService) VmsService() *StorageDomainVmsService { return NewStorageDomainVmsService(op.connection, fmt.Sprintf("%s/vms", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *StorageDomainService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -68923,8 +66502,6 @@ func (op *StorageDomainService) String() string { return fmt.Sprintf("StorageDomainService:%s", op.path) } -// -// type StorageDomainTemplateService struct { BaseService } @@ -68936,8 +66513,6 @@ func NewStorageDomainTemplateService(connection *Connection, path string) *Stora return &result } -// -// type StorageDomainTemplateServiceGetRequest struct { StorageDomainTemplateService *StorageDomainTemplateService header map[string]string @@ -69046,8 +66621,6 @@ func (p *StorageDomainTemplateServiceGetRequest) MustSend() *StorageDomainTempla } } -// -// type StorageDomainTemplateServiceGetResponse struct { template *Template } @@ -69066,13 +66639,10 @@ func (p *StorageDomainTemplateServiceGetResponse) MustTemplate() *Template { return p.template } -// -// func (p *StorageDomainTemplateService) Get() *StorageDomainTemplateServiceGetRequest { return &StorageDomainTemplateServiceGetRequest{StorageDomainTemplateService: p} } -// // Action to import a template from an export storage domain. // For example, to import the template `456` from the storage domain `123` send the following request: // [source] @@ -69083,18 +66653,19 @@ func (p *StorageDomainTemplateService) Get() *StorageDomainTemplateServiceGetReq // [source, xml] // ---- // -// -// myexport -// -// -// mycluster -// +// +// +// myexport +// +// +// mycluster +// +// // // ---- // If you register an entity without specifying the cluster ID or name, // the cluster name from the entity's OVF will be used (unless the register request also includes the // cluster mapping). -// type StorageDomainTemplateServiceImportRequest struct { StorageDomainTemplateService *StorageDomainTemplateService header map[string]string @@ -69253,7 +66824,6 @@ func (p *StorageDomainTemplateServiceImportRequest) MustSend() *StorageDomainTem } } -// // Action to import a template from an export storage domain. // For example, to import the template `456` from the storage domain `123` send the following request: // [source] @@ -69264,22 +66834,22 @@ func (p *StorageDomainTemplateServiceImportRequest) MustSend() *StorageDomainTem // [source, xml] // ---- // -// -// myexport -// -// -// mycluster -// +// +// +// myexport +// +// +// mycluster +// +// // // ---- // If you register an entity without specifying the cluster ID or name, // the cluster name from the entity's OVF will be used (unless the register request also includes the // cluster mapping). -// type StorageDomainTemplateServiceImportResponse struct { } -// // Action to import a template from an export storage domain. // For example, to import the template `456` from the storage domain `123` send the following request: // [source] @@ -69290,26 +66860,25 @@ type StorageDomainTemplateServiceImportResponse struct { // [source, xml] // ---- // -// -// myexport -// -// -// mycluster -// +// +// +// myexport +// +// +// mycluster +// +// // // ---- // If you register an entity without specifying the cluster ID or name, // the cluster name from the entity's OVF will be used (unless the register request also includes the // cluster mapping). -// func (p *StorageDomainTemplateService) Import() *StorageDomainTemplateServiceImportRequest { return &StorageDomainTemplateServiceImportRequest{StorageDomainTemplateService: p} } -// // Register the Template means importing the Template from the data domain by inserting the configuration of the // Template and disks into the database without the copy process. -// type StorageDomainTemplateServiceRegisterRequest struct { StorageDomainTemplateService *StorageDomainTemplateService header map[string]string @@ -69485,23 +67054,17 @@ func (p *StorageDomainTemplateServiceRegisterRequest) MustSend() *StorageDomainT } } -// // Register the Template means importing the Template from the data domain by inserting the configuration of the // Template and disks into the database without the copy process. -// type StorageDomainTemplateServiceRegisterResponse struct { } -// // Register the Template means importing the Template from the data domain by inserting the configuration of the // Template and disks into the database without the copy process. -// func (p *StorageDomainTemplateService) Register() *StorageDomainTemplateServiceRegisterRequest { return &StorageDomainTemplateServiceRegisterRequest{StorageDomainTemplateService: p} } -// -// type StorageDomainTemplateServiceRemoveRequest struct { StorageDomainTemplateService *StorageDomainTemplateService header map[string]string @@ -69605,26 +67168,18 @@ func (p *StorageDomainTemplateServiceRemoveRequest) MustSend() *StorageDomainTem } } -// -// type StorageDomainTemplateServiceRemoveResponse struct { } -// -// func (p *StorageDomainTemplateService) Remove() *StorageDomainTemplateServiceRemoveRequest { return &StorageDomainTemplateServiceRemoveRequest{StorageDomainTemplateService: p} } -// -// func (op *StorageDomainTemplateService) DisksService() *StorageDomainContentDisksService { return NewStorageDomainContentDisksService(op.connection, fmt.Sprintf("%s/disks", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *StorageDomainTemplateService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -69642,9 +67197,7 @@ func (op *StorageDomainTemplateService) String() string { return fmt.Sprintf("StorageDomainTemplateService:%s", op.path) } -// // Manages the set of templates available in a storage domain. -// type StorageDomainTemplatesService struct { BaseService } @@ -69656,10 +67209,8 @@ func NewStorageDomainTemplatesService(connection *Connection, path string) *Stor return &result } -// // Returns the list of templates availalbe in the storage domain. // The order of the returned list of templates isn't guaranteed. -// type StorageDomainTemplatesServiceListRequest struct { StorageDomainTemplatesService *StorageDomainTemplatesService header map[string]string @@ -69788,10 +67339,8 @@ func (p *StorageDomainTemplatesServiceListRequest) MustSend() *StorageDomainTemp } } -// // Returns the list of templates availalbe in the storage domain. // The order of the returned list of templates isn't guaranteed. -// type StorageDomainTemplatesServiceListResponse struct { templates *TemplateSlice } @@ -69810,23 +67359,17 @@ func (p *StorageDomainTemplatesServiceListResponse) MustTemplates() *TemplateSli return p.templates } -// // Returns the list of templates availalbe in the storage domain. // The order of the returned list of templates isn't guaranteed. -// func (p *StorageDomainTemplatesService) List() *StorageDomainTemplatesServiceListRequest { return &StorageDomainTemplatesServiceListRequest{StorageDomainTemplatesService: p} } -// -// func (op *StorageDomainTemplatesService) TemplateService(id string) *StorageDomainTemplateService { return NewStorageDomainTemplateService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *StorageDomainTemplatesService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -69842,9 +67385,7 @@ func (op *StorageDomainTemplatesService) String() string { return fmt.Sprintf("StorageDomainTemplatesService:%s", op.path) } -// // Returns the details of the disks attached to a virtual machine in the export domain. -// type StorageDomainVmDiskAttachmentService struct { BaseService } @@ -69856,9 +67397,7 @@ func NewStorageDomainVmDiskAttachmentService(connection *Connection, path string return &result } -// // Returns the details of the attachment with all its properties and a link to the disk. -// type StorageDomainVmDiskAttachmentServiceGetRequest struct { StorageDomainVmDiskAttachmentService *StorageDomainVmDiskAttachmentService header map[string]string @@ -69967,9 +67506,7 @@ func (p *StorageDomainVmDiskAttachmentServiceGetRequest) MustSend() *StorageDoma } } -// // Returns the details of the attachment with all its properties and a link to the disk. -// type StorageDomainVmDiskAttachmentServiceGetResponse struct { attachment *DiskAttachment } @@ -69988,16 +67525,12 @@ func (p *StorageDomainVmDiskAttachmentServiceGetResponse) MustAttachment() *Disk return p.attachment } -// // Returns the details of the attachment with all its properties and a link to the disk. -// func (p *StorageDomainVmDiskAttachmentService) Get() *StorageDomainVmDiskAttachmentServiceGetRequest { return &StorageDomainVmDiskAttachmentServiceGetRequest{StorageDomainVmDiskAttachmentService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *StorageDomainVmDiskAttachmentService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -70009,9 +67542,7 @@ func (op *StorageDomainVmDiskAttachmentService) String() string { return fmt.Sprintf("StorageDomainVmDiskAttachmentService:%s", op.path) } -// // Returns the details of a disk attached to a virtual machine in the export domain. -// type StorageDomainVmDiskAttachmentsService struct { BaseService } @@ -70023,10 +67554,8 @@ func NewStorageDomainVmDiskAttachmentsService(connection *Connection, path strin return &result } -// // List the disks that are attached to the virtual machine. // The order of the returned list of disk attachments isn't guaranteed. -// type StorageDomainVmDiskAttachmentsServiceListRequest struct { StorageDomainVmDiskAttachmentsService *StorageDomainVmDiskAttachmentsService header map[string]string @@ -70135,10 +67664,8 @@ func (p *StorageDomainVmDiskAttachmentsServiceListRequest) MustSend() *StorageDo } } -// // List the disks that are attached to the virtual machine. // The order of the returned list of disk attachments isn't guaranteed. -// type StorageDomainVmDiskAttachmentsServiceListResponse struct { attachments *DiskAttachmentSlice } @@ -70157,24 +67684,18 @@ func (p *StorageDomainVmDiskAttachmentsServiceListResponse) MustAttachments() *D return p.attachments } -// // List the disks that are attached to the virtual machine. // The order of the returned list of disk attachments isn't guaranteed. -// func (p *StorageDomainVmDiskAttachmentsService) List() *StorageDomainVmDiskAttachmentsServiceListRequest { return &StorageDomainVmDiskAttachmentsServiceListRequest{StorageDomainVmDiskAttachmentsService: p} } -// // Reference to the service that manages a specific attachment. -// func (op *StorageDomainVmDiskAttachmentsService) AttachmentService(id string) *StorageDomainVmDiskAttachmentService { return NewStorageDomainVmDiskAttachmentService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *StorageDomainVmDiskAttachmentsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -70190,8 +67711,6 @@ func (op *StorageDomainVmDiskAttachmentsService) String() string { return fmt.Sprintf("StorageDomainVmDiskAttachmentsService:%s", op.path) } -// -// type StorageDomainVmService struct { BaseService } @@ -70203,8 +67722,6 @@ func NewStorageDomainVmService(connection *Connection, path string) *StorageDoma return &result } -// -// type StorageDomainVmServiceGetRequest struct { StorageDomainVmService *StorageDomainVmService header map[string]string @@ -70313,8 +67830,6 @@ func (p *StorageDomainVmServiceGetRequest) MustSend() *StorageDomainVmServiceGet } } -// -// type StorageDomainVmServiceGetResponse struct { vm *Vm } @@ -70333,13 +67848,10 @@ func (p *StorageDomainVmServiceGetResponse) MustVm() *Vm { return p.vm } -// -// func (p *StorageDomainVmService) Get() *StorageDomainVmServiceGetRequest { return &StorageDomainVmServiceGetRequest{StorageDomainVmService: p} } -// // Imports a virtual machine from an export storage domain. // For example, send a request like this: // [source] @@ -70350,28 +67862,32 @@ func (p *StorageDomainVmService) Get() *StorageDomainVmServiceGetRequest { // [source,xml] // ---- // -// -// mydata -// -// -// mycluster -// +// +// +// mydata +// +// +// mycluster +// +// // // ---- // To import a virtual machine as a new entity add the `clone` parameter: // [source,xml] // ---- // -// -// mydata -// -// -// mycluster -// -// true -// -// myvm -// +// +// +// mydata +// +// +// mycluster +// +// true +// +// myvm +// +// // // ---- // Include an optional `disks` parameter to choose which disks to import. For example, to import the disks @@ -70379,22 +67895,23 @@ func (p *StorageDomainVmService) Get() *StorageDomainVmServiceGetRequest { // [source,xml] // ---- // -// -// mycluster -// -// -// myvm -// -// -// -// -// +// +// +// mycluster +// +// +// myvm +// +// +// +// +// +// // // ---- // If you register an entity without specifying the cluster ID or name, // the cluster name from the entity's OVF will be used (unless the register request also includes the // cluster mapping). -// type StorageDomainVmServiceImportRequest struct { StorageDomainVmService *StorageDomainVmService header map[string]string @@ -70555,7 +68072,6 @@ func (p *StorageDomainVmServiceImportRequest) MustSend() *StorageDomainVmService } } -// // Imports a virtual machine from an export storage domain. // For example, send a request like this: // [source] @@ -70566,28 +68082,32 @@ func (p *StorageDomainVmServiceImportRequest) MustSend() *StorageDomainVmService // [source,xml] // ---- // -// -// mydata -// -// -// mycluster -// +// +// +// mydata +// +// +// mycluster +// +// // // ---- // To import a virtual machine as a new entity add the `clone` parameter: // [source,xml] // ---- // -// -// mydata -// -// -// mycluster -// -// true -// -// myvm -// +// +// +// mydata +// +// +// mycluster +// +// true +// +// myvm +// +// // // ---- // Include an optional `disks` parameter to choose which disks to import. For example, to import the disks @@ -70595,26 +68115,26 @@ func (p *StorageDomainVmServiceImportRequest) MustSend() *StorageDomainVmService // [source,xml] // ---- // -// -// mycluster -// -// -// myvm -// -// -// -// -// +// +// +// mycluster +// +// +// myvm +// +// +// +// +// +// // // ---- // If you register an entity without specifying the cluster ID or name, // the cluster name from the entity's OVF will be used (unless the register request also includes the // cluster mapping). -// type StorageDomainVmServiceImportResponse struct { } -// // Imports a virtual machine from an export storage domain. // For example, send a request like this: // [source] @@ -70625,28 +68145,32 @@ type StorageDomainVmServiceImportResponse struct { // [source,xml] // ---- // -// -// mydata -// -// -// mycluster -// +// +// +// mydata +// +// +// mycluster +// +// // // ---- // To import a virtual machine as a new entity add the `clone` parameter: // [source,xml] // ---- // -// -// mydata -// -// -// mycluster -// -// true -// -// myvm -// +// +// +// mydata +// +// +// mycluster +// +// true +// +// myvm +// +// // // ---- // Include an optional `disks` parameter to choose which disks to import. For example, to import the disks @@ -70654,28 +68178,27 @@ type StorageDomainVmServiceImportResponse struct { // [source,xml] // ---- // -// -// mycluster -// -// -// myvm -// -// -// -// -// +// +// +// mycluster +// +// +// myvm +// +// +// +// +// +// // // ---- // If you register an entity without specifying the cluster ID or name, // the cluster name from the entity's OVF will be used (unless the register request also includes the // cluster mapping). -// func (p *StorageDomainVmService) Import() *StorageDomainVmServiceImportRequest { return &StorageDomainVmServiceImportRequest{StorageDomainVmService: p} } -// -// type StorageDomainVmServiceRegisterRequest struct { StorageDomainVmService *StorageDomainVmService header map[string]string @@ -70851,25 +68374,19 @@ func (p *StorageDomainVmServiceRegisterRequest) MustSend() *StorageDomainVmServi } } -// -// type StorageDomainVmServiceRegisterResponse struct { } -// -// func (p *StorageDomainVmService) Register() *StorageDomainVmServiceRegisterRequest { return &StorageDomainVmServiceRegisterRequest{StorageDomainVmService: p} } -// // Deletes a virtual machine from an export storage domain. // For example, to delete the virtual machine `456` from the storage domain `123`, send a request like this: // [source] // ---- // DELETE /ovirt-engine/api/storagedomains/123/vms/456 // ---- -// type StorageDomainVmServiceRemoveRequest struct { StorageDomainVmService *StorageDomainVmService header map[string]string @@ -70973,45 +68490,35 @@ func (p *StorageDomainVmServiceRemoveRequest) MustSend() *StorageDomainVmService } } -// // Deletes a virtual machine from an export storage domain. // For example, to delete the virtual machine `456` from the storage domain `123`, send a request like this: // [source] // ---- // DELETE /ovirt-engine/api/storagedomains/123/vms/456 // ---- -// type StorageDomainVmServiceRemoveResponse struct { } -// // Deletes a virtual machine from an export storage domain. // For example, to delete the virtual machine `456` from the storage domain `123`, send a request like this: // [source] // ---- // DELETE /ovirt-engine/api/storagedomains/123/vms/456 // ---- -// func (p *StorageDomainVmService) Remove() *StorageDomainVmServiceRemoveRequest { return &StorageDomainVmServiceRemoveRequest{StorageDomainVmService: p} } -// // Returns a reference to the service that manages the disk attachments of the virtual machine. -// func (op *StorageDomainVmService) DiskAttachmentsService() *StorageDomainVmDiskAttachmentsService { return NewStorageDomainVmDiskAttachmentsService(op.connection, fmt.Sprintf("%s/diskattachments", op.path)) } -// -// func (op *StorageDomainVmService) DisksService() *StorageDomainContentDisksService { return NewStorageDomainContentDisksService(op.connection, fmt.Sprintf("%s/disks", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *StorageDomainVmService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -71035,7 +68542,6 @@ func (op *StorageDomainVmService) String() string { return fmt.Sprintf("StorageDomainVmService:%s", op.path) } -// // Lists the virtual machines of an export storage domain. // For example, to retrieve the virtual machines that are available in the storage domain with identifier `123` send the // following request: @@ -71047,21 +68553,22 @@ func (op *StorageDomainVmService) String() string { // [source,xml] // ---- // -// -// vm1 -// ... -// -// -// -// -// +// +// +// vm1 +// ... +// +// +// +// +// +// // // ---- // Virtual machines and templates in these collections have a similar representation to their counterparts in the // top-level <> and <> collections, except they also contain a // <> reference and an <> // action. -// type StorageDomainVmsService struct { BaseService } @@ -71073,10 +68580,8 @@ func NewStorageDomainVmsService(connection *Connection, path string) *StorageDom return &result } -// // Returns the list of virtual machines of the export storage domain. // The order of the returned list of virtual machines isn't guaranteed. -// type StorageDomainVmsServiceListRequest struct { StorageDomainVmsService *StorageDomainVmsService header map[string]string @@ -71205,10 +68710,8 @@ func (p *StorageDomainVmsServiceListRequest) MustSend() *StorageDomainVmsService } } -// // Returns the list of virtual machines of the export storage domain. // The order of the returned list of virtual machines isn't guaranteed. -// type StorageDomainVmsServiceListResponse struct { vm *VmSlice } @@ -71227,23 +68730,17 @@ func (p *StorageDomainVmsServiceListResponse) MustVm() *VmSlice { return p.vm } -// // Returns the list of virtual machines of the export storage domain. // The order of the returned list of virtual machines isn't guaranteed. -// func (p *StorageDomainVmsService) List() *StorageDomainVmsServiceListRequest { return &StorageDomainVmsServiceListRequest{StorageDomainVmsService: p} } -// -// func (op *StorageDomainVmsService) VmService(id string) *StorageDomainVmService { return NewStorageDomainVmService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *StorageDomainVmsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -71259,9 +68756,7 @@ func (op *StorageDomainVmsService) String() string { return fmt.Sprintf("StorageDomainVmsService:%s", op.path) } -// // Manages the set of storage domains in the system. -// type StorageDomainsService struct { BaseService } @@ -71273,7 +68768,6 @@ func NewStorageDomainsService(connection *Connection, path string) *StorageDomai return &result } -// // Adds a new storage domain. // Creation of a new <> requires the `name`, `type`, `host`, and `storage` // attributes. Identify the `host` attribute with the `id` or `name` attributes. In {product-name} 3.6 and @@ -71290,53 +68784,58 @@ func NewStorageDomainsService(connection *Connection, path string) *StorageDomai // [source,xml] // ---- // -// mydata -// data -// -// nfs -//
mynfs.example.com
-// /exports/mydata -//
-// -// myhost -// +// +// mydata +// data +// +// nfs +//
mynfs.example.com
+// /exports/mydata +//
+// +// myhost +// +// //
// ---- // To create a new NFS ISO storage domain send a request like this: // [source,xml] // ---- // -// myisos -// iso -// -// nfs -//
mynfs.example.com
-// /export/myisos -//
-// -// myhost -// +// +// myisos +// iso +// +// nfs +//
mynfs.example.com
+// /export/myisos +//
+// +// myhost +// +// //
// ---- // To create a new iSCSI storage domain send a request like this: // [source,xml] // ---- // -// myiscsi -// data -// -// iscsi -// -// -// -// -// -// -// myhost -// +// +// myiscsi +// data +// +// iscsi +// +// +// +// +// +// +// myhost +// +// // // ---- -// type StorageDomainsServiceAddRequest struct { StorageDomainsService *StorageDomainsService header map[string]string @@ -71448,7 +68947,6 @@ func (p *StorageDomainsServiceAddRequest) MustSend() *StorageDomainsServiceAddRe } } -// // Adds a new storage domain. // Creation of a new <> requires the `name`, `type`, `host`, and `storage` // attributes. Identify the `host` attribute with the `id` or `name` attributes. In {product-name} 3.6 and @@ -71465,53 +68963,58 @@ func (p *StorageDomainsServiceAddRequest) MustSend() *StorageDomainsServiceAddRe // [source,xml] // ---- // -// mydata -// data -// -// nfs -//
mynfs.example.com
-// /exports/mydata -//
-// -// myhost -// +// +// mydata +// data +// +// nfs +//
mynfs.example.com
+// /exports/mydata +//
+// +// myhost +// +// //
// ---- // To create a new NFS ISO storage domain send a request like this: // [source,xml] // ---- // -// myisos -// iso -// -// nfs -//
mynfs.example.com
-// /export/myisos -//
-// -// myhost -// +// +// myisos +// iso +// +// nfs +//
mynfs.example.com
+// /export/myisos +//
+// +// myhost +// +// //
// ---- // To create a new iSCSI storage domain send a request like this: // [source,xml] // ---- // -// myiscsi -// data -// -// iscsi -// -// -// -// -// -// -// myhost -// +// +// myiscsi +// data +// +// iscsi +// +// +// +// +// +// +// myhost +// +// // // ---- -// type StorageDomainsServiceAddResponse struct { storageDomain *StorageDomain } @@ -71530,7 +69033,6 @@ func (p *StorageDomainsServiceAddResponse) MustStorageDomain() *StorageDomain { return p.storageDomain } -// // Adds a new storage domain. // Creation of a new <> requires the `name`, `type`, `host`, and `storage` // attributes. Identify the `host` attribute with the `id` or `name` attributes. In {product-name} 3.6 and @@ -71547,60 +69049,63 @@ func (p *StorageDomainsServiceAddResponse) MustStorageDomain() *StorageDomain { // [source,xml] // ---- // -// mydata -// data -// -// nfs -//
mynfs.example.com
-// /exports/mydata -//
-// -// myhost -// +// +// mydata +// data +// +// nfs +//
mynfs.example.com
+// /exports/mydata +//
+// +// myhost +// +// //
// ---- // To create a new NFS ISO storage domain send a request like this: // [source,xml] // ---- // -// myisos -// iso -// -// nfs -//
mynfs.example.com
-// /export/myisos -//
-// -// myhost -// +// +// myisos +// iso +// +// nfs +//
mynfs.example.com
+// /export/myisos +//
+// +// myhost +// +// //
// ---- // To create a new iSCSI storage domain send a request like this: // [source,xml] // ---- // -// myiscsi -// data -// -// iscsi -// -// -// -// -// -// -// myhost -// +// +// myiscsi +// data +// +// iscsi +// +// +// +// +// +// +// myhost +// +// // // ---- -// func (p *StorageDomainsService) Add() *StorageDomainsServiceAddRequest { return &StorageDomainsServiceAddRequest{StorageDomainsService: p} } -// // Import an existing block storage domain to the system using the targets already connected to the host. -// type StorageDomainsServiceAddBlockDomainRequest struct { StorageDomainsService *StorageDomainsService header map[string]string @@ -71712,9 +69217,7 @@ func (p *StorageDomainsServiceAddBlockDomainRequest) MustSend() *StorageDomainsS } } -// // Import an existing block storage domain to the system using the targets already connected to the host. -// type StorageDomainsServiceAddBlockDomainResponse struct { storageDomain *StorageDomain } @@ -71733,16 +69236,12 @@ func (p *StorageDomainsServiceAddBlockDomainResponse) MustStorageDomain() *Stora return p.storageDomain } -// // Import an existing block storage domain to the system using the targets already connected to the host. -// func (p *StorageDomainsService) AddBlockDomain() *StorageDomainsServiceAddBlockDomainRequest { return &StorageDomainsServiceAddBlockDomainRequest{StorageDomainsService: p} } -// // Add a new storage domain to the system using the storage on the given host and path. -// type StorageDomainsServiceAddByPathRequest struct { StorageDomainsService *StorageDomainsService header map[string]string @@ -71854,9 +69353,7 @@ func (p *StorageDomainsServiceAddByPathRequest) MustSend() *StorageDomainsServic } } -// // Add a new storage domain to the system using the storage on the given host and path. -// type StorageDomainsServiceAddByPathResponse struct { storageDomain *StorageDomain } @@ -71875,16 +69372,12 @@ func (p *StorageDomainsServiceAddByPathResponse) MustStorageDomain() *StorageDom return p.storageDomain } -// // Add a new storage domain to the system using the storage on the given host and path. -// func (p *StorageDomainsService) AddByPath() *StorageDomainsServiceAddByPathRequest { return &StorageDomainsServiceAddByPathRequest{StorageDomainsService: p} } -// // Add a new storage domain to the system using a direct LUN. -// type StorageDomainsServiceAddDirectLunRequest struct { StorageDomainsService *StorageDomainsService header map[string]string @@ -71996,9 +69489,7 @@ func (p *StorageDomainsServiceAddDirectLunRequest) MustSend() *StorageDomainsSer } } -// // Add a new storage domain to the system using a direct LUN. -// type StorageDomainsServiceAddDirectLunResponse struct { storageDomain *StorageDomain } @@ -72017,16 +69508,12 @@ func (p *StorageDomainsServiceAddDirectLunResponse) MustStorageDomain() *Storage return p.storageDomain } -// // Add a new storage domain to the system using a direct LUN. -// func (p *StorageDomainsService) AddDirectLun() *StorageDomainsServiceAddDirectLunRequest { return &StorageDomainsServiceAddDirectLunRequest{StorageDomainsService: p} } -// // Add a new storage domain to the system using Gluster or POSIX FS storage. -// type StorageDomainsServiceAddGlusterOrPostfsRequest struct { StorageDomainsService *StorageDomainsService header map[string]string @@ -72138,9 +69625,7 @@ func (p *StorageDomainsServiceAddGlusterOrPostfsRequest) MustSend() *StorageDoma } } -// // Add a new storage domain to the system using Gluster or POSIX FS storage. -// type StorageDomainsServiceAddGlusterOrPostfsResponse struct { storageDomain *StorageDomain } @@ -72159,18 +69644,14 @@ func (p *StorageDomainsServiceAddGlusterOrPostfsResponse) MustStorageDomain() *S return p.storageDomain } -// // Add a new storage domain to the system using Gluster or POSIX FS storage. -// func (p *StorageDomainsService) AddGlusterOrPostfs() *StorageDomainsServiceAddGlusterOrPostfsRequest { return &StorageDomainsServiceAddGlusterOrPostfsRequest{StorageDomainsService: p} } -// // Returns the list of storage domains in the system. // The order of the returned list of storage domains is guaranteed only if the `sortby` clause is included // in the `search` parameter. -// type StorageDomainsServiceListRequest struct { StorageDomainsService *StorageDomainsService header map[string]string @@ -72319,11 +69800,9 @@ func (p *StorageDomainsServiceListRequest) MustSend() *StorageDomainsServiceList } } -// // Returns the list of storage domains in the system. // The order of the returned list of storage domains is guaranteed only if the `sortby` clause is included // in the `search` parameter. -// type StorageDomainsServiceListResponse struct { storageDomains *StorageDomainSlice } @@ -72342,18 +69821,14 @@ func (p *StorageDomainsServiceListResponse) MustStorageDomains() *StorageDomainS return p.storageDomains } -// // Returns the list of storage domains in the system. // The order of the returned list of storage domains is guaranteed only if the `sortby` clause is included // in the `search` parameter. -// func (p *StorageDomainsService) List() *StorageDomainsServiceListRequest { return &StorageDomainsServiceListRequest{StorageDomainsService: p} } -// // Add a new storage domain to the system using the storage on the local host at the given path. -// type StorageDomainsServiceAddLocalRequest struct { StorageDomainsService *StorageDomainsService header map[string]string @@ -72465,9 +69940,7 @@ func (p *StorageDomainsServiceAddLocalRequest) MustSend() *StorageDomainsService } } -// // Add a new storage domain to the system using the storage on the local host at the given path. -// type StorageDomainsServiceAddLocalResponse struct { storageDomain *StorageDomain } @@ -72486,22 +69959,16 @@ func (p *StorageDomainsServiceAddLocalResponse) MustStorageDomain() *StorageDoma return p.storageDomain } -// // Add a new storage domain to the system using the storage on the local host at the given path. -// func (p *StorageDomainsService) AddLocal() *StorageDomainsServiceAddLocalRequest { return &StorageDomainsServiceAddLocalRequest{StorageDomainsService: p} } -// -// func (op *StorageDomainsService) StorageDomainService(id string) *StorageDomainService { return NewStorageDomainService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *StorageDomainsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -72517,8 +69984,6 @@ func (op *StorageDomainsService) String() string { return fmt.Sprintf("StorageDomainsService:%s", op.path) } -// -// type StorageServerConnectionExtensionService struct { BaseService } @@ -72530,8 +69995,6 @@ func NewStorageServerConnectionExtensionService(connection *Connection, path str return &result } -// -// type StorageServerConnectionExtensionServiceGetRequest struct { StorageServerConnectionExtensionService *StorageServerConnectionExtensionService header map[string]string @@ -72640,8 +70103,6 @@ func (p *StorageServerConnectionExtensionServiceGetRequest) MustSend() *StorageS } } -// -// type StorageServerConnectionExtensionServiceGetResponse struct { extension *StorageConnectionExtension } @@ -72660,14 +70121,10 @@ func (p *StorageServerConnectionExtensionServiceGetResponse) MustExtension() *St return p.extension } -// -// func (p *StorageServerConnectionExtensionService) Get() *StorageServerConnectionExtensionServiceGetRequest { return &StorageServerConnectionExtensionServiceGetRequest{StorageServerConnectionExtensionService: p} } -// -// type StorageServerConnectionExtensionServiceRemoveRequest struct { StorageServerConnectionExtensionService *StorageServerConnectionExtensionService header map[string]string @@ -72771,18 +70228,13 @@ func (p *StorageServerConnectionExtensionServiceRemoveRequest) MustSend() *Stora } } -// -// type StorageServerConnectionExtensionServiceRemoveResponse struct { } -// -// func (p *StorageServerConnectionExtensionService) Remove() *StorageServerConnectionExtensionServiceRemoveRequest { return &StorageServerConnectionExtensionServiceRemoveRequest{StorageServerConnectionExtensionService: p} } -// // Update a storage server connection extension for the given host. // To update the storage connection `456` of host `123` send a request like this: // [source] @@ -72793,12 +70245,13 @@ func (p *StorageServerConnectionExtensionService) Remove() *StorageServerConnect // [source,xml] // ---- // -// iqn.2016-01.com.example:mytarget -// myuser -// mypassword +// +// iqn.2016-01.com.example:mytarget +// myuser +// mypassword +// // // ---- -// type StorageServerConnectionExtensionServiceUpdateRequest struct { StorageServerConnectionExtensionService *StorageServerConnectionExtensionService header map[string]string @@ -72920,7 +70373,6 @@ func (p *StorageServerConnectionExtensionServiceUpdateRequest) MustSend() *Stora } } -// // Update a storage server connection extension for the given host. // To update the storage connection `456` of host `123` send a request like this: // [source] @@ -72931,12 +70383,13 @@ func (p *StorageServerConnectionExtensionServiceUpdateRequest) MustSend() *Stora // [source,xml] // ---- // -// iqn.2016-01.com.example:mytarget -// myuser -// mypassword +// +// iqn.2016-01.com.example:mytarget +// myuser +// mypassword +// // // ---- -// type StorageServerConnectionExtensionServiceUpdateResponse struct { extension *StorageConnectionExtension } @@ -72955,7 +70408,6 @@ func (p *StorageServerConnectionExtensionServiceUpdateResponse) MustExtension() return p.extension } -// // Update a storage server connection extension for the given host. // To update the storage connection `456` of host `123` send a request like this: // [source] @@ -72966,19 +70418,18 @@ func (p *StorageServerConnectionExtensionServiceUpdateResponse) MustExtension() // [source,xml] // ---- // -// iqn.2016-01.com.example:mytarget -// myuser -// mypassword +// +// iqn.2016-01.com.example:mytarget +// myuser +// mypassword +// // // ---- -// func (p *StorageServerConnectionExtensionService) Update() *StorageServerConnectionExtensionServiceUpdateRequest { return &StorageServerConnectionExtensionServiceUpdateRequest{StorageServerConnectionExtensionService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *StorageServerConnectionExtensionService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -72990,8 +70441,6 @@ func (op *StorageServerConnectionExtensionService) String() string { return fmt.Sprintf("StorageServerConnectionExtensionService:%s", op.path) } -// -// type StorageServerConnectionExtensionsService struct { BaseService } @@ -73003,7 +70452,6 @@ func NewStorageServerConnectionExtensionsService(connection *Connection, path st return &result } -// // Creates a new storage server connection extension for the given host. // The extension lets the user define credentials for an iSCSI target for a specific host. For example to use // `myuser` and `mypassword` as the credentials when connecting to the iSCSI target from host `123` send a request @@ -73016,12 +70464,13 @@ func NewStorageServerConnectionExtensionsService(connection *Connection, path st // [source,xml] // ---- // -// iqn.2016-01.com.example:mytarget -// myuser -// mypassword +// +// iqn.2016-01.com.example:mytarget +// myuser +// mypassword +// // // ---- -// type StorageServerConnectionExtensionsServiceAddRequest struct { StorageServerConnectionExtensionsService *StorageServerConnectionExtensionsService header map[string]string @@ -73133,7 +70582,6 @@ func (p *StorageServerConnectionExtensionsServiceAddRequest) MustSend() *Storage } } -// // Creates a new storage server connection extension for the given host. // The extension lets the user define credentials for an iSCSI target for a specific host. For example to use // `myuser` and `mypassword` as the credentials when connecting to the iSCSI target from host `123` send a request @@ -73146,12 +70594,13 @@ func (p *StorageServerConnectionExtensionsServiceAddRequest) MustSend() *Storage // [source,xml] // ---- // -// iqn.2016-01.com.example:mytarget -// myuser -// mypassword +// +// iqn.2016-01.com.example:mytarget +// myuser +// mypassword +// // // ---- -// type StorageServerConnectionExtensionsServiceAddResponse struct { extension *StorageConnectionExtension } @@ -73170,7 +70619,6 @@ func (p *StorageServerConnectionExtensionsServiceAddResponse) MustExtension() *S return p.extension } -// // Creates a new storage server connection extension for the given host. // The extension lets the user define credentials for an iSCSI target for a specific host. For example to use // `myuser` and `mypassword` as the credentials when connecting to the iSCSI target from host `123` send a request @@ -73183,20 +70631,19 @@ func (p *StorageServerConnectionExtensionsServiceAddResponse) MustExtension() *S // [source,xml] // ---- // -// iqn.2016-01.com.example:mytarget -// myuser -// mypassword +// +// iqn.2016-01.com.example:mytarget +// myuser +// mypassword +// // // ---- -// func (p *StorageServerConnectionExtensionsService) Add() *StorageServerConnectionExtensionsServiceAddRequest { return &StorageServerConnectionExtensionsServiceAddRequest{StorageServerConnectionExtensionsService: p} } -// // Returns the list os storage connection extensions. // The order of the returned list of storage connections isn't guaranteed. -// type StorageServerConnectionExtensionsServiceListRequest struct { StorageServerConnectionExtensionsService *StorageServerConnectionExtensionsService header map[string]string @@ -73315,10 +70762,8 @@ func (p *StorageServerConnectionExtensionsServiceListRequest) MustSend() *Storag } } -// // Returns the list os storage connection extensions. // The order of the returned list of storage connections isn't guaranteed. -// type StorageServerConnectionExtensionsServiceListResponse struct { extensions *StorageConnectionExtensionSlice } @@ -73337,23 +70782,17 @@ func (p *StorageServerConnectionExtensionsServiceListResponse) MustExtensions() return p.extensions } -// // Returns the list os storage connection extensions. // The order of the returned list of storage connections isn't guaranteed. -// func (p *StorageServerConnectionExtensionsService) List() *StorageServerConnectionExtensionsServiceListRequest { return &StorageServerConnectionExtensionsServiceListRequest{StorageServerConnectionExtensionsService: p} } -// -// func (op *StorageServerConnectionExtensionsService) StorageConnectionExtensionService(id string) *StorageServerConnectionExtensionService { return NewStorageServerConnectionExtensionService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *StorageServerConnectionExtensionsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -73369,8 +70808,6 @@ func (op *StorageServerConnectionExtensionsService) String() string { return fmt.Sprintf("StorageServerConnectionExtensionsService:%s", op.path) } -// -// type StorageServerConnectionService struct { BaseService } @@ -73382,8 +70819,6 @@ func NewStorageServerConnectionService(connection *Connection, path string) *Sto return &result } -// -// type StorageServerConnectionServiceGetRequest struct { StorageServerConnectionService *StorageServerConnectionService header map[string]string @@ -73492,8 +70927,6 @@ func (p *StorageServerConnectionServiceGetRequest) MustSend() *StorageServerConn } } -// -// type StorageServerConnectionServiceGetResponse struct { conection *StorageConnection } @@ -73512,15 +70945,11 @@ func (p *StorageServerConnectionServiceGetResponse) MustConection() *StorageConn return p.conection } -// -// func (p *StorageServerConnectionService) Get() *StorageServerConnectionServiceGetRequest { return &StorageServerConnectionServiceGetRequest{StorageServerConnectionService: p} } -// // Update the specified Glusterfs storage connection in the system. -// type StorageServerConnectionServiceUpdateGlusterfsRequest struct { StorageServerConnectionService *StorageServerConnectionService header map[string]string @@ -73650,9 +71079,7 @@ func (p *StorageServerConnectionServiceUpdateGlusterfsRequest) MustSend() *Stora } } -// // Update the specified Glusterfs storage connection in the system. -// type StorageServerConnectionServiceUpdateGlusterfsResponse struct { connection *StorageConnection } @@ -73671,16 +71098,12 @@ func (p *StorageServerConnectionServiceUpdateGlusterfsResponse) MustConnection() return p.connection } -// // Update the specified Glusterfs storage connection in the system. -// func (p *StorageServerConnectionService) UpdateGlusterfs() *StorageServerConnectionServiceUpdateGlusterfsRequest { return &StorageServerConnectionServiceUpdateGlusterfsRequest{StorageServerConnectionService: p} } -// // Update the specified iSCSI storage connection in the system. -// type StorageServerConnectionServiceUpdateIscsiRequest struct { StorageServerConnectionService *StorageServerConnectionService header map[string]string @@ -73810,9 +71233,7 @@ func (p *StorageServerConnectionServiceUpdateIscsiRequest) MustSend() *StorageSe } } -// // Update the specified iSCSI storage connection in the system. -// type StorageServerConnectionServiceUpdateIscsiResponse struct { connection *StorageConnection } @@ -73831,16 +71252,12 @@ func (p *StorageServerConnectionServiceUpdateIscsiResponse) MustConnection() *St return p.connection } -// // Update the specified iSCSI storage connection in the system. -// func (p *StorageServerConnectionService) UpdateIscsi() *StorageServerConnectionServiceUpdateIscsiRequest { return &StorageServerConnectionServiceUpdateIscsiRequest{StorageServerConnectionService: p} } -// // Update the specified local storage connection in the system. -// type StorageServerConnectionServiceUpdateLocalRequest struct { StorageServerConnectionService *StorageServerConnectionService header map[string]string @@ -73970,9 +71387,7 @@ func (p *StorageServerConnectionServiceUpdateLocalRequest) MustSend() *StorageSe } } -// // Update the specified local storage connection in the system. -// type StorageServerConnectionServiceUpdateLocalResponse struct { connection *StorageConnection } @@ -73991,16 +71406,12 @@ func (p *StorageServerConnectionServiceUpdateLocalResponse) MustConnection() *St return p.connection } -// // Update the specified local storage connection in the system. -// func (p *StorageServerConnectionService) UpdateLocal() *StorageServerConnectionServiceUpdateLocalRequest { return &StorageServerConnectionServiceUpdateLocalRequest{StorageServerConnectionService: p} } -// // Update the specified NFS storage connection in the system. -// type StorageServerConnectionServiceUpdateNfsRequest struct { StorageServerConnectionService *StorageServerConnectionService header map[string]string @@ -74130,9 +71541,7 @@ func (p *StorageServerConnectionServiceUpdateNfsRequest) MustSend() *StorageServ } } -// // Update the specified NFS storage connection in the system. -// type StorageServerConnectionServiceUpdateNfsResponse struct { connection *StorageConnection } @@ -74151,18 +71560,14 @@ func (p *StorageServerConnectionServiceUpdateNfsResponse) MustConnection() *Stor return p.connection } -// // Update the specified NFS storage connection in the system. -// func (p *StorageServerConnectionService) UpdateNfs() *StorageServerConnectionServiceUpdateNfsRequest { return &StorageServerConnectionServiceUpdateNfsRequest{StorageServerConnectionService: p} } -// // Removes a storage connection. // A storage connection can only be deleted if neither storage domain nor LUN disks reference it. The host name or // id is optional; providing it disconnects (unmounts) the connection from that host. -// type StorageServerConnectionServiceRemoveRequest struct { StorageServerConnectionService *StorageServerConnectionService header map[string]string @@ -74276,24 +71681,19 @@ func (p *StorageServerConnectionServiceRemoveRequest) MustSend() *StorageServerC } } -// // Removes a storage connection. // A storage connection can only be deleted if neither storage domain nor LUN disks reference it. The host name or // id is optional; providing it disconnects (unmounts) the connection from that host. -// type StorageServerConnectionServiceRemoveResponse struct { } -// // Removes a storage connection. // A storage connection can only be deleted if neither storage domain nor LUN disks reference it. The host name or // id is optional; providing it disconnects (unmounts) the connection from that host. -// func (p *StorageServerConnectionService) Remove() *StorageServerConnectionServiceRemoveRequest { return &StorageServerConnectionServiceRemoveRequest{StorageServerConnectionService: p} } -// // Updates the storage connection. // For example, to change the address of an NFS storage server, send a request like this: // [source,xml] @@ -74304,7 +71704,9 @@ func (p *StorageServerConnectionService) Remove() *StorageServerConnectionServic // [source,xml] // ---- // -//
mynewnfs.example.com
+// +//
mynewnfs.example.com
+// //
// ---- // To change the connection of an iSCSI storage server, send a request like this: @@ -74316,11 +71718,12 @@ func (p *StorageServerConnectionService) Remove() *StorageServerConnectionServic // [source,xml] // ---- // -// 3260 -// iqn.2017-01.com.myhost:444 +// +// 3260 +// iqn.2017-01.com.myhost:444 +// // // ---- -// type StorageServerConnectionServiceUpdateRequest struct { StorageServerConnectionService *StorageServerConnectionService header map[string]string @@ -74452,7 +71855,6 @@ func (p *StorageServerConnectionServiceUpdateRequest) MustSend() *StorageServerC } } -// // Updates the storage connection. // For example, to change the address of an NFS storage server, send a request like this: // [source,xml] @@ -74463,7 +71865,9 @@ func (p *StorageServerConnectionServiceUpdateRequest) MustSend() *StorageServerC // [source,xml] // ---- // -//
mynewnfs.example.com
+// +//
mynewnfs.example.com
+// //
// ---- // To change the connection of an iSCSI storage server, send a request like this: @@ -74475,11 +71879,12 @@ func (p *StorageServerConnectionServiceUpdateRequest) MustSend() *StorageServerC // [source,xml] // ---- // -// 3260 -// iqn.2017-01.com.myhost:444 +// +// 3260 +// iqn.2017-01.com.myhost:444 +// // // ---- -// type StorageServerConnectionServiceUpdateResponse struct { connection *StorageConnection } @@ -74498,7 +71903,6 @@ func (p *StorageServerConnectionServiceUpdateResponse) MustConnection() *Storage return p.connection } -// // Updates the storage connection. // For example, to change the address of an NFS storage server, send a request like this: // [source,xml] @@ -74509,7 +71913,9 @@ func (p *StorageServerConnectionServiceUpdateResponse) MustConnection() *Storage // [source,xml] // ---- // -//
mynewnfs.example.com
+// +//
mynewnfs.example.com
+// //
// ---- // To change the connection of an iSCSI storage server, send a request like this: @@ -74521,18 +71927,17 @@ func (p *StorageServerConnectionServiceUpdateResponse) MustConnection() *Storage // [source,xml] // ---- // -// 3260 -// iqn.2017-01.com.myhost:444 +// +// 3260 +// iqn.2017-01.com.myhost:444 +// // // ---- -// func (p *StorageServerConnectionService) Update() *StorageServerConnectionServiceUpdateRequest { return &StorageServerConnectionServiceUpdateRequest{StorageServerConnectionService: p} } -// // Update the specified VFS storage connection in the system. -// type StorageServerConnectionServiceUpdateVfsRequest struct { StorageServerConnectionService *StorageServerConnectionService header map[string]string @@ -74662,9 +72067,7 @@ func (p *StorageServerConnectionServiceUpdateVfsRequest) MustSend() *StorageServ } } -// // Update the specified VFS storage connection in the system. -// type StorageServerConnectionServiceUpdateVfsResponse struct { connection *StorageConnection } @@ -74683,16 +72086,12 @@ func (p *StorageServerConnectionServiceUpdateVfsResponse) MustConnection() *Stor return p.connection } -// // Update the specified VFS storage connection in the system. -// func (p *StorageServerConnectionService) UpdateVfs() *StorageServerConnectionServiceUpdateVfsRequest { return &StorageServerConnectionServiceUpdateVfsRequest{StorageServerConnectionService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *StorageServerConnectionService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -74704,8 +72103,6 @@ func (op *StorageServerConnectionService) String() string { return fmt.Sprintf("StorageServerConnectionService:%s", op.path) } -// -// type StorageServerConnectionsService struct { BaseService } @@ -74717,7 +72114,6 @@ func NewStorageServerConnectionsService(connection *Connection, path string) *St return &result } -// // Creates a new storage connection. // For example, to create a new storage connection for the NFS server `mynfs.example.com` and NFS share // `/export/mydata` send a request like this: @@ -74729,15 +72125,16 @@ func NewStorageServerConnectionsService(connection *Connection, path string) *St // [source,xml] // ---- // -// nfs -//
mynfs.example.com
-// /export/mydata -// -// myhost -// +// +// nfs +//
mynfs.example.com
+// /export/mydata +// +// myhost +// +// //
// ---- -// type StorageServerConnectionsServiceAddRequest struct { StorageServerConnectionsService *StorageServerConnectionsService header map[string]string @@ -74849,7 +72246,6 @@ func (p *StorageServerConnectionsServiceAddRequest) MustSend() *StorageServerCon } } -// // Creates a new storage connection. // For example, to create a new storage connection for the NFS server `mynfs.example.com` and NFS share // `/export/mydata` send a request like this: @@ -74861,15 +72257,16 @@ func (p *StorageServerConnectionsServiceAddRequest) MustSend() *StorageServerCon // [source,xml] // ---- // -// nfs -//
mynfs.example.com
-// /export/mydata -// -// myhost -// +// +// nfs +//
mynfs.example.com
+// /export/mydata +// +// myhost +// +// //
// ---- -// type StorageServerConnectionsServiceAddResponse struct { connection *StorageConnection } @@ -74888,7 +72285,6 @@ func (p *StorageServerConnectionsServiceAddResponse) MustConnection() *StorageCo return p.connection } -// // Creates a new storage connection. // For example, to create a new storage connection for the NFS server `mynfs.example.com` and NFS share // `/export/mydata` send a request like this: @@ -74900,22 +72296,21 @@ func (p *StorageServerConnectionsServiceAddResponse) MustConnection() *StorageCo // [source,xml] // ---- // -// nfs -//
mynfs.example.com
-// /export/mydata -// -// myhost -// +// +// nfs +//
mynfs.example.com
+// /export/mydata +// +// myhost +// +// //
// ---- -// func (p *StorageServerConnectionsService) Add() *StorageServerConnectionsServiceAddRequest { return &StorageServerConnectionsServiceAddRequest{StorageServerConnectionsService: p} } -// // Add a Glusterfs storage connection to the system. -// type StorageServerConnectionsServiceAddGlusterfsRequest struct { StorageServerConnectionsService *StorageServerConnectionsService header map[string]string @@ -75027,9 +72422,7 @@ func (p *StorageServerConnectionsServiceAddGlusterfsRequest) MustSend() *Storage } } -// // Add a Glusterfs storage connection to the system. -// type StorageServerConnectionsServiceAddGlusterfsResponse struct { connection *StorageConnection } @@ -75048,16 +72441,12 @@ func (p *StorageServerConnectionsServiceAddGlusterfsResponse) MustConnection() * return p.connection } -// // Add a Glusterfs storage connection to the system. -// func (p *StorageServerConnectionsService) AddGlusterfs() *StorageServerConnectionsServiceAddGlusterfsRequest { return &StorageServerConnectionsServiceAddGlusterfsRequest{StorageServerConnectionsService: p} } -// // Add a iSCSI storage connection to the system. -// type StorageServerConnectionsServiceAddIscsiRequest struct { StorageServerConnectionsService *StorageServerConnectionsService header map[string]string @@ -75169,9 +72558,7 @@ func (p *StorageServerConnectionsServiceAddIscsiRequest) MustSend() *StorageServ } } -// // Add a iSCSI storage connection to the system. -// type StorageServerConnectionsServiceAddIscsiResponse struct { connection *StorageConnection } @@ -75190,17 +72577,13 @@ func (p *StorageServerConnectionsServiceAddIscsiResponse) MustConnection() *Stor return p.connection } -// // Add a iSCSI storage connection to the system. -// func (p *StorageServerConnectionsService) AddIscsi() *StorageServerConnectionsServiceAddIscsiRequest { return &StorageServerConnectionsServiceAddIscsiRequest{StorageServerConnectionsService: p} } -// // Returns the list of storage connections. // The order of the returned list of connections isn't guaranteed. -// type StorageServerConnectionsServiceListRequest struct { StorageServerConnectionsService *StorageServerConnectionsService header map[string]string @@ -75319,10 +72702,8 @@ func (p *StorageServerConnectionsServiceListRequest) MustSend() *StorageServerCo } } -// // Returns the list of storage connections. // The order of the returned list of connections isn't guaranteed. -// type StorageServerConnectionsServiceListResponse struct { connections *StorageConnectionSlice } @@ -75341,17 +72722,13 @@ func (p *StorageServerConnectionsServiceListResponse) MustConnections() *Storage return p.connections } -// // Returns the list of storage connections. // The order of the returned list of connections isn't guaranteed. -// func (p *StorageServerConnectionsService) List() *StorageServerConnectionsServiceListRequest { return &StorageServerConnectionsServiceListRequest{StorageServerConnectionsService: p} } -// // Add a local storage connection to the system. -// type StorageServerConnectionsServiceAddLocalRequest struct { StorageServerConnectionsService *StorageServerConnectionsService header map[string]string @@ -75463,9 +72840,7 @@ func (p *StorageServerConnectionsServiceAddLocalRequest) MustSend() *StorageServ } } -// // Add a local storage connection to the system. -// type StorageServerConnectionsServiceAddLocalResponse struct { connection *StorageConnection } @@ -75484,16 +72859,12 @@ func (p *StorageServerConnectionsServiceAddLocalResponse) MustConnection() *Stor return p.connection } -// // Add a local storage connection to the system. -// func (p *StorageServerConnectionsService) AddLocal() *StorageServerConnectionsServiceAddLocalRequest { return &StorageServerConnectionsServiceAddLocalRequest{StorageServerConnectionsService: p} } -// // Add a nfs storage connection to the system. -// type StorageServerConnectionsServiceAddNfsRequest struct { StorageServerConnectionsService *StorageServerConnectionsService header map[string]string @@ -75605,9 +72976,7 @@ func (p *StorageServerConnectionsServiceAddNfsRequest) MustSend() *StorageServer } } -// // Add a nfs storage connection to the system. -// type StorageServerConnectionsServiceAddNfsResponse struct { connection *StorageConnection } @@ -75626,16 +72995,12 @@ func (p *StorageServerConnectionsServiceAddNfsResponse) MustConnection() *Storag return p.connection } -// // Add a nfs storage connection to the system. -// func (p *StorageServerConnectionsService) AddNfs() *StorageServerConnectionsServiceAddNfsRequest { return &StorageServerConnectionsServiceAddNfsRequest{StorageServerConnectionsService: p} } -// // Add a vfs storage connection to the system. -// type StorageServerConnectionsServiceAddVfsRequest struct { StorageServerConnectionsService *StorageServerConnectionsService header map[string]string @@ -75747,9 +73112,7 @@ func (p *StorageServerConnectionsServiceAddVfsRequest) MustSend() *StorageServer } } -// // Add a vfs storage connection to the system. -// type StorageServerConnectionsServiceAddVfsResponse struct { connection *StorageConnection } @@ -75768,22 +73131,16 @@ func (p *StorageServerConnectionsServiceAddVfsResponse) MustConnection() *Storag return p.connection } -// // Add a vfs storage connection to the system. -// func (p *StorageServerConnectionsService) AddVfs() *StorageServerConnectionsServiceAddVfsRequest { return &StorageServerConnectionsServiceAddVfsRequest{StorageServerConnectionsService: p} } -// -// func (op *StorageServerConnectionsService) StorageConnectionService(id string) *StorageServerConnectionService { return NewStorageServerConnectionService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *StorageServerConnectionsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -75799,8 +73156,6 @@ func (op *StorageServerConnectionsService) String() string { return fmt.Sprintf("StorageServerConnectionsService:%s", op.path) } -// -// type StorageService struct { BaseService } @@ -75812,8 +73167,6 @@ func NewStorageService(connection *Connection, path string) *StorageService { return &result } -// -// type StorageServiceGetRequest struct { StorageService *StorageService header map[string]string @@ -75932,8 +73285,6 @@ func (p *StorageServiceGetRequest) MustSend() *StorageServiceGetResponse { } } -// -// type StorageServiceGetResponse struct { storage *HostStorage } @@ -75952,15 +73303,11 @@ func (p *StorageServiceGetResponse) MustStorage() *HostStorage { return p.storage } -// -// func (p *StorageService) Get() *StorageServiceGetRequest { return &StorageServiceGetRequest{StorageService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *StorageService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -75972,9 +73319,7 @@ func (op *StorageService) String() string { return fmt.Sprintf("StorageService:%s", op.path) } -// // A service that provides values of specific configuration option of the system. -// type SystemOptionService struct { BaseService } @@ -75986,7 +73331,6 @@ func NewSystemOptionService(connection *Connection, path string) *SystemOptionSe return &result } -// // Get the values of specific configuration option. // For example to retrieve the values of configuration option `MigrationPoliciesSupported` send a request like this: // [source] @@ -75997,25 +73341,27 @@ func NewSystemOptionService(connection *Connection, path string) *SystemOptionSe // [source,xml] // ---- // -// MigrationPoliciesSupported -// -// -// true -// 4.0 -// -// -// true -// 4.1 -// -// -// true -// 4.2 -// -// -// false -// 3.6 -// -// +// +// MigrationPoliciesSupported +// +// +// true +// 4.0 +// +// +// true +// 4.1 +// +// +// true +// 4.2 +// +// +// false +// 3.6 +// +// +// // // ---- // NOTE: The appropriate permissions are required to query configuration options. Some options can be queried @@ -76028,7 +73374,6 @@ func NewSystemOptionService(connection *Connection, path string) *SystemOptionSe // simultaneously with the engine. Usage by other applications is not supported. Therefore there will be no // documentation listing accessible configuration options. // ==== -// type SystemOptionServiceGetRequest struct { SystemOptionService *SystemOptionService header map[string]string @@ -76137,7 +73482,6 @@ func (p *SystemOptionServiceGetRequest) MustSend() *SystemOptionServiceGetRespon } } -// // Get the values of specific configuration option. // For example to retrieve the values of configuration option `MigrationPoliciesSupported` send a request like this: // [source] @@ -76148,25 +73492,27 @@ func (p *SystemOptionServiceGetRequest) MustSend() *SystemOptionServiceGetRespon // [source,xml] // ---- // -// MigrationPoliciesSupported -// -// -// true -// 4.0 -// -// -// true -// 4.1 -// -// -// true -// 4.2 -// -// -// false -// 3.6 -// -// +// +// MigrationPoliciesSupported +// +// +// true +// 4.0 +// +// +// true +// 4.1 +// +// +// true +// 4.2 +// +// +// false +// 3.6 +// +// +// // // ---- // NOTE: The appropriate permissions are required to query configuration options. Some options can be queried @@ -76179,7 +73525,6 @@ func (p *SystemOptionServiceGetRequest) MustSend() *SystemOptionServiceGetRespon // simultaneously with the engine. Usage by other applications is not supported. Therefore there will be no // documentation listing accessible configuration options. // ==== -// type SystemOptionServiceGetResponse struct { option *SystemOption } @@ -76198,7 +73543,6 @@ func (p *SystemOptionServiceGetResponse) MustOption() *SystemOption { return p.option } -// // Get the values of specific configuration option. // For example to retrieve the values of configuration option `MigrationPoliciesSupported` send a request like this: // [source] @@ -76209,25 +73553,27 @@ func (p *SystemOptionServiceGetResponse) MustOption() *SystemOption { // [source,xml] // ---- // -// MigrationPoliciesSupported -// -// -// true -// 4.0 -// -// -// true -// 4.1 -// -// -// true -// 4.2 -// -// -// false -// 3.6 -// -// +// +// MigrationPoliciesSupported +// +// +// true +// 4.0 +// +// +// true +// 4.1 +// +// +// true +// 4.2 +// +// +// false +// 3.6 +// +// +// // // ---- // NOTE: The appropriate permissions are required to query configuration options. Some options can be queried @@ -76240,14 +73586,11 @@ func (p *SystemOptionServiceGetResponse) MustOption() *SystemOption { // simultaneously with the engine. Usage by other applications is not supported. Therefore there will be no // documentation listing accessible configuration options. // ==== -// func (p *SystemOptionService) Get() *SystemOptionServiceGetRequest { return &SystemOptionServiceGetRequest{SystemOptionService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *SystemOptionService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -76259,9 +73602,7 @@ func (op *SystemOptionService) String() string { return fmt.Sprintf("SystemOptionService:%s", op.path) } -// // Service that provides values of configuration options of the system. -// type SystemOptionsService struct { BaseService } @@ -76273,16 +73614,12 @@ func NewSystemOptionsService(connection *Connection, path string) *SystemOptions return &result } -// // Returns a reference to the service that provides values of specific configuration option. -// func (op *SystemOptionsService) OptionService(id string) *SystemOptionService { return NewSystemOptionService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *SystemOptionsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -76298,10 +73635,8 @@ func (op *SystemOptionsService) String() string { return fmt.Sprintf("SystemOptionsService:%s", op.path) } -// // This service doesn't add any new methods, it is just a placeholder for the annotation that specifies the path of the // resource that manages the permissions assigned to the system object. -// type SystemPermissionsService struct { BaseService } @@ -76313,7 +73648,6 @@ func NewSystemPermissionsService(connection *Connection, path string) *SystemPer return &result } -// // Assign a new permission to a user or group for specific entity. // For example, to assign the `UserVmManager` role to the virtual machine with id `123` to the user with id `456` // send a request like this: @@ -76324,10 +73658,12 @@ func NewSystemPermissionsService(connection *Connection, path string) *SystemPer // [source,xml] // ---- // -// -// UserVmManager -// -// +// +// +// UserVmManager +// +// +// // // ---- // To assign the `SuperUser` role to the system to the user with id `456` send a request like this: @@ -76338,10 +73674,12 @@ func NewSystemPermissionsService(connection *Connection, path string) *SystemPer // [source,xml] // ---- // -// -// SuperUser -// -// +// +// +// SuperUser +// +// +// // // ---- // If you want to assign permission to the group instead of the user please replace the `user` element with the @@ -76354,13 +73692,14 @@ func NewSystemPermissionsService(connection *Connection, path string) *SystemPer // [source,xml] // ---- // -// -// UserRole -// -// +// +// +// UserRole +// +// +// // // ---- -// type SystemPermissionsServiceAddRequest struct { SystemPermissionsService *SystemPermissionsService header map[string]string @@ -76472,7 +73811,6 @@ func (p *SystemPermissionsServiceAddRequest) MustSend() *SystemPermissionsServic } } -// // Assign a new permission to a user or group for specific entity. // For example, to assign the `UserVmManager` role to the virtual machine with id `123` to the user with id `456` // send a request like this: @@ -76483,10 +73821,12 @@ func (p *SystemPermissionsServiceAddRequest) MustSend() *SystemPermissionsServic // [source,xml] // ---- // -// -// UserVmManager -// -// +// +// +// UserVmManager +// +// +// // // ---- // To assign the `SuperUser` role to the system to the user with id `456` send a request like this: @@ -76497,10 +73837,12 @@ func (p *SystemPermissionsServiceAddRequest) MustSend() *SystemPermissionsServic // [source,xml] // ---- // -// -// SuperUser -// -// +// +// +// SuperUser +// +// +// // // ---- // If you want to assign permission to the group instead of the user please replace the `user` element with the @@ -76513,13 +73855,14 @@ func (p *SystemPermissionsServiceAddRequest) MustSend() *SystemPermissionsServic // [source,xml] // ---- // -// -// UserRole -// -// +// +// +// UserRole +// +// +// // // ---- -// type SystemPermissionsServiceAddResponse struct { permission *Permission } @@ -76538,7 +73881,6 @@ func (p *SystemPermissionsServiceAddResponse) MustPermission() *Permission { return p.permission } -// // Assign a new permission to a user or group for specific entity. // For example, to assign the `UserVmManager` role to the virtual machine with id `123` to the user with id `456` // send a request like this: @@ -76549,10 +73891,12 @@ func (p *SystemPermissionsServiceAddResponse) MustPermission() *Permission { // [source,xml] // ---- // -// -// UserVmManager -// -// +// +// +// UserVmManager +// +// +// // // ---- // To assign the `SuperUser` role to the system to the user with id `456` send a request like this: @@ -76563,10 +73907,12 @@ func (p *SystemPermissionsServiceAddResponse) MustPermission() *Permission { // [source,xml] // ---- // -// -// SuperUser -// -// +// +// +// SuperUser +// +// +// // // ---- // If you want to assign permission to the group instead of the user please replace the `user` element with the @@ -76579,20 +73925,19 @@ func (p *SystemPermissionsServiceAddResponse) MustPermission() *Permission { // [source,xml] // ---- // -// -// UserRole -// -// +// +// +// UserRole +// +// +// // // ---- -// func (p *SystemPermissionsService) Add() *SystemPermissionsServiceAddRequest { return &SystemPermissionsServiceAddRequest{SystemPermissionsService: p} } -// // Add a new permission on the cluster to the group in the system. -// type SystemPermissionsServiceAddClusterPermissionRequest struct { SystemPermissionsService *SystemPermissionsService header map[string]string @@ -76704,9 +74049,7 @@ func (p *SystemPermissionsServiceAddClusterPermissionRequest) MustSend() *System } } -// // Add a new permission on the cluster to the group in the system. -// type SystemPermissionsServiceAddClusterPermissionResponse struct { permission *Permission } @@ -76725,16 +74068,12 @@ func (p *SystemPermissionsServiceAddClusterPermissionResponse) MustPermission() return p.permission } -// // Add a new permission on the cluster to the group in the system. -// func (p *SystemPermissionsService) AddClusterPermission() *SystemPermissionsServiceAddClusterPermissionRequest { return &SystemPermissionsServiceAddClusterPermissionRequest{SystemPermissionsService: p} } -// // Add a new permission on the data center to the group in the system. -// type SystemPermissionsServiceAddDataCenterPermissionRequest struct { SystemPermissionsService *SystemPermissionsService header map[string]string @@ -76846,9 +74185,7 @@ func (p *SystemPermissionsServiceAddDataCenterPermissionRequest) MustSend() *Sys } } -// // Add a new permission on the data center to the group in the system. -// type SystemPermissionsServiceAddDataCenterPermissionResponse struct { permission *Permission } @@ -76867,16 +74204,12 @@ func (p *SystemPermissionsServiceAddDataCenterPermissionResponse) MustPermission return p.permission } -// // Add a new permission on the data center to the group in the system. -// func (p *SystemPermissionsService) AddDataCenterPermission() *SystemPermissionsServiceAddDataCenterPermissionRequest { return &SystemPermissionsServiceAddDataCenterPermissionRequest{SystemPermissionsService: p} } -// // Add a new group level permission for a given virtual machine. -// type SystemPermissionsServiceAddGroupLevelRequest struct { SystemPermissionsService *SystemPermissionsService header map[string]string @@ -76988,9 +74321,7 @@ func (p *SystemPermissionsServiceAddGroupLevelRequest) MustSend() *SystemPermiss } } -// // Add a new group level permission for a given virtual machine. -// type SystemPermissionsServiceAddGroupLevelResponse struct { permission *Permission } @@ -77009,16 +74340,12 @@ func (p *SystemPermissionsServiceAddGroupLevelResponse) MustPermission() *Permis return p.permission } -// // Add a new group level permission for a given virtual machine. -// func (p *SystemPermissionsService) AddGroupLevel() *SystemPermissionsServiceAddGroupLevelRequest { return &SystemPermissionsServiceAddGroupLevelRequest{SystemPermissionsService: p} } -// // Add a new permission on the host to the group in the system. -// type SystemPermissionsServiceAddHostPermissionRequest struct { SystemPermissionsService *SystemPermissionsService header map[string]string @@ -77130,9 +74457,7 @@ func (p *SystemPermissionsServiceAddHostPermissionRequest) MustSend() *SystemPer } } -// // Add a new permission on the host to the group in the system. -// type SystemPermissionsServiceAddHostPermissionResponse struct { permission *Permission } @@ -77151,14 +74476,11 @@ func (p *SystemPermissionsServiceAddHostPermissionResponse) MustPermission() *Pe return p.permission } -// // Add a new permission on the host to the group in the system. -// func (p *SystemPermissionsService) AddHostPermission() *SystemPermissionsServiceAddHostPermissionRequest { return &SystemPermissionsServiceAddHostPermissionRequest{SystemPermissionsService: p} } -// // List all the permissions of the specific entity. // For example to list all the permissions of the cluster with id `123` send a request like this: // .... @@ -77167,20 +74489,21 @@ func (p *SystemPermissionsService) AddHostPermission() *SystemPermissionsService // [source,xml] // ---- // -// -// -// -// -// -// -// -// -// -// +// +// +// +// +// +// +// +// +// +// +// +// // // ---- // The order of the returned permissions isn't guaranteed. -// type SystemPermissionsServiceListRequest struct { SystemPermissionsService *SystemPermissionsService header map[string]string @@ -77289,7 +74612,6 @@ func (p *SystemPermissionsServiceListRequest) MustSend() *SystemPermissionsServi } } -// // List all the permissions of the specific entity. // For example to list all the permissions of the cluster with id `123` send a request like this: // .... @@ -77298,20 +74620,21 @@ func (p *SystemPermissionsServiceListRequest) MustSend() *SystemPermissionsServi // [source,xml] // ---- // -// -// -// -// -// -// -// -// -// -// +// +// +// +// +// +// +// +// +// +// +// +// // // ---- // The order of the returned permissions isn't guaranteed. -// type SystemPermissionsServiceListResponse struct { permissions *PermissionSlice } @@ -77330,7 +74653,6 @@ func (p *SystemPermissionsServiceListResponse) MustPermissions() *PermissionSlic return p.permissions } -// // List all the permissions of the specific entity. // For example to list all the permissions of the cluster with id `123` send a request like this: // .... @@ -77339,27 +74661,26 @@ func (p *SystemPermissionsServiceListResponse) MustPermissions() *PermissionSlic // [source,xml] // ---- // -// -// -// -// -// -// -// -// -// -// +// +// +// +// +// +// +// +// +// +// +// +// // // ---- // The order of the returned permissions isn't guaranteed. -// func (p *SystemPermissionsService) List() *SystemPermissionsServiceListRequest { return &SystemPermissionsServiceListRequest{SystemPermissionsService: p} } -// // Add a new permission on the storage domain to the group in the system. -// type SystemPermissionsServiceAddStorageDomainPermissionRequest struct { SystemPermissionsService *SystemPermissionsService header map[string]string @@ -77471,9 +74792,7 @@ func (p *SystemPermissionsServiceAddStorageDomainPermissionRequest) MustSend() * } } -// // Add a new permission on the storage domain to the group in the system. -// type SystemPermissionsServiceAddStorageDomainPermissionResponse struct { permission *Permission } @@ -77492,16 +74811,12 @@ func (p *SystemPermissionsServiceAddStorageDomainPermissionResponse) MustPermiss return p.permission } -// // Add a new permission on the storage domain to the group in the system. -// func (p *SystemPermissionsService) AddStorageDomainPermission() *SystemPermissionsServiceAddStorageDomainPermissionRequest { return &SystemPermissionsServiceAddStorageDomainPermissionRequest{SystemPermissionsService: p} } -// // Add a new permission on the template to the group in the system. -// type SystemPermissionsServiceAddTemplatePermissionRequest struct { SystemPermissionsService *SystemPermissionsService header map[string]string @@ -77613,9 +74928,7 @@ func (p *SystemPermissionsServiceAddTemplatePermissionRequest) MustSend() *Syste } } -// // Add a new permission on the template to the group in the system. -// type SystemPermissionsServiceAddTemplatePermissionResponse struct { permission *Permission } @@ -77634,16 +74947,12 @@ func (p *SystemPermissionsServiceAddTemplatePermissionResponse) MustPermission() return p.permission } -// // Add a new permission on the template to the group in the system. -// func (p *SystemPermissionsService) AddTemplatePermission() *SystemPermissionsServiceAddTemplatePermissionRequest { return &SystemPermissionsServiceAddTemplatePermissionRequest{SystemPermissionsService: p} } -// // Add a new user level permission for a given virtual machine. -// type SystemPermissionsServiceAddUserLevelRequest struct { SystemPermissionsService *SystemPermissionsService header map[string]string @@ -77755,9 +75064,7 @@ func (p *SystemPermissionsServiceAddUserLevelRequest) MustSend() *SystemPermissi } } -// // Add a new user level permission for a given virtual machine. -// type SystemPermissionsServiceAddUserLevelResponse struct { permission *Permission } @@ -77776,16 +75083,12 @@ func (p *SystemPermissionsServiceAddUserLevelResponse) MustPermission() *Permiss return p.permission } -// // Add a new user level permission for a given virtual machine. -// func (p *SystemPermissionsService) AddUserLevel() *SystemPermissionsServiceAddUserLevelRequest { return &SystemPermissionsServiceAddUserLevelRequest{SystemPermissionsService: p} } -// // Add a new permission on the vm to the group in the system. -// type SystemPermissionsServiceAddVmPermissionRequest struct { SystemPermissionsService *SystemPermissionsService header map[string]string @@ -77897,9 +75200,7 @@ func (p *SystemPermissionsServiceAddVmPermissionRequest) MustSend() *SystemPermi } } -// // Add a new permission on the vm to the group in the system. -// type SystemPermissionsServiceAddVmPermissionResponse struct { permission *Permission } @@ -77918,16 +75219,12 @@ func (p *SystemPermissionsServiceAddVmPermissionResponse) MustPermission() *Perm return p.permission } -// // Add a new permission on the vm to the group in the system. -// func (p *SystemPermissionsService) AddVmPermission() *SystemPermissionsServiceAddVmPermissionRequest { return &SystemPermissionsServiceAddVmPermissionRequest{SystemPermissionsService: p} } -// // Add a new permission on the vm pool to the group in the system. -// type SystemPermissionsServiceAddVmPoolPermissionRequest struct { SystemPermissionsService *SystemPermissionsService header map[string]string @@ -78039,9 +75336,7 @@ func (p *SystemPermissionsServiceAddVmPoolPermissionRequest) MustSend() *SystemP } } -// // Add a new permission on the vm pool to the group in the system. -// type SystemPermissionsServiceAddVmPoolPermissionResponse struct { permission *Permission } @@ -78060,24 +75355,18 @@ func (p *SystemPermissionsServiceAddVmPoolPermissionResponse) MustPermission() * return p.permission } -// // Add a new permission on the vm pool to the group in the system. -// func (p *SystemPermissionsService) AddVmPoolPermission() *SystemPermissionsServiceAddVmPoolPermissionRequest { return &SystemPermissionsServiceAddVmPoolPermissionRequest{SystemPermissionsService: p} } -// // Sub-resource locator method, returns individual permission resource on which the remainder of the URI is // dispatched. -// func (op *SystemPermissionsService) PermissionService(id string) *PermissionService { return NewPermissionService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *SystemPermissionsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -78093,8 +75382,6 @@ func (op *SystemPermissionsService) String() string { return fmt.Sprintf("SystemPermissionsService:%s", op.path) } -// -// type SystemService struct { BaseService } @@ -78106,7 +75393,6 @@ func NewSystemService(connection *Connection, path string) *SystemService { return &result } -// // Returns basic information describing the API, like the product name, the version number and a summary of the // number of relevant objects. // [source] @@ -78117,63 +75403,65 @@ func NewSystemService(connection *Connection, path string) *SystemService { // [source,xml] // ---- // -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// oVirt Engine -// ovirt.org -// -// 4 -// 4.0.4 -// 4 -// 0 -// 0 -// -// -// -// -// -// -// -// -// 0 -// 0 -// -// -// 0 -// 1 -// -// -// 1 -// 1 -// -// -// 0 -// 0 -// -// -// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// oVirt Engine +// ovirt.org +// +// 4 +// 4.0.4 +// 4 +// 0 +// 0 +// +// +// +// +// +// +// +// +// 0 +// 0 +// +// +// 0 +// 1 +// +// +// 1 +// 1 +// +// +// 0 +// 0 +// +// +// +// // // ---- // The entry point provides a user with links to the collections in a @@ -78181,7 +75469,6 @@ func NewSystemService(connection *Connection, path string) *SystemService { // provides a reference point for each link. // The entry point also contains other data such as `product_info`, // `special_objects` and `summary`. -// type SystemServiceGetRequest struct { SystemService *SystemService header map[string]string @@ -78290,7 +75577,6 @@ func (p *SystemServiceGetRequest) MustSend() *SystemServiceGetResponse { } } -// // Returns basic information describing the API, like the product name, the version number and a summary of the // number of relevant objects. // [source] @@ -78301,63 +75587,65 @@ func (p *SystemServiceGetRequest) MustSend() *SystemServiceGetResponse { // [source,xml] // ---- // -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// oVirt Engine -// ovirt.org -// -// 4 -// 4.0.4 -// 4 -// 0 -// 0 -// -// -// -// -// -// -// -// -// 0 -// 0 -// -// -// 0 -// 1 -// -// -// 1 -// 1 -// -// -// 0 -// 0 -// -// -// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// oVirt Engine +// ovirt.org +// +// 4 +// 4.0.4 +// 4 +// 0 +// 0 +// +// +// +// +// +// +// +// +// 0 +// 0 +// +// +// 0 +// 1 +// +// +// 1 +// 1 +// +// +// 0 +// 0 +// +// +// +// // // ---- // The entry point provides a user with links to the collections in a @@ -78365,7 +75653,6 @@ func (p *SystemServiceGetRequest) MustSend() *SystemServiceGetResponse { // provides a reference point for each link. // The entry point also contains other data such as `product_info`, // `special_objects` and `summary`. -// type SystemServiceGetResponse struct { api *Api } @@ -78384,7 +75671,6 @@ func (p *SystemServiceGetResponse) MustApi() *Api { return p.api } -// // Returns basic information describing the API, like the product name, the version number and a summary of the // number of relevant objects. // [source] @@ -78395,63 +75681,65 @@ func (p *SystemServiceGetResponse) MustApi() *Api { // [source,xml] // ---- // -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// oVirt Engine -// ovirt.org -// -// 4 -// 4.0.4 -// 4 -// 0 -// 0 -// -// -// -// -// -// -// -// -// 0 -// 0 -// -// -// 0 -// 1 -// -// -// 1 -// 1 -// -// -// 0 -// 0 -// -// -// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// oVirt Engine +// ovirt.org +// +// 4 +// 4.0.4 +// 4 +// 0 +// 0 +// +// +// +// +// +// +// +// +// 0 +// 0 +// +// +// 0 +// 1 +// +// +// 1 +// 1 +// +// +// 0 +// 0 +// +// +// +// // // ---- // The entry point provides a user with links to the collections in a @@ -78459,13 +75747,10 @@ func (p *SystemServiceGetResponse) MustApi() *Api { // provides a reference point for each link. // The entry point also contains other data such as `product_info`, // `special_objects` and `summary`. -// func (p *SystemService) Get() *SystemServiceGetRequest { return &SystemServiceGetRequest{SystemService: p} } -// -// type SystemServiceReloadConfigurationsRequest struct { SystemService *SystemService header map[string]string @@ -78578,270 +75863,184 @@ func (p *SystemServiceReloadConfigurationsRequest) MustSend() *SystemServiceRelo } } -// -// type SystemServiceReloadConfigurationsResponse struct { } -// -// func (p *SystemService) ReloadConfigurations() *SystemServiceReloadConfigurationsRequest { return &SystemServiceReloadConfigurationsRequest{SystemService: p} } -// // List all known affinity labels. -// func (op *SystemService) AffinityLabelsService() *AffinityLabelsService { return NewAffinityLabelsService(op.connection, fmt.Sprintf("%s/affinitylabels", op.path)) } -// -// func (op *SystemService) BookmarksService() *BookmarksService { return NewBookmarksService(op.connection, fmt.Sprintf("%s/bookmarks", op.path)) } -// // Reference to the service that provides information about the cluster levels supported by the system. -// func (op *SystemService) ClusterLevelsService() *ClusterLevelsService { return NewClusterLevelsService(op.connection, fmt.Sprintf("%s/clusterlevels", op.path)) } -// -// func (op *SystemService) ClustersService() *ClustersService { return NewClustersService(op.connection, fmt.Sprintf("%s/clusters", op.path)) } -// -// func (op *SystemService) CpuProfilesService() *CpuProfilesService { return NewCpuProfilesService(op.connection, fmt.Sprintf("%s/cpuprofiles", op.path)) } -// -// func (op *SystemService) DataCentersService() *DataCentersService { return NewDataCentersService(op.connection, fmt.Sprintf("%s/datacenters", op.path)) } -// -// func (op *SystemService) DiskProfilesService() *DiskProfilesService { return NewDiskProfilesService(op.connection, fmt.Sprintf("%s/diskprofiles", op.path)) } -// -// func (op *SystemService) DisksService() *DisksService { return NewDisksService(op.connection, fmt.Sprintf("%s/disks", op.path)) } -// -// func (op *SystemService) DomainsService() *DomainsService { return NewDomainsService(op.connection, fmt.Sprintf("%s/domains", op.path)) } -// -// func (op *SystemService) EventsService() *EventsService { return NewEventsService(op.connection, fmt.Sprintf("%s/events", op.path)) } -// -// func (op *SystemService) ExternalHostProvidersService() *ExternalHostProvidersService { return NewExternalHostProvidersService(op.connection, fmt.Sprintf("%s/externalhostproviders", op.path)) } -// // Reference to service facilitating import of external templates. -// func (op *SystemService) ExternalTemplateImportsService() *ExternalTemplateImportsService { return NewExternalTemplateImportsService(op.connection, fmt.Sprintf("%s/externaltemplateimports", op.path)) } -// // Reference to service facilitating import of external virtual machines. -// func (op *SystemService) ExternalVmImportsService() *ExternalVmImportsService { return NewExternalVmImportsService(op.connection, fmt.Sprintf("%s/externalvmimports", op.path)) } -// -// func (op *SystemService) GroupsService() *GroupsService { return NewGroupsService(op.connection, fmt.Sprintf("%s/groups", op.path)) } -// -// func (op *SystemService) HostsService() *HostsService { return NewHostsService(op.connection, fmt.Sprintf("%s/hosts", op.path)) } -// -// func (op *SystemService) IconsService() *IconsService { return NewIconsService(op.connection, fmt.Sprintf("%s/icons", op.path)) } -// // List of all image transfers being performed for image I/O in oVirt. -// func (op *SystemService) ImageTransfersService() *ImageTransfersService { return NewImageTransfersService(op.connection, fmt.Sprintf("%s/imagetransfers", op.path)) } -// -// func (op *SystemService) InstanceTypesService() *InstanceTypesService { return NewInstanceTypesService(op.connection, fmt.Sprintf("%s/instancetypes", op.path)) } -// // List all the jobs monitored by the engine. -// func (op *SystemService) JobsService() *JobsService { return NewJobsService(op.connection, fmt.Sprintf("%s/jobs", op.path)) } -// // List the available Katello errata assigned to the engine. -// func (op *SystemService) KatelloErrataService() *EngineKatelloErrataService { return NewEngineKatelloErrataService(op.connection, fmt.Sprintf("%s/katelloerrata", op.path)) } -// -// func (op *SystemService) MacPoolsService() *MacPoolsService { return NewMacPoolsService(op.connection, fmt.Sprintf("%s/macpools", op.path)) } -// // Network filters will enhance the admin ability to manage the network packets traffic from/to the participated // VMs. -// func (op *SystemService) NetworkFiltersService() *NetworkFiltersService { return NewNetworkFiltersService(op.connection, fmt.Sprintf("%s/networkfilters", op.path)) } -// -// func (op *SystemService) NetworksService() *NetworksService { return NewNetworksService(op.connection, fmt.Sprintf("%s/networks", op.path)) } -// -// func (op *SystemService) OpenstackImageProvidersService() *OpenstackImageProvidersService { return NewOpenstackImageProvidersService(op.connection, fmt.Sprintf("%s/openstackimageproviders", op.path)) } -// -// func (op *SystemService) OpenstackNetworkProvidersService() *OpenstackNetworkProvidersService { return NewOpenstackNetworkProvidersService(op.connection, fmt.Sprintf("%s/openstacknetworkproviders", op.path)) } -// -// func (op *SystemService) OpenstackVolumeProvidersService() *OpenstackVolumeProvidersService { return NewOpenstackVolumeProvidersService(op.connection, fmt.Sprintf("%s/openstackvolumeproviders", op.path)) } -// -// func (op *SystemService) OperatingSystemsService() *OperatingSystemsService { return NewOperatingSystemsService(op.connection, fmt.Sprintf("%s/operatingsystems", op.path)) } -// // Reference to the service that provides values of configuration options of the system. -// func (op *SystemService) OptionsService() *SystemOptionsService { return NewSystemOptionsService(op.connection, fmt.Sprintf("%s/options", op.path)) } -// -// func (op *SystemService) PermissionsService() *SystemPermissionsService { return NewSystemPermissionsService(op.connection, fmt.Sprintf("%s/permissions", op.path)) } -// -// func (op *SystemService) RolesService() *RolesService { return NewRolesService(op.connection, fmt.Sprintf("%s/roles", op.path)) } -// -// func (op *SystemService) SchedulingPoliciesService() *SchedulingPoliciesService { return NewSchedulingPoliciesService(op.connection, fmt.Sprintf("%s/schedulingpolicies", op.path)) } -// -// func (op *SystemService) SchedulingPolicyUnitsService() *SchedulingPolicyUnitsService { return NewSchedulingPolicyUnitsService(op.connection, fmt.Sprintf("%s/schedulingpolicyunits", op.path)) } -// -// func (op *SystemService) StorageConnectionsService() *StorageServerConnectionsService { return NewStorageServerConnectionsService(op.connection, fmt.Sprintf("%s/storageconnections", op.path)) } -// -// func (op *SystemService) StorageDomainsService() *StorageDomainsService { return NewStorageDomainsService(op.connection, fmt.Sprintf("%s/storagedomains", op.path)) } -// -// func (op *SystemService) TagsService() *TagsService { return NewTagsService(op.connection, fmt.Sprintf("%s/tags", op.path)) } -// -// func (op *SystemService) TemplatesService() *TemplatesService { return NewTemplatesService(op.connection, fmt.Sprintf("%s/templates", op.path)) } -// -// func (op *SystemService) UsersService() *UsersService { return NewUsersService(op.connection, fmt.Sprintf("%s/users", op.path)) } -// -// func (op *SystemService) VmPoolsService() *VmPoolsService { return NewVmPoolsService(op.connection, fmt.Sprintf("%s/vmpools", op.path)) } -// -// func (op *SystemService) VmsService() *VmsService { return NewVmsService(op.connection, fmt.Sprintf("%s/vms", op.path)) } -// -// func (op *SystemService) VnicProfilesService() *VnicProfilesService { return NewVnicProfilesService(op.connection, fmt.Sprintf("%s/vnicprofiles", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *SystemService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -79093,9 +76292,7 @@ func (op *SystemService) String() string { return fmt.Sprintf("SystemService:%s", op.path) } -// // A service to manage a specific tag in the system. -// type TagService struct { BaseService } @@ -79107,7 +76304,6 @@ func NewTagService(connection *Connection, path string) *TagService { return &result } -// // Gets the information about the tag. // For example to retrieve the information about the tag with the id `123` send a request like this: // .... @@ -79116,11 +76312,12 @@ func NewTagService(connection *Connection, path string) *TagService { // [source,xml] // ---- // -// root -// root +// +// root +// root +// // // ---- -// type TagServiceGetRequest struct { TagService *TagService header map[string]string @@ -79229,7 +76426,6 @@ func (p *TagServiceGetRequest) MustSend() *TagServiceGetResponse { } } -// // Gets the information about the tag. // For example to retrieve the information about the tag with the id `123` send a request like this: // .... @@ -79238,11 +76434,12 @@ func (p *TagServiceGetRequest) MustSend() *TagServiceGetResponse { // [source,xml] // ---- // -// root -// root +// +// root +// root +// // // ---- -// type TagServiceGetResponse struct { tag *Tag } @@ -79261,7 +76458,6 @@ func (p *TagServiceGetResponse) MustTag() *Tag { return p.tag } -// // Gets the information about the tag. // For example to retrieve the information about the tag with the id `123` send a request like this: // .... @@ -79270,22 +76466,21 @@ func (p *TagServiceGetResponse) MustTag() *Tag { // [source,xml] // ---- // -// root -// root +// +// root +// root +// // // ---- -// func (p *TagService) Get() *TagServiceGetRequest { return &TagServiceGetRequest{TagService: p} } -// // Removes the tag from the system. // For example to remove the tag with id `123` send a request like this: // .... // DELETE /ovirt-engine/api/tags/123 // .... -// type TagServiceRemoveRequest struct { TagService *TagService header map[string]string @@ -79389,28 +76584,23 @@ func (p *TagServiceRemoveRequest) MustSend() *TagServiceRemoveResponse { } } -// // Removes the tag from the system. // For example to remove the tag with id `123` send a request like this: // .... // DELETE /ovirt-engine/api/tags/123 // .... -// type TagServiceRemoveResponse struct { } -// // Removes the tag from the system. // For example to remove the tag with id `123` send a request like this: // .... // DELETE /ovirt-engine/api/tags/123 // .... -// func (p *TagService) Remove() *TagServiceRemoveRequest { return &TagServiceRemoveRequest{TagService: p} } -// // Updates the tag entity. // For example to update parent tag to tag with id `456` of the tag with id `123` send a request like this: // .... @@ -79420,7 +76610,9 @@ func (p *TagService) Remove() *TagServiceRemoveRequest { // [source,xml] // ---- // -// +// +// +// // // ---- // You may also specify a tag name instead of id. For example to update parent tag to tag with name `mytag` @@ -79428,12 +76620,13 @@ func (p *TagService) Remove() *TagServiceRemoveRequest { // [source,xml] // ---- // -// -// mytag -// +// +// +// mytag +// +// // // ---- -// type TagServiceUpdateRequest struct { TagService *TagService header map[string]string @@ -79555,7 +76748,6 @@ func (p *TagServiceUpdateRequest) MustSend() *TagServiceUpdateResponse { } } -// // Updates the tag entity. // For example to update parent tag to tag with id `456` of the tag with id `123` send a request like this: // .... @@ -79565,7 +76757,9 @@ func (p *TagServiceUpdateRequest) MustSend() *TagServiceUpdateResponse { // [source,xml] // ---- // -// +// +// +// // // ---- // You may also specify a tag name instead of id. For example to update parent tag to tag with name `mytag` @@ -79573,12 +76767,13 @@ func (p *TagServiceUpdateRequest) MustSend() *TagServiceUpdateResponse { // [source,xml] // ---- // -// -// mytag -// +// +// +// mytag +// +// // // ---- -// type TagServiceUpdateResponse struct { tag *Tag } @@ -79597,7 +76792,6 @@ func (p *TagServiceUpdateResponse) MustTag() *Tag { return p.tag } -// // Updates the tag entity. // For example to update parent tag to tag with id `456` of the tag with id `123` send a request like this: // .... @@ -79607,7 +76801,9 @@ func (p *TagServiceUpdateResponse) MustTag() *Tag { // [source,xml] // ---- // -// +// +// +// // // ---- // You may also specify a tag name instead of id. For example to update parent tag to tag with name `mytag` @@ -79615,19 +76811,18 @@ func (p *TagServiceUpdateResponse) MustTag() *Tag { // [source,xml] // ---- // -// -// mytag -// +// +// +// mytag +// +// // // ---- -// func (p *TagService) Update() *TagServiceUpdateRequest { return &TagServiceUpdateRequest{TagService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *TagService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -79639,9 +76834,7 @@ func (op *TagService) String() string { return fmt.Sprintf("TagService:%s", op.path) } -// // Represents a service to manage collection of the tags in the system. -// type TagsService struct { BaseService } @@ -79653,7 +76846,6 @@ func NewTagsService(connection *Connection, path string) *TagsService { return &result } -// // Add a new tag to the system. // For example, to add new tag with name `mytag` to the system send a request like this: // .... @@ -79663,7 +76855,9 @@ func NewTagsService(connection *Connection, path string) *TagsService { // [source,xml] // ---- // -// mytag +// +// mytag +// // // ---- // NOTE: The root tag is a special pseudo-tag assumed as the default parent tag if no parent tag is specified. @@ -79672,13 +76866,14 @@ func NewTagsService(connection *Connection, path string) *TagsService { // [source,xml] // ---- // -// mytag -// -// myparenttag -// +// +// mytag +// +// myparenttag +// +// // // ---- -// type TagsServiceAddRequest struct { TagsService *TagsService header map[string]string @@ -79790,7 +76985,6 @@ func (p *TagsServiceAddRequest) MustSend() *TagsServiceAddResponse { } } -// // Add a new tag to the system. // For example, to add new tag with name `mytag` to the system send a request like this: // .... @@ -79800,7 +76994,9 @@ func (p *TagsServiceAddRequest) MustSend() *TagsServiceAddResponse { // [source,xml] // ---- // -// mytag +// +// mytag +// // // ---- // NOTE: The root tag is a special pseudo-tag assumed as the default parent tag if no parent tag is specified. @@ -79809,13 +77005,14 @@ func (p *TagsServiceAddRequest) MustSend() *TagsServiceAddResponse { // [source,xml] // ---- // -// mytag -// -// myparenttag -// +// +// mytag +// +// myparenttag +// +// // // ---- -// type TagsServiceAddResponse struct { tag *Tag } @@ -79834,7 +77031,6 @@ func (p *TagsServiceAddResponse) MustTag() *Tag { return p.tag } -// // Add a new tag to the system. // For example, to add new tag with name `mytag` to the system send a request like this: // .... @@ -79844,7 +77040,9 @@ func (p *TagsServiceAddResponse) MustTag() *Tag { // [source,xml] // ---- // -// mytag +// +// mytag +// // // ---- // NOTE: The root tag is a special pseudo-tag assumed as the default parent tag if no parent tag is specified. @@ -79853,18 +77051,18 @@ func (p *TagsServiceAddResponse) MustTag() *Tag { // [source,xml] // ---- // -// mytag -// -// myparenttag -// +// +// mytag +// +// myparenttag +// +// // // ---- -// func (p *TagsService) Add() *TagsServiceAddRequest { return &TagsServiceAddRequest{TagsService: p} } -// // List the tags in the system. // For example to list the full hierarchy of the tags in the system send a request like this: // .... @@ -79873,30 +77071,32 @@ func (p *TagsService) Add() *TagsServiceAddRequest { // [source,xml] // ---- // -// -// root2 -// root2 -// -// -// -// root3 -// root3 -// -// -// -// root -// root -// +// +// +// root2 +// root2 +// +// +// +// root3 +// root3 +// +// +// +// root +// root +// +// // // ---- // In the previous XML output you can see the following hierarchy of the tags: // .... // root: (id: 111) // - root2 (id: 222) -// - root3 (id: 333) +// - root3 (id: 333) +// // .... // The order of the returned list of tags isn't guaranteed. -// type TagsServiceListRequest struct { TagsService *TagsService header map[string]string @@ -80015,7 +77215,6 @@ func (p *TagsServiceListRequest) MustSend() *TagsServiceListResponse { } } -// // List the tags in the system. // For example to list the full hierarchy of the tags in the system send a request like this: // .... @@ -80024,30 +77223,32 @@ func (p *TagsServiceListRequest) MustSend() *TagsServiceListResponse { // [source,xml] // ---- // -// -// root2 -// root2 -// -// -// -// root3 -// root3 -// -// -// -// root -// root -// +// +// +// root2 +// root2 +// +// +// +// root3 +// root3 +// +// +// +// root +// root +// +// // // ---- // In the previous XML output you can see the following hierarchy of the tags: // .... // root: (id: 111) // - root2 (id: 222) -// - root3 (id: 333) +// - root3 (id: 333) +// // .... // The order of the returned list of tags isn't guaranteed. -// type TagsServiceListResponse struct { tags *TagSlice } @@ -80066,7 +77267,6 @@ func (p *TagsServiceListResponse) MustTags() *TagSlice { return p.tags } -// // List the tags in the system. // For example to list the full hierarchy of the tags in the system send a request like this: // .... @@ -80075,44 +77275,42 @@ func (p *TagsServiceListResponse) MustTags() *TagSlice { // [source,xml] // ---- // -// -// root2 -// root2 -// -// -// -// root3 -// root3 -// -// -// -// root -// root -// +// +// +// root2 +// root2 +// +// +// +// root3 +// root3 +// +// +// +// root +// root +// +// // // ---- // In the previous XML output you can see the following hierarchy of the tags: // .... // root: (id: 111) // - root2 (id: 222) -// - root3 (id: 333) +// - root3 (id: 333) +// // .... // The order of the returned list of tags isn't guaranteed. -// func (p *TagsService) List() *TagsServiceListRequest { return &TagsServiceListRequest{TagsService: p} } -// // Reference to the service that manages a specific tag. -// func (op *TagsService) TagService(id string) *TagService { return NewTagService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *TagsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -80128,9 +77326,7 @@ func (op *TagsService) String() string { return fmt.Sprintf("TagsService:%s", op.path) } -// // A service managing a CD-ROM device on templates. -// type TemplateCdromService struct { BaseService } @@ -80142,14 +77338,12 @@ func NewTemplateCdromService(connection *Connection, path string) *TemplateCdrom return &result } -// // Returns the information about this CD-ROM device. // For example, to get information about the CD-ROM device of template `123` send a request like: // [source] // ---- // GET /ovirt-engine/api/templates/123/cdroms/ // ---- -// type TemplateCdromServiceGetRequest struct { TemplateCdromService *TemplateCdromService header map[string]string @@ -80258,14 +77452,12 @@ func (p *TemplateCdromServiceGetRequest) MustSend() *TemplateCdromServiceGetResp } } -// // Returns the information about this CD-ROM device. // For example, to get information about the CD-ROM device of template `123` send a request like: // [source] // ---- // GET /ovirt-engine/api/templates/123/cdroms/ // ---- -// type TemplateCdromServiceGetResponse struct { cdrom *Cdrom } @@ -80284,21 +77476,17 @@ func (p *TemplateCdromServiceGetResponse) MustCdrom() *Cdrom { return p.cdrom } -// // Returns the information about this CD-ROM device. // For example, to get information about the CD-ROM device of template `123` send a request like: // [source] // ---- // GET /ovirt-engine/api/templates/123/cdroms/ // ---- -// func (p *TemplateCdromService) Get() *TemplateCdromServiceGetRequest { return &TemplateCdromServiceGetRequest{TemplateCdromService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *TemplateCdromService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -80310,9 +77498,7 @@ func (op *TemplateCdromService) String() string { return fmt.Sprintf("TemplateCdromService:%s", op.path) } -// // Lists the CD-ROM devices of a template. -// type TemplateCdromsService struct { BaseService } @@ -80324,10 +77510,8 @@ func NewTemplateCdromsService(connection *Connection, path string) *TemplateCdro return &result } -// // Returns the list of CD-ROM devices of the template. // The order of the returned list of CD-ROM devices isn't guaranteed. -// type TemplateCdromsServiceListRequest struct { TemplateCdromsService *TemplateCdromsService header map[string]string @@ -80446,10 +77630,8 @@ func (p *TemplateCdromsServiceListRequest) MustSend() *TemplateCdromsServiceList } } -// // Returns the list of CD-ROM devices of the template. // The order of the returned list of CD-ROM devices isn't guaranteed. -// type TemplateCdromsServiceListResponse struct { cdroms *CdromSlice } @@ -80468,24 +77650,18 @@ func (p *TemplateCdromsServiceListResponse) MustCdroms() *CdromSlice { return p.cdroms } -// // Returns the list of CD-ROM devices of the template. // The order of the returned list of CD-ROM devices isn't guaranteed. -// func (p *TemplateCdromsService) List() *TemplateCdromsServiceListRequest { return &TemplateCdromsServiceListRequest{TemplateCdromsService: p} } -// // Returns a reference to the service that manages a specific CD-ROM device. -// func (op *TemplateCdromsService) CdromService(id string) *TemplateCdromService { return NewTemplateCdromService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *TemplateCdromsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -80501,9 +77677,7 @@ func (op *TemplateCdromsService) String() string { return fmt.Sprintf("TemplateCdromsService:%s", op.path) } -// // This service manages the attachment of a disk to a template. -// type TemplateDiskAttachmentService struct { BaseService } @@ -80515,9 +77689,7 @@ func NewTemplateDiskAttachmentService(connection *Connection, path string) *Temp return &result } -// // Returns the details of the attachment. -// type TemplateDiskAttachmentServiceGetRequest struct { TemplateDiskAttachmentService *TemplateDiskAttachmentService header map[string]string @@ -80626,9 +77798,7 @@ func (p *TemplateDiskAttachmentServiceGetRequest) MustSend() *TemplateDiskAttach } } -// // Returns the details of the attachment. -// type TemplateDiskAttachmentServiceGetResponse struct { attachment *DiskAttachment } @@ -80647,14 +77817,11 @@ func (p *TemplateDiskAttachmentServiceGetResponse) MustAttachment() *DiskAttachm return p.attachment } -// // Returns the details of the attachment. -// func (p *TemplateDiskAttachmentService) Get() *TemplateDiskAttachmentServiceGetRequest { return &TemplateDiskAttachmentServiceGetRequest{TemplateDiskAttachmentService: p} } -// // Removes the disk from the template. The disk will only be removed if there are other existing copies of the // disk on other storage domains. // A storage domain has to be specified to determine which of the copies should be removed (template disks can @@ -80663,7 +77830,6 @@ func (p *TemplateDiskAttachmentService) Get() *TemplateDiskAttachmentServiceGetR // ---- // DELETE /ovirt-engine/api/templates/{template:id}/diskattachments/{attachment:id}?storage_domain=072fbaa1-08f3-4a40-9f34-a5ca22dd1d74 // ---- -// type TemplateDiskAttachmentServiceRemoveRequest struct { TemplateDiskAttachmentService *TemplateDiskAttachmentService header map[string]string @@ -80777,7 +77943,6 @@ func (p *TemplateDiskAttachmentServiceRemoveRequest) MustSend() *TemplateDiskAtt } } -// // Removes the disk from the template. The disk will only be removed if there are other existing copies of the // disk on other storage domains. // A storage domain has to be specified to determine which of the copies should be removed (template disks can @@ -80786,11 +77951,9 @@ func (p *TemplateDiskAttachmentServiceRemoveRequest) MustSend() *TemplateDiskAtt // ---- // DELETE /ovirt-engine/api/templates/{template:id}/diskattachments/{attachment:id}?storage_domain=072fbaa1-08f3-4a40-9f34-a5ca22dd1d74 // ---- -// type TemplateDiskAttachmentServiceRemoveResponse struct { } -// // Removes the disk from the template. The disk will only be removed if there are other existing copies of the // disk on other storage domains. // A storage domain has to be specified to determine which of the copies should be removed (template disks can @@ -80799,14 +77962,11 @@ type TemplateDiskAttachmentServiceRemoveResponse struct { // ---- // DELETE /ovirt-engine/api/templates/{template:id}/diskattachments/{attachment:id}?storage_domain=072fbaa1-08f3-4a40-9f34-a5ca22dd1d74 // ---- -// func (p *TemplateDiskAttachmentService) Remove() *TemplateDiskAttachmentServiceRemoveRequest { return &TemplateDiskAttachmentServiceRemoveRequest{TemplateDiskAttachmentService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *TemplateDiskAttachmentService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -80818,10 +77978,8 @@ func (op *TemplateDiskAttachmentService) String() string { return fmt.Sprintf("TemplateDiskAttachmentService:%s", op.path) } -// // This service manages the set of disks attached to a template. Each attached disk is represented by a // <>. -// type TemplateDiskAttachmentsService struct { BaseService } @@ -80833,10 +77991,8 @@ func NewTemplateDiskAttachmentsService(connection *Connection, path string) *Tem return &result } -// // List the disks that are attached to the template. // The order of the returned list of attachments isn't guaranteed. -// type TemplateDiskAttachmentsServiceListRequest struct { TemplateDiskAttachmentsService *TemplateDiskAttachmentsService header map[string]string @@ -80945,10 +78101,8 @@ func (p *TemplateDiskAttachmentsServiceListRequest) MustSend() *TemplateDiskAtta } } -// // List the disks that are attached to the template. // The order of the returned list of attachments isn't guaranteed. -// type TemplateDiskAttachmentsServiceListResponse struct { attachments *DiskAttachmentSlice } @@ -80967,24 +78121,18 @@ func (p *TemplateDiskAttachmentsServiceListResponse) MustAttachments() *DiskAtta return p.attachments } -// // List the disks that are attached to the template. // The order of the returned list of attachments isn't guaranteed. -// func (p *TemplateDiskAttachmentsService) List() *TemplateDiskAttachmentsServiceListRequest { return &TemplateDiskAttachmentsServiceListRequest{TemplateDiskAttachmentsService: p} } -// // Reference to the service that manages a specific attachment. -// func (op *TemplateDiskAttachmentsService) AttachmentService(id string) *TemplateDiskAttachmentService { return NewTemplateDiskAttachmentService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *TemplateDiskAttachmentsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -81000,8 +78148,6 @@ func (op *TemplateDiskAttachmentsService) String() string { return fmt.Sprintf("TemplateDiskAttachmentsService:%s", op.path) } -// -// type TemplateDiskService struct { BaseService } @@ -81013,9 +78159,7 @@ func NewTemplateDiskService(connection *Connection, path string) *TemplateDiskSe return &result } -// // Copy the specified disk attached to the template to a specific storage domain. -// type TemplateDiskServiceCopyRequest struct { TemplateDiskService *TemplateDiskService header map[string]string @@ -81144,21 +78288,15 @@ func (p *TemplateDiskServiceCopyRequest) MustSend() *TemplateDiskServiceCopyResp } } -// // Copy the specified disk attached to the template to a specific storage domain. -// type TemplateDiskServiceCopyResponse struct { } -// // Copy the specified disk attached to the template to a specific storage domain. -// func (p *TemplateDiskService) Copy() *TemplateDiskServiceCopyRequest { return &TemplateDiskServiceCopyRequest{TemplateDiskService: p} } -// -// type TemplateDiskServiceExportRequest struct { TemplateDiskService *TemplateDiskService header map[string]string @@ -81287,19 +78425,13 @@ func (p *TemplateDiskServiceExportRequest) MustSend() *TemplateDiskServiceExport } } -// -// type TemplateDiskServiceExportResponse struct { } -// -// func (p *TemplateDiskService) Export() *TemplateDiskServiceExportRequest { return &TemplateDiskServiceExportRequest{TemplateDiskService: p} } -// -// type TemplateDiskServiceGetRequest struct { TemplateDiskService *TemplateDiskService header map[string]string @@ -81408,8 +78540,6 @@ func (p *TemplateDiskServiceGetRequest) MustSend() *TemplateDiskServiceGetRespon } } -// -// type TemplateDiskServiceGetResponse struct { disk *Disk } @@ -81428,14 +78558,10 @@ func (p *TemplateDiskServiceGetResponse) MustDisk() *Disk { return p.disk } -// -// func (p *TemplateDiskService) Get() *TemplateDiskServiceGetRequest { return &TemplateDiskServiceGetRequest{TemplateDiskService: p} } -// -// type TemplateDiskServiceRemoveRequest struct { TemplateDiskService *TemplateDiskService header map[string]string @@ -81539,20 +78665,14 @@ func (p *TemplateDiskServiceRemoveRequest) MustSend() *TemplateDiskServiceRemove } } -// -// type TemplateDiskServiceRemoveResponse struct { } -// -// func (p *TemplateDiskService) Remove() *TemplateDiskServiceRemoveRequest { return &TemplateDiskServiceRemoveRequest{TemplateDiskService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *TemplateDiskService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -81564,8 +78684,6 @@ func (op *TemplateDiskService) String() string { return fmt.Sprintf("TemplateDiskService:%s", op.path) } -// -// type TemplateDisksService struct { BaseService } @@ -81577,10 +78695,8 @@ func NewTemplateDisksService(connection *Connection, path string) *TemplateDisks return &result } -// // Returns the list of disks of the template. // The order of the returned list of disks isn't guaranteed. -// type TemplateDisksServiceListRequest struct { TemplateDisksService *TemplateDisksService header map[string]string @@ -81699,10 +78815,8 @@ func (p *TemplateDisksServiceListRequest) MustSend() *TemplateDisksServiceListRe } } -// // Returns the list of disks of the template. // The order of the returned list of disks isn't guaranteed. -// type TemplateDisksServiceListResponse struct { disks *DiskSlice } @@ -81721,23 +78835,17 @@ func (p *TemplateDisksServiceListResponse) MustDisks() *DiskSlice { return p.disks } -// // Returns the list of disks of the template. // The order of the returned list of disks isn't guaranteed. -// func (p *TemplateDisksService) List() *TemplateDisksServiceListRequest { return &TemplateDisksServiceListRequest{TemplateDisksService: p} } -// -// func (op *TemplateDisksService) DiskService(id string) *TemplateDiskService { return NewTemplateDiskService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *TemplateDisksService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -81753,8 +78861,6 @@ func (op *TemplateDisksService) String() string { return fmt.Sprintf("TemplateDisksService:%s", op.path) } -// -// type TemplateGraphicsConsoleService struct { BaseService } @@ -81766,9 +78872,7 @@ func NewTemplateGraphicsConsoleService(connection *Connection, path string) *Tem return &result } -// // Gets graphics console configuration of the template. -// type TemplateGraphicsConsoleServiceGetRequest struct { TemplateGraphicsConsoleService *TemplateGraphicsConsoleService header map[string]string @@ -81877,9 +78981,7 @@ func (p *TemplateGraphicsConsoleServiceGetRequest) MustSend() *TemplateGraphicsC } } -// // Gets graphics console configuration of the template. -// type TemplateGraphicsConsoleServiceGetResponse struct { console *GraphicsConsole } @@ -81898,16 +79000,12 @@ func (p *TemplateGraphicsConsoleServiceGetResponse) MustConsole() *GraphicsConso return p.console } -// // Gets graphics console configuration of the template. -// func (p *TemplateGraphicsConsoleService) Get() *TemplateGraphicsConsoleServiceGetRequest { return &TemplateGraphicsConsoleServiceGetRequest{TemplateGraphicsConsoleService: p} } -// // Remove the graphics console from the template. -// type TemplateGraphicsConsoleServiceRemoveRequest struct { TemplateGraphicsConsoleService *TemplateGraphicsConsoleService header map[string]string @@ -82011,22 +79109,16 @@ func (p *TemplateGraphicsConsoleServiceRemoveRequest) MustSend() *TemplateGraphi } } -// // Remove the graphics console from the template. -// type TemplateGraphicsConsoleServiceRemoveResponse struct { } -// // Remove the graphics console from the template. -// func (p *TemplateGraphicsConsoleService) Remove() *TemplateGraphicsConsoleServiceRemoveRequest { return &TemplateGraphicsConsoleServiceRemoveRequest{TemplateGraphicsConsoleService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *TemplateGraphicsConsoleService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -82038,8 +79130,6 @@ func (op *TemplateGraphicsConsoleService) String() string { return fmt.Sprintf("TemplateGraphicsConsoleService:%s", op.path) } -// -// type TemplateGraphicsConsolesService struct { BaseService } @@ -82051,9 +79141,7 @@ func NewTemplateGraphicsConsolesService(connection *Connection, path string) *Te return &result } -// // Add new graphics console to the template. -// type TemplateGraphicsConsolesServiceAddRequest struct { TemplateGraphicsConsolesService *TemplateGraphicsConsolesService header map[string]string @@ -82165,9 +79253,7 @@ func (p *TemplateGraphicsConsolesServiceAddRequest) MustSend() *TemplateGraphics } } -// // Add new graphics console to the template. -// type TemplateGraphicsConsolesServiceAddResponse struct { console *GraphicsConsole } @@ -82186,17 +79272,13 @@ func (p *TemplateGraphicsConsolesServiceAddResponse) MustConsole() *GraphicsCons return p.console } -// // Add new graphics console to the template. -// func (p *TemplateGraphicsConsolesService) Add() *TemplateGraphicsConsolesServiceAddRequest { return &TemplateGraphicsConsolesServiceAddRequest{TemplateGraphicsConsolesService: p} } -// // Lists all the configured graphics consoles of the template. // The order of the returned list of graphics consoles isn't guaranteed. -// type TemplateGraphicsConsolesServiceListRequest struct { TemplateGraphicsConsolesService *TemplateGraphicsConsolesService header map[string]string @@ -82315,10 +79397,8 @@ func (p *TemplateGraphicsConsolesServiceListRequest) MustSend() *TemplateGraphic } } -// // Lists all the configured graphics consoles of the template. // The order of the returned list of graphics consoles isn't guaranteed. -// type TemplateGraphicsConsolesServiceListResponse struct { consoles *GraphicsConsoleSlice } @@ -82337,24 +79417,18 @@ func (p *TemplateGraphicsConsolesServiceListResponse) MustConsoles() *GraphicsCo return p.consoles } -// // Lists all the configured graphics consoles of the template. // The order of the returned list of graphics consoles isn't guaranteed. -// func (p *TemplateGraphicsConsolesService) List() *TemplateGraphicsConsolesServiceListRequest { return &TemplateGraphicsConsolesServiceListRequest{TemplateGraphicsConsolesService: p} } -// // Returns a reference to the service that manages a specific template graphics console. -// func (op *TemplateGraphicsConsolesService) ConsoleService(id string) *TemplateGraphicsConsoleService { return NewTemplateGraphicsConsoleService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *TemplateGraphicsConsolesService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -82370,8 +79444,6 @@ func (op *TemplateGraphicsConsolesService) String() string { return fmt.Sprintf("TemplateGraphicsConsolesService:%s", op.path) } -// -// type TemplateNicService struct { BaseService } @@ -82383,8 +79455,6 @@ func NewTemplateNicService(connection *Connection, path string) *TemplateNicServ return &result } -// -// type TemplateNicServiceGetRequest struct { TemplateNicService *TemplateNicService header map[string]string @@ -82493,8 +79563,6 @@ func (p *TemplateNicServiceGetRequest) MustSend() *TemplateNicServiceGetResponse } } -// -// type TemplateNicServiceGetResponse struct { nic *Nic } @@ -82513,14 +79581,10 @@ func (p *TemplateNicServiceGetResponse) MustNic() *Nic { return p.nic } -// -// func (p *TemplateNicService) Get() *TemplateNicServiceGetRequest { return &TemplateNicServiceGetRequest{TemplateNicService: p} } -// -// type TemplateNicServiceRemoveRequest struct { TemplateNicService *TemplateNicService header map[string]string @@ -82624,20 +79688,14 @@ func (p *TemplateNicServiceRemoveRequest) MustSend() *TemplateNicServiceRemoveRe } } -// -// type TemplateNicServiceRemoveResponse struct { } -// -// func (p *TemplateNicService) Remove() *TemplateNicServiceRemoveRequest { return &TemplateNicServiceRemoveRequest{TemplateNicService: p} } -// // Update the specified network interface card attached to the template. -// type TemplateNicServiceUpdateRequest struct { TemplateNicService *TemplateNicService header map[string]string @@ -82759,9 +79817,7 @@ func (p *TemplateNicServiceUpdateRequest) MustSend() *TemplateNicServiceUpdateRe } } -// // Update the specified network interface card attached to the template. -// type TemplateNicServiceUpdateResponse struct { nic *Nic } @@ -82780,16 +79836,12 @@ func (p *TemplateNicServiceUpdateResponse) MustNic() *Nic { return p.nic } -// // Update the specified network interface card attached to the template. -// func (p *TemplateNicService) Update() *TemplateNicServiceUpdateRequest { return &TemplateNicServiceUpdateRequest{TemplateNicService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *TemplateNicService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -82801,8 +79853,6 @@ func (op *TemplateNicService) String() string { return fmt.Sprintf("TemplateNicService:%s", op.path) } -// -// type TemplateNicsService struct { BaseService } @@ -82814,9 +79864,7 @@ func NewTemplateNicsService(connection *Connection, path string) *TemplateNicsSe return &result } -// // Add a new network interface card to the template. -// type TemplateNicsServiceAddRequest struct { TemplateNicsService *TemplateNicsService header map[string]string @@ -82928,9 +79976,7 @@ func (p *TemplateNicsServiceAddRequest) MustSend() *TemplateNicsServiceAddRespon } } -// // Add a new network interface card to the template. -// type TemplateNicsServiceAddResponse struct { nic *Nic } @@ -82949,17 +79995,13 @@ func (p *TemplateNicsServiceAddResponse) MustNic() *Nic { return p.nic } -// // Add a new network interface card to the template. -// func (p *TemplateNicsService) Add() *TemplateNicsServiceAddRequest { return &TemplateNicsServiceAddRequest{TemplateNicsService: p} } -// // Returns the list of NICs of the template. // The order of the returned list of NICs isn't guaranteed. -// type TemplateNicsServiceListRequest struct { TemplateNicsService *TemplateNicsService header map[string]string @@ -83078,10 +80120,8 @@ func (p *TemplateNicsServiceListRequest) MustSend() *TemplateNicsServiceListResp } } -// // Returns the list of NICs of the template. // The order of the returned list of NICs isn't guaranteed. -// type TemplateNicsServiceListResponse struct { nics *NicSlice } @@ -83100,23 +80140,17 @@ func (p *TemplateNicsServiceListResponse) MustNics() *NicSlice { return p.nics } -// // Returns the list of NICs of the template. // The order of the returned list of NICs isn't guaranteed. -// func (p *TemplateNicsService) List() *TemplateNicsServiceListRequest { return &TemplateNicsServiceListRequest{TemplateNicsService: p} } -// -// func (op *TemplateNicsService) NicService(id string) *TemplateNicService { return NewTemplateNicService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *TemplateNicsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -83132,9 +80166,7 @@ func (op *TemplateNicsService) String() string { return fmt.Sprintf("TemplateNicsService:%s", op.path) } -// // Manages the virtual machine template and template versions. -// type TemplateService struct { BaseService } @@ -83146,7 +80178,6 @@ func NewTemplateService(connection *Connection, path string) *TemplateService { return &result } -// // Exports a template to the data center export domain. // For example, send the following request: // [source] @@ -83157,11 +80188,12 @@ func NewTemplateService(connection *Connection, path string) *TemplateService { // [source,xml] // ---- // -// -// true +// +// +// true +// // // ---- -// type TemplateServiceExportRequest struct { TemplateService *TemplateService header map[string]string @@ -83281,7 +80313,6 @@ func (p *TemplateServiceExportRequest) MustSend() *TemplateServiceExportResponse } } -// // Exports a template to the data center export domain. // For example, send the following request: // [source] @@ -83292,15 +80323,15 @@ func (p *TemplateServiceExportRequest) MustSend() *TemplateServiceExportResponse // [source,xml] // ---- // -// -// true +// +// +// true +// // // ---- -// type TemplateServiceExportResponse struct { } -// // Exports a template to the data center export domain. // For example, send the following request: // [source] @@ -83311,18 +80342,17 @@ type TemplateServiceExportResponse struct { // [source,xml] // ---- // -// -// true +// +// +// true +// // // ---- -// func (p *TemplateService) Export() *TemplateServiceExportRequest { return &TemplateServiceExportRequest{TemplateService: p} } -// // Returns the information about this template or template version. -// type TemplateServiceGetRequest struct { TemplateService *TemplateService header map[string]string @@ -83441,9 +80471,7 @@ func (p *TemplateServiceGetRequest) MustSend() *TemplateServiceGetResponse { } } -// // Returns the information about this template or template version. -// type TemplateServiceGetResponse struct { template *Template } @@ -83462,20 +80490,16 @@ func (p *TemplateServiceGetResponse) MustTemplate() *Template { return p.template } -// // Returns the information about this template or template version. -// func (p *TemplateService) Get() *TemplateServiceGetRequest { return &TemplateServiceGetRequest{TemplateService: p} } -// // Removes a virtual machine template. // [source] // ---- // DELETE /ovirt-engine/api/templates/123 // ---- -// type TemplateServiceRemoveRequest struct { TemplateService *TemplateService header map[string]string @@ -83579,30 +80603,24 @@ func (p *TemplateServiceRemoveRequest) MustSend() *TemplateServiceRemoveResponse } } -// // Removes a virtual machine template. // [source] // ---- // DELETE /ovirt-engine/api/templates/123 // ---- -// type TemplateServiceRemoveResponse struct { } -// // Removes a virtual machine template. // [source] // ---- // DELETE /ovirt-engine/api/templates/123 // ---- -// func (p *TemplateService) Remove() *TemplateServiceRemoveRequest { return &TemplateServiceRemoveRequest{TemplateService: p} } -// // Exports a template to an export domain. -// type TemplateServiceExportToExportDomainRequest struct { TemplateService *TemplateService header map[string]string @@ -83722,22 +80740,16 @@ func (p *TemplateServiceExportToExportDomainRequest) MustSend() *TemplateService } } -// // Exports a template to an export domain. -// type TemplateServiceExportToExportDomainResponse struct { } -// // Exports a template to an export domain. -// func (p *TemplateService) ExportToExportDomain() *TemplateServiceExportToExportDomainRequest { return &TemplateServiceExportToExportDomainRequest{TemplateService: p} } -// // Exports a template as an OVA file to a given path on a specified host. -// type TemplateServiceExportToPathOnHostRequest struct { TemplateService *TemplateService header map[string]string @@ -83882,20 +80894,15 @@ func (p *TemplateServiceExportToPathOnHostRequest) MustSend() *TemplateServiceEx } } -// // Exports a template as an OVA file to a given path on a specified host. -// type TemplateServiceExportToPathOnHostResponse struct { } -// // Exports a template as an OVA file to a given path on a specified host. -// func (p *TemplateService) ExportToPathOnHost() *TemplateServiceExportToPathOnHostRequest { return &TemplateServiceExportToPathOnHostRequest{TemplateService: p} } -// // Updates the template. // The `name`, `description`, `type`, `memory`, `cpu`, `topology`, `os`, `high_availability`, `display`, // `stateless`, `usb`, and `timezone` elements can be updated after a template has been created. @@ -83908,7 +80915,9 @@ func (p *TemplateService) ExportToPathOnHost() *TemplateServiceExportToPathOnHos // [source,xml] // ---- // // ---- // The `version_name` name attribute is the only one that can be updated within the `version` attribute used for @@ -83916,12 +80925,13 @@ func (p *TemplateService) ExportToPathOnHost() *TemplateServiceExportToPathOnHos // [source,xml] // ---- // // ---- -// type TemplateServiceUpdateRequest struct { TemplateService *TemplateService header map[string]string @@ -84043,7 +81053,6 @@ func (p *TemplateServiceUpdateRequest) MustSend() *TemplateServiceUpdateResponse } } -// // Updates the template. // The `name`, `description`, `type`, `memory`, `cpu`, `topology`, `os`, `high_availability`, `display`, // `stateless`, `usb`, and `timezone` elements can be updated after a template has been created. @@ -84056,7 +81065,9 @@ func (p *TemplateServiceUpdateRequest) MustSend() *TemplateServiceUpdateResponse // [source,xml] // ---- // // ---- // The `version_name` name attribute is the only one that can be updated within the `version` attribute used for @@ -84064,12 +81075,13 @@ func (p *TemplateServiceUpdateRequest) MustSend() *TemplateServiceUpdateResponse // [source,xml] // ---- // // ---- -// type TemplateServiceUpdateResponse struct { template *Template } @@ -84088,7 +81100,6 @@ func (p *TemplateServiceUpdateResponse) MustTemplate() *Template { return p.template } -// // Updates the template. // The `name`, `description`, `type`, `memory`, `cpu`, `topology`, `os`, `high_availability`, `display`, // `stateless`, `usb`, and `timezone` elements can be updated after a template has been created. @@ -84101,7 +81112,9 @@ func (p *TemplateServiceUpdateResponse) MustTemplate() *Template { // [source,xml] // ---- // // ---- // The `version_name` name attribute is the only one that can be updated within the `version` attribute used for @@ -84109,69 +81122,54 @@ func (p *TemplateServiceUpdateResponse) MustTemplate() *Template { // [source,xml] // ---- // // ---- -// func (p *TemplateService) Update() *TemplateServiceUpdateRequest { return &TemplateServiceUpdateRequest{TemplateService: p} } -// // Returns a reference to the service that manages the CD-ROMs that are associated with the template. -// func (op *TemplateService) CdromsService() *TemplateCdromsService { return NewTemplateCdromsService(op.connection, fmt.Sprintf("%s/cdroms", op.path)) } -// // Returns a reference to the service that manages a specific // disk attachment of the template. -// func (op *TemplateService) DiskAttachmentsService() *TemplateDiskAttachmentsService { return NewTemplateDiskAttachmentsService(op.connection, fmt.Sprintf("%s/diskattachments", op.path)) } -// // Returns a reference to the service that manages the graphical consoles that are associated with the template. -// func (op *TemplateService) GraphicsConsolesService() *TemplateGraphicsConsolesService { return NewTemplateGraphicsConsolesService(op.connection, fmt.Sprintf("%s/graphicsconsoles", op.path)) } -// // Returns a reference to the service that manages the NICs that are associated with the template. -// func (op *TemplateService) NicsService() *TemplateNicsService { return NewTemplateNicsService(op.connection, fmt.Sprintf("%s/nics", op.path)) } -// // Returns a reference to the service that manages the permissions that are associated with the template. -// func (op *TemplateService) PermissionsService() *AssignedPermissionsService { return NewAssignedPermissionsService(op.connection, fmt.Sprintf("%s/permissions", op.path)) } -// // Returns a reference to the service that manages the tags that are associated with the template. -// func (op *TemplateService) TagsService() *AssignedTagsService { return NewAssignedTagsService(op.connection, fmt.Sprintf("%s/tags", op.path)) } -// // Returns a reference to the service that manages the _watchdogs_ that are associated with the template. -// func (op *TemplateService) WatchdogsService() *TemplateWatchdogsService { return NewTemplateWatchdogsService(op.connection, fmt.Sprintf("%s/watchdogs", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *TemplateService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -84225,8 +81223,6 @@ func (op *TemplateService) String() string { return fmt.Sprintf("TemplateService:%s", op.path) } -// -// type TemplateWatchdogService struct { BaseService } @@ -84238,8 +81234,6 @@ func NewTemplateWatchdogService(connection *Connection, path string) *TemplateWa return &result } -// -// type TemplateWatchdogServiceGetRequest struct { TemplateWatchdogService *TemplateWatchdogService header map[string]string @@ -84348,8 +81342,6 @@ func (p *TemplateWatchdogServiceGetRequest) MustSend() *TemplateWatchdogServiceG } } -// -// type TemplateWatchdogServiceGetResponse struct { watchdog *Watchdog } @@ -84368,14 +81360,10 @@ func (p *TemplateWatchdogServiceGetResponse) MustWatchdog() *Watchdog { return p.watchdog } -// -// func (p *TemplateWatchdogService) Get() *TemplateWatchdogServiceGetRequest { return &TemplateWatchdogServiceGetRequest{TemplateWatchdogService: p} } -// -// type TemplateWatchdogServiceRemoveRequest struct { TemplateWatchdogService *TemplateWatchdogService header map[string]string @@ -84479,20 +81467,14 @@ func (p *TemplateWatchdogServiceRemoveRequest) MustSend() *TemplateWatchdogServi } } -// -// type TemplateWatchdogServiceRemoveResponse struct { } -// -// func (p *TemplateWatchdogService) Remove() *TemplateWatchdogServiceRemoveRequest { return &TemplateWatchdogServiceRemoveRequest{TemplateWatchdogService: p} } -// // Update the watchdog for the template identified by the given id. -// type TemplateWatchdogServiceUpdateRequest struct { TemplateWatchdogService *TemplateWatchdogService header map[string]string @@ -84614,9 +81596,7 @@ func (p *TemplateWatchdogServiceUpdateRequest) MustSend() *TemplateWatchdogServi } } -// // Update the watchdog for the template identified by the given id. -// type TemplateWatchdogServiceUpdateResponse struct { watchdog *Watchdog } @@ -84635,16 +81615,12 @@ func (p *TemplateWatchdogServiceUpdateResponse) MustWatchdog() *Watchdog { return p.watchdog } -// // Update the watchdog for the template identified by the given id. -// func (p *TemplateWatchdogService) Update() *TemplateWatchdogServiceUpdateRequest { return &TemplateWatchdogServiceUpdateRequest{TemplateWatchdogService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *TemplateWatchdogService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -84656,9 +81632,7 @@ func (op *TemplateWatchdogService) String() string { return fmt.Sprintf("TemplateWatchdogService:%s", op.path) } -// // A service managing a backup of a virtual machines. -// type VmBackupService struct { BaseService } @@ -84670,10 +81644,8 @@ func NewVmBackupService(connection *Connection, path string) *VmBackupService { return &result } -// // Finalize the virtual machine backup entity. // End backup, unlock resources, and perform cleanups. -// type VmBackupServiceFinalizeRequest struct { VmBackupService *VmBackupService header map[string]string @@ -84777,24 +81749,18 @@ func (p *VmBackupServiceFinalizeRequest) MustSend() *VmBackupServiceFinalizeResp } } -// // Finalize the virtual machine backup entity. // End backup, unlock resources, and perform cleanups. -// type VmBackupServiceFinalizeResponse struct { } -// // Finalize the virtual machine backup entity. // End backup, unlock resources, and perform cleanups. -// func (p *VmBackupService) Finalize() *VmBackupServiceFinalizeRequest { return &VmBackupServiceFinalizeRequest{VmBackupService: p} } -// // Returns information about the virtual machine backup. -// type VmBackupServiceGetRequest struct { VmBackupService *VmBackupService header map[string]string @@ -84903,9 +81869,7 @@ func (p *VmBackupServiceGetRequest) MustSend() *VmBackupServiceGetResponse { } } -// // Returns information about the virtual machine backup. -// type VmBackupServiceGetResponse struct { backup *Backup } @@ -84924,23 +81888,17 @@ func (p *VmBackupServiceGetResponse) MustBackup() *Backup { return p.backup } -// // Returns information about the virtual machine backup. -// func (p *VmBackupService) Get() *VmBackupServiceGetRequest { return &VmBackupServiceGetRequest{VmBackupService: p} } -// // A reference to the service that lists the disks in backup. -// func (op *VmBackupService) DisksService() *VmBackupDisksService { return NewVmBackupDisksService(op.connection, fmt.Sprintf("%s/disks", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *VmBackupService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -84958,8 +81916,6 @@ func (op *VmBackupService) String() string { return fmt.Sprintf("VmBackupService:%s", op.path) } -// -// type TemplateWatchdogsService struct { BaseService } @@ -84971,9 +81927,7 @@ func NewTemplateWatchdogsService(connection *Connection, path string) *TemplateW return &result } -// // Add a watchdog to the template identified by the given id. -// type TemplateWatchdogsServiceAddRequest struct { TemplateWatchdogsService *TemplateWatchdogsService header map[string]string @@ -85085,9 +82039,7 @@ func (p *TemplateWatchdogsServiceAddRequest) MustSend() *TemplateWatchdogsServic } } -// // Add a watchdog to the template identified by the given id. -// type TemplateWatchdogsServiceAddResponse struct { watchdog *Watchdog } @@ -85106,17 +82058,13 @@ func (p *TemplateWatchdogsServiceAddResponse) MustWatchdog() *Watchdog { return p.watchdog } -// // Add a watchdog to the template identified by the given id. -// func (p *TemplateWatchdogsService) Add() *TemplateWatchdogsServiceAddRequest { return &TemplateWatchdogsServiceAddRequest{TemplateWatchdogsService: p} } -// // Returns the list of watchdogs. // The order of the returned list of watchdogs isn't guaranteed. -// type TemplateWatchdogsServiceListRequest struct { TemplateWatchdogsService *TemplateWatchdogsService header map[string]string @@ -85235,10 +82183,8 @@ func (p *TemplateWatchdogsServiceListRequest) MustSend() *TemplateWatchdogsServi } } -// // Returns the list of watchdogs. // The order of the returned list of watchdogs isn't guaranteed. -// type TemplateWatchdogsServiceListResponse struct { watchdogs *WatchdogSlice } @@ -85257,23 +82203,17 @@ func (p *TemplateWatchdogsServiceListResponse) MustWatchdogs() *WatchdogSlice { return p.watchdogs } -// // Returns the list of watchdogs. // The order of the returned list of watchdogs isn't guaranteed. -// func (p *TemplateWatchdogsService) List() *TemplateWatchdogsServiceListRequest { return &TemplateWatchdogsServiceListRequest{TemplateWatchdogsService: p} } -// -// func (op *TemplateWatchdogsService) WatchdogService(id string) *TemplateWatchdogService { return NewTemplateWatchdogService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *TemplateWatchdogsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -85289,9 +82229,7 @@ func (op *TemplateWatchdogsService) String() string { return fmt.Sprintf("TemplateWatchdogsService:%s", op.path) } -// // This service manages the virtual machine templates available in the system. -// type TemplatesService struct { BaseService } @@ -85303,7 +82241,6 @@ func NewTemplatesService(connection *Connection, path string) *TemplatesService return &result } -// // Creates a new template. // This requires the `name` and `vm` elements. To identify the virtual machine use the `vm.id` or `vm.name` // attributes. For example, to create a template from a virtual machine with the identifier `123` send a request @@ -85316,20 +82253,24 @@ func NewTemplatesService(connection *Connection, path string) *TemplatesService // [source,xml] // ---- // // ---- // Since version 4.3, in order to create virtual machine template from a snapshot send a request body like this: // [source,xml] // ---- // // ---- // The disks of the template can be customized, making some of their characteristics different from the disks of the @@ -85341,18 +82282,20 @@ func NewTemplatesService(connection *Connection, path string) *TemplatesService // [source,xml] // ---- // // ---- // The template can be created as a sub-version of an existing template. This requires the `name` and `vm` attributes @@ -85362,12 +82305,14 @@ func NewTemplatesService(connection *Connection, path string) *TemplatesService // [source,xml] // ---- // // ---- // The destination storage domain of the template can be customized, in one of two ways: @@ -85377,18 +82322,20 @@ func NewTemplatesService(connection *Connection, path string) *TemplatesService // [source,xml] // ---- // // ---- // 2. Per each disk attachment. Specify the desired storage domain for each disk attachment. @@ -85397,23 +82344,24 @@ func NewTemplatesService(connection *Connection, path string) *TemplatesService // [source,xml] // ---- // // ---- -// type TemplatesServiceAddRequest struct { TemplatesService *TemplatesService header map[string]string @@ -85545,7 +82493,6 @@ func (p *TemplatesServiceAddRequest) MustSend() *TemplatesServiceAddResponse { } } -// // Creates a new template. // This requires the `name` and `vm` elements. To identify the virtual machine use the `vm.id` or `vm.name` // attributes. For example, to create a template from a virtual machine with the identifier `123` send a request @@ -85558,20 +82505,24 @@ func (p *TemplatesServiceAddRequest) MustSend() *TemplatesServiceAddResponse { // [source,xml] // ---- // // ---- // Since version 4.3, in order to create virtual machine template from a snapshot send a request body like this: // [source,xml] // ---- // // ---- // The disks of the template can be customized, making some of their characteristics different from the disks of the @@ -85583,18 +82534,20 @@ func (p *TemplatesServiceAddRequest) MustSend() *TemplatesServiceAddResponse { // [source,xml] // ---- // // ---- // The template can be created as a sub-version of an existing template. This requires the `name` and `vm` attributes @@ -85604,12 +82557,14 @@ func (p *TemplatesServiceAddRequest) MustSend() *TemplatesServiceAddResponse { // [source,xml] // ---- // // ---- // The destination storage domain of the template can be customized, in one of two ways: @@ -85619,18 +82574,20 @@ func (p *TemplatesServiceAddRequest) MustSend() *TemplatesServiceAddResponse { // [source,xml] // ---- // // ---- // 2. Per each disk attachment. Specify the desired storage domain for each disk attachment. @@ -85639,23 +82596,24 @@ func (p *TemplatesServiceAddRequest) MustSend() *TemplatesServiceAddResponse { // [source,xml] // ---- // // ---- -// type TemplatesServiceAddResponse struct { template *Template } @@ -85674,7 +82632,6 @@ func (p *TemplatesServiceAddResponse) MustTemplate() *Template { return p.template } -// // Creates a new template. // This requires the `name` and `vm` elements. To identify the virtual machine use the `vm.id` or `vm.name` // attributes. For example, to create a template from a virtual machine with the identifier `123` send a request @@ -85687,20 +82644,24 @@ func (p *TemplatesServiceAddResponse) MustTemplate() *Template { // [source,xml] // ---- // // ---- // Since version 4.3, in order to create virtual machine template from a snapshot send a request body like this: // [source,xml] // ---- // // ---- // The disks of the template can be customized, making some of their characteristics different from the disks of the @@ -85712,18 +82673,20 @@ func (p *TemplatesServiceAddResponse) MustTemplate() *Template { // [source,xml] // ---- // // ---- // The template can be created as a sub-version of an existing template. This requires the `name` and `vm` attributes @@ -85733,12 +82696,14 @@ func (p *TemplatesServiceAddResponse) MustTemplate() *Template { // [source,xml] // ---- // // ---- // The destination storage domain of the template can be customized, in one of two ways: @@ -85748,18 +82713,20 @@ func (p *TemplatesServiceAddResponse) MustTemplate() *Template { // [source,xml] // ---- // // ---- // 2. Per each disk attachment. Specify the desired storage domain for each disk attachment. @@ -85768,30 +82735,29 @@ func (p *TemplatesServiceAddResponse) MustTemplate() *Template { // [source,xml] // ---- // // ---- -// func (p *TemplatesService) Add() *TemplatesServiceAddRequest { return &TemplatesServiceAddRequest{TemplatesService: p} } -// // Add a virtual machine template to the system from a configuration. Requires the configuration type, the configuration data, and the target cluster. -// type TemplatesServiceAddFromConfigurationRequest struct { TemplatesService *TemplatesService header map[string]string @@ -85921,9 +82887,7 @@ func (p *TemplatesServiceAddFromConfigurationRequest) MustSend() *TemplatesServi } } -// // Add a virtual machine template to the system from a configuration. Requires the configuration type, the configuration data, and the target cluster. -// type TemplatesServiceAddFromConfigurationResponse struct { template *Template } @@ -85942,16 +82906,12 @@ func (p *TemplatesServiceAddFromConfigurationResponse) MustTemplate() *Template return p.template } -// // Add a virtual machine template to the system from a configuration. Requires the configuration type, the configuration data, and the target cluster. -// func (p *TemplatesService) AddFromConfiguration() *TemplatesServiceAddFromConfigurationRequest { return &TemplatesServiceAddFromConfigurationRequest{TemplatesService: p} } -// // Add a virtual machine template to the system from an existing virtual machine. -// type TemplatesServiceAddFromVmRequest struct { TemplatesService *TemplatesService header map[string]string @@ -86081,9 +83041,7 @@ func (p *TemplatesServiceAddFromVmRequest) MustSend() *TemplatesServiceAddFromVm } } -// // Add a virtual machine template to the system from an existing virtual machine. -// type TemplatesServiceAddFromVmResponse struct { template *Template } @@ -86102,16 +83060,12 @@ func (p *TemplatesServiceAddFromVmResponse) MustTemplate() *Template { return p.template } -// // Add a virtual machine template to the system from an existing virtual machine. -// func (p *TemplatesService) AddFromVm() *TemplatesServiceAddFromVmRequest { return &TemplatesServiceAddFromVmRequest{TemplatesService: p} } -// // Add a virtual machine template to the system from a snapshot. -// type TemplatesServiceAddFromVmSnapshotRequest struct { TemplatesService *TemplatesService header map[string]string @@ -86241,9 +83195,7 @@ func (p *TemplatesServiceAddFromVmSnapshotRequest) MustSend() *TemplatesServiceA } } -// // Add a virtual machine template to the system from a snapshot. -// type TemplatesServiceAddFromVmSnapshotResponse struct { template *Template } @@ -86262,14 +83214,11 @@ func (p *TemplatesServiceAddFromVmSnapshotResponse) MustTemplate() *Template { return p.template } -// // Add a virtual machine template to the system from a snapshot. -// func (p *TemplatesService) AddFromVmSnapshot() *TemplatesServiceAddFromVmSnapshotRequest { return &TemplatesServiceAddFromVmSnapshotRequest{TemplatesService: p} } -// // Returns the list of virtual machine templates. // For example: // [source] @@ -86278,7 +83227,6 @@ func (p *TemplatesService) AddFromVmSnapshot() *TemplatesServiceAddFromVmSnapsho // ---- // Will return the list of virtual machines and virtual machine templates. // The order of the returned list of templates is not guaranteed. -// type TemplatesServiceListRequest struct { TemplatesService *TemplatesService header map[string]string @@ -86427,7 +83375,6 @@ func (p *TemplatesServiceListRequest) MustSend() *TemplatesServiceListResponse { } } -// // Returns the list of virtual machine templates. // For example: // [source] @@ -86436,7 +83383,6 @@ func (p *TemplatesServiceListRequest) MustSend() *TemplatesServiceListResponse { // ---- // Will return the list of virtual machines and virtual machine templates. // The order of the returned list of templates is not guaranteed. -// type TemplatesServiceListResponse struct { templates *TemplateSlice } @@ -86455,7 +83401,6 @@ func (p *TemplatesServiceListResponse) MustTemplates() *TemplateSlice { return p.templates } -// // Returns the list of virtual machine templates. // For example: // [source] @@ -86464,21 +83409,16 @@ func (p *TemplatesServiceListResponse) MustTemplates() *TemplateSlice { // ---- // Will return the list of virtual machines and virtual machine templates. // The order of the returned list of templates is not guaranteed. -// func (p *TemplatesService) List() *TemplatesServiceListRequest { return &TemplatesServiceListRequest{TemplatesService: p} } -// // Returns a reference to the service that manages a specific virtual machine template. -// func (op *TemplatesService) TemplateService(id string) *TemplateService { return NewTemplateService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *TemplatesService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -86494,8 +83434,6 @@ func (op *TemplatesService) String() string { return fmt.Sprintf("TemplatesService:%s", op.path) } -// -// type UnmanagedNetworkService struct { BaseService } @@ -86507,8 +83445,6 @@ func NewUnmanagedNetworkService(connection *Connection, path string) *UnmanagedN return &result } -// -// type UnmanagedNetworkServiceGetRequest struct { UnmanagedNetworkService *UnmanagedNetworkService header map[string]string @@ -86617,8 +83553,6 @@ func (p *UnmanagedNetworkServiceGetRequest) MustSend() *UnmanagedNetworkServiceG } } -// -// type UnmanagedNetworkServiceGetResponse struct { network *UnmanagedNetwork } @@ -86637,14 +83571,10 @@ func (p *UnmanagedNetworkServiceGetResponse) MustNetwork() *UnmanagedNetwork { return p.network } -// -// func (p *UnmanagedNetworkService) Get() *UnmanagedNetworkServiceGetRequest { return &UnmanagedNetworkServiceGetRequest{UnmanagedNetworkService: p} } -// -// type UnmanagedNetworkServiceRemoveRequest struct { UnmanagedNetworkService *UnmanagedNetworkService header map[string]string @@ -86748,20 +83678,14 @@ func (p *UnmanagedNetworkServiceRemoveRequest) MustSend() *UnmanagedNetworkServi } } -// -// type UnmanagedNetworkServiceRemoveResponse struct { } -// -// func (p *UnmanagedNetworkService) Remove() *UnmanagedNetworkServiceRemoveRequest { return &UnmanagedNetworkServiceRemoveRequest{UnmanagedNetworkService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *UnmanagedNetworkService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -86773,8 +83697,6 @@ func (op *UnmanagedNetworkService) String() string { return fmt.Sprintf("UnmanagedNetworkService:%s", op.path) } -// -// type UnmanagedNetworksService struct { BaseService } @@ -86786,10 +83708,8 @@ func NewUnmanagedNetworksService(connection *Connection, path string) *Unmanaged return &result } -// // Returns the list of unmanaged networks of the host. // The order of the returned list of networks isn't guaranteed. -// type UnmanagedNetworksServiceListRequest struct { UnmanagedNetworksService *UnmanagedNetworksService header map[string]string @@ -86908,10 +83828,8 @@ func (p *UnmanagedNetworksServiceListRequest) MustSend() *UnmanagedNetworksServi } } -// // Returns the list of unmanaged networks of the host. // The order of the returned list of networks isn't guaranteed. -// type UnmanagedNetworksServiceListResponse struct { networks *UnmanagedNetworkSlice } @@ -86930,23 +83848,17 @@ func (p *UnmanagedNetworksServiceListResponse) MustNetworks() *UnmanagedNetworkS return p.networks } -// // Returns the list of unmanaged networks of the host. // The order of the returned list of networks isn't guaranteed. -// func (p *UnmanagedNetworksService) List() *UnmanagedNetworksServiceListRequest { return &UnmanagedNetworksServiceListRequest{UnmanagedNetworksService: p} } -// -// func (op *UnmanagedNetworksService) UnmanagedNetworkService(id string) *UnmanagedNetworkService { return NewUnmanagedNetworkService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *UnmanagedNetworksService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -86962,8 +83874,6 @@ func (op *UnmanagedNetworksService) String() string { return fmt.Sprintf("UnmanagedNetworksService:%s", op.path) } -// -// type VirtualFunctionAllowedNetworkService struct { BaseService } @@ -86975,8 +83885,6 @@ func NewVirtualFunctionAllowedNetworkService(connection *Connection, path string return &result } -// -// type VirtualFunctionAllowedNetworkServiceGetRequest struct { VirtualFunctionAllowedNetworkService *VirtualFunctionAllowedNetworkService header map[string]string @@ -87085,8 +83993,6 @@ func (p *VirtualFunctionAllowedNetworkServiceGetRequest) MustSend() *VirtualFunc } } -// -// type VirtualFunctionAllowedNetworkServiceGetResponse struct { network *Network } @@ -87105,14 +84011,10 @@ func (p *VirtualFunctionAllowedNetworkServiceGetResponse) MustNetwork() *Network return p.network } -// -// func (p *VirtualFunctionAllowedNetworkService) Get() *VirtualFunctionAllowedNetworkServiceGetRequest { return &VirtualFunctionAllowedNetworkServiceGetRequest{VirtualFunctionAllowedNetworkService: p} } -// -// type VirtualFunctionAllowedNetworkServiceRemoveRequest struct { VirtualFunctionAllowedNetworkService *VirtualFunctionAllowedNetworkService header map[string]string @@ -87216,20 +84118,14 @@ func (p *VirtualFunctionAllowedNetworkServiceRemoveRequest) MustSend() *VirtualF } } -// -// type VirtualFunctionAllowedNetworkServiceRemoveResponse struct { } -// -// func (p *VirtualFunctionAllowedNetworkService) Remove() *VirtualFunctionAllowedNetworkServiceRemoveRequest { return &VirtualFunctionAllowedNetworkServiceRemoveRequest{VirtualFunctionAllowedNetworkService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *VirtualFunctionAllowedNetworkService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -87241,8 +84137,6 @@ func (op *VirtualFunctionAllowedNetworkService) String() string { return fmt.Sprintf("VirtualFunctionAllowedNetworkService:%s", op.path) } -// -// type VirtualFunctionAllowedNetworksService struct { BaseService } @@ -87254,8 +84148,6 @@ func NewVirtualFunctionAllowedNetworksService(connection *Connection, path strin return &result } -// -// type VirtualFunctionAllowedNetworksServiceAddRequest struct { VirtualFunctionAllowedNetworksService *VirtualFunctionAllowedNetworksService header map[string]string @@ -87367,8 +84259,6 @@ func (p *VirtualFunctionAllowedNetworksServiceAddRequest) MustSend() *VirtualFun } } -// -// type VirtualFunctionAllowedNetworksServiceAddResponse struct { network *Network } @@ -87387,16 +84277,12 @@ func (p *VirtualFunctionAllowedNetworksServiceAddResponse) MustNetwork() *Networ return p.network } -// -// func (p *VirtualFunctionAllowedNetworksService) Add() *VirtualFunctionAllowedNetworksServiceAddRequest { return &VirtualFunctionAllowedNetworksServiceAddRequest{VirtualFunctionAllowedNetworksService: p} } -// // Returns the list of networks. // The order of the returned list of networks isn't guaranteed. -// type VirtualFunctionAllowedNetworksServiceListRequest struct { VirtualFunctionAllowedNetworksService *VirtualFunctionAllowedNetworksService header map[string]string @@ -87515,10 +84401,8 @@ func (p *VirtualFunctionAllowedNetworksServiceListRequest) MustSend() *VirtualFu } } -// // Returns the list of networks. // The order of the returned list of networks isn't guaranteed. -// type VirtualFunctionAllowedNetworksServiceListResponse struct { networks *NetworkSlice } @@ -87537,23 +84421,17 @@ func (p *VirtualFunctionAllowedNetworksServiceListResponse) MustNetworks() *Netw return p.networks } -// // Returns the list of networks. // The order of the returned list of networks isn't guaranteed. -// func (p *VirtualFunctionAllowedNetworksService) List() *VirtualFunctionAllowedNetworksServiceListRequest { return &VirtualFunctionAllowedNetworksServiceListRequest{VirtualFunctionAllowedNetworksService: p} } -// -// func (op *VirtualFunctionAllowedNetworksService) NetworkService(id string) *VirtualFunctionAllowedNetworkService { return NewVirtualFunctionAllowedNetworkService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *VirtualFunctionAllowedNetworksService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -87569,9 +84447,7 @@ func (op *VirtualFunctionAllowedNetworksService) String() string { return fmt.Sprintf("VirtualFunctionAllowedNetworksService:%s", op.path) } -// // A service that provides information about an application installed in a virtual machine. -// type VmApplicationService struct { BaseService } @@ -87583,9 +84459,7 @@ func NewVmApplicationService(connection *Connection, path string) *VmApplication return &result } -// // Returns the information about the application. -// type VmApplicationServiceGetRequest struct { VmApplicationService *VmApplicationService header map[string]string @@ -87704,9 +84578,7 @@ func (p *VmApplicationServiceGetRequest) MustSend() *VmApplicationServiceGetResp } } -// // Returns the information about the application. -// type VmApplicationServiceGetResponse struct { application *Application } @@ -87725,16 +84597,12 @@ func (p *VmApplicationServiceGetResponse) MustApplication() *Application { return p.application } -// // Returns the information about the application. -// func (p *VmApplicationService) Get() *VmApplicationServiceGetRequest { return &VmApplicationServiceGetRequest{VmApplicationService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *VmApplicationService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -87746,9 +84614,7 @@ func (op *VmApplicationService) String() string { return fmt.Sprintf("VmApplicationService:%s", op.path) } -// // A service that provides information about applications installed in a virtual machine. -// type VmApplicationsService struct { BaseService } @@ -87760,10 +84626,8 @@ func NewVmApplicationsService(connection *Connection, path string) *VmApplicatio return &result } -// // Returns a list of applications installed in the virtual machine. // The order of the returned list of applications isn't guaranteed. -// type VmApplicationsServiceListRequest struct { VmApplicationsService *VmApplicationsService header map[string]string @@ -87892,10 +84756,8 @@ func (p *VmApplicationsServiceListRequest) MustSend() *VmApplicationsServiceList } } -// // Returns a list of applications installed in the virtual machine. // The order of the returned list of applications isn't guaranteed. -// type VmApplicationsServiceListResponse struct { applications *ApplicationSlice } @@ -87914,24 +84776,18 @@ func (p *VmApplicationsServiceListResponse) MustApplications() *ApplicationSlice return p.applications } -// // Returns a list of applications installed in the virtual machine. // The order of the returned list of applications isn't guaranteed. -// func (p *VmApplicationsService) List() *VmApplicationsServiceListRequest { return &VmApplicationsServiceListRequest{VmApplicationsService: p} } -// // Returns a reference to the service that provides information about a specific application. -// func (op *VmApplicationsService) ApplicationService(id string) *VmApplicationService { return NewVmApplicationService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *VmApplicationsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -87947,8 +84803,6 @@ func (op *VmApplicationsService) String() string { return fmt.Sprintf("VmApplicationsService:%s", op.path) } -// -// type VmBackupDiskService struct { BaseService } @@ -87960,9 +84814,7 @@ func NewVmBackupDiskService(connection *Connection, path string) *VmBackupDiskSe return &result } -// // Retrieves the description of the disk. -// type VmBackupDiskServiceGetRequest struct { VmBackupDiskService *VmBackupDiskService header map[string]string @@ -88071,9 +84923,7 @@ func (p *VmBackupDiskServiceGetRequest) MustSend() *VmBackupDiskServiceGetRespon } } -// // Retrieves the description of the disk. -// type VmBackupDiskServiceGetResponse struct { disk *Disk } @@ -88092,16 +84942,12 @@ func (p *VmBackupDiskServiceGetResponse) MustDisk() *Disk { return p.disk } -// // Retrieves the description of the disk. -// func (p *VmBackupDiskService) Get() *VmBackupDiskServiceGetRequest { return &VmBackupDiskServiceGetRequest{VmBackupDiskService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *VmBackupDiskService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -88113,8 +84959,6 @@ func (op *VmBackupDiskService) String() string { return fmt.Sprintf("VmBackupDiskService:%s", op.path) } -// -// type VmBackupDisksService struct { BaseService } @@ -88126,9 +84970,7 @@ func NewVmBackupDisksService(connection *Connection, path string) *VmBackupDisks return &result } -// // Returns the list of disks in backup. -// type VmBackupDisksServiceListRequest struct { VmBackupDisksService *VmBackupDisksService header map[string]string @@ -88247,9 +85089,7 @@ func (p *VmBackupDisksServiceListRequest) MustSend() *VmBackupDisksServiceListRe } } -// // Returns the list of disks in backup. -// type VmBackupDisksServiceListResponse struct { disks *DiskSlice } @@ -88268,23 +85108,17 @@ func (p *VmBackupDisksServiceListResponse) MustDisks() *DiskSlice { return p.disks } -// // Returns the list of disks in backup. -// func (p *VmBackupDisksService) List() *VmBackupDisksServiceListRequest { return &VmBackupDisksServiceListRequest{VmBackupDisksService: p} } -// // A reference to the service that manages a specific disk. -// func (op *VmBackupDisksService) DiskService(id string) *VmBackupDiskService { return NewVmBackupDiskService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *VmBackupDisksService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -88300,9 +85134,7 @@ func (op *VmBackupDisksService) String() string { return fmt.Sprintf("VmBackupDisksService:%s", op.path) } -// // Lists the backups of a virtual machine. -// type VmBackupsService struct { BaseService } @@ -88314,7 +85146,6 @@ func NewVmBackupsService(connection *Connection, path string) *VmBackupsService return &result } -// // Adds a new backup entity to a virtual machine. // For example, to start a new incremental backup of a virtual machine // since checkpoint id `previous-checkpoint-uuid`, send a request like this: @@ -88326,29 +85157,32 @@ func NewVmBackupsService(connection *Connection, path string) *VmBackupsService // [source,xml] // ---- // -// previous-checkpoint-uuid -// -// -// ... -// +// +// previous-checkpoint-uuid +// +// +// ... +// +// // // ---- // The response body: // [source,xml] // ---- // -// previous-checkpoint-uuid -// new-checkpoint-uuid -// -// -// ... -// ... -// -// initializing -// +// +// previous-checkpoint-uuid +// new-checkpoint-uuid +// +// +// ... +// ... +// +// initializing +// +// // // ---- -// type VmBackupsServiceAddRequest struct { VmBackupsService *VmBackupsService header map[string]string @@ -88470,7 +85304,6 @@ func (p *VmBackupsServiceAddRequest) MustSend() *VmBackupsServiceAddResponse { } } -// // Adds a new backup entity to a virtual machine. // For example, to start a new incremental backup of a virtual machine // since checkpoint id `previous-checkpoint-uuid`, send a request like this: @@ -88482,29 +85315,32 @@ func (p *VmBackupsServiceAddRequest) MustSend() *VmBackupsServiceAddResponse { // [source,xml] // ---- // -// previous-checkpoint-uuid -// -// -// ... -// +// +// previous-checkpoint-uuid +// +// +// ... +// +// // // ---- // The response body: // [source,xml] // ---- // -// previous-checkpoint-uuid -// new-checkpoint-uuid -// -// -// ... -// ... -// -// initializing -// +// +// previous-checkpoint-uuid +// new-checkpoint-uuid +// +// +// ... +// ... +// +// initializing +// +// // // ---- -// type VmBackupsServiceAddResponse struct { backup *Backup } @@ -88523,7 +85359,6 @@ func (p *VmBackupsServiceAddResponse) MustBackup() *Backup { return p.backup } -// // Adds a new backup entity to a virtual machine. // For example, to start a new incremental backup of a virtual machine // since checkpoint id `previous-checkpoint-uuid`, send a request like this: @@ -88535,36 +85370,37 @@ func (p *VmBackupsServiceAddResponse) MustBackup() *Backup { // [source,xml] // ---- // -// previous-checkpoint-uuid -// -// -// ... -// +// +// previous-checkpoint-uuid +// +// +// ... +// +// // // ---- // The response body: // [source,xml] // ---- // -// previous-checkpoint-uuid -// new-checkpoint-uuid -// -// -// ... -// ... -// -// initializing -// +// +// previous-checkpoint-uuid +// new-checkpoint-uuid +// +// +// ... +// ... +// +// initializing +// +// // // ---- -// func (p *VmBackupsService) Add() *VmBackupsServiceAddRequest { return &VmBackupsServiceAddRequest{VmBackupsService: p} } -// // The list of virtual machine backups. -// type VmBackupsServiceListRequest struct { VmBackupsService *VmBackupsService header map[string]string @@ -88683,9 +85519,7 @@ func (p *VmBackupsServiceListRequest) MustSend() *VmBackupsServiceListResponse { } } -// // The list of virtual machine backups. -// type VmBackupsServiceListResponse struct { backups *BackupSlice } @@ -88704,23 +85538,17 @@ func (p *VmBackupsServiceListResponse) MustBackups() *BackupSlice { return p.backups } -// // The list of virtual machine backups. -// func (p *VmBackupsService) List() *VmBackupsServiceListRequest { return &VmBackupsServiceListRequest{VmBackupsService: p} } -// // Returns a reference to the service that manages a specific VM backup. -// func (op *VmBackupsService) BackupService(id string) *VmBackupService { return NewVmBackupService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *VmBackupsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -88736,11 +85564,9 @@ func (op *VmBackupsService) String() string { return fmt.Sprintf("VmBackupsService:%s", op.path) } -// // Manages a CDROM device of a virtual machine. // Changing and ejecting the disk is done using always the `update` method, to change the value of the `file` // attribute. -// type VmCdromService struct { BaseService } @@ -88752,7 +85578,6 @@ func NewVmCdromService(connection *Connection, path string) *VmCdromService { return &result } -// // Returns the information about this CDROM device. // The information consists of `cdrom` attribute containing reference to the CDROM device, the virtual machine, // and optionally the inserted disk. @@ -88760,18 +85585,21 @@ func NewVmCdromService(connection *Connection, path string) *VmCdromService { // [source,xml] // ---- // -// -// +// +// +// +// // // ---- // If there is no disk inserted then the `file` attribute won't be reported: // [source,xml] // ---- // -// +// +// +// // // ---- -// type VmCdromServiceGetRequest struct { VmCdromService *VmCdromService header map[string]string @@ -88890,7 +85718,6 @@ func (p *VmCdromServiceGetRequest) MustSend() *VmCdromServiceGetResponse { } } -// // Returns the information about this CDROM device. // The information consists of `cdrom` attribute containing reference to the CDROM device, the virtual machine, // and optionally the inserted disk. @@ -88898,18 +85725,21 @@ func (p *VmCdromServiceGetRequest) MustSend() *VmCdromServiceGetResponse { // [source,xml] // ---- // -// -// +// +// +// +// // // ---- // If there is no disk inserted then the `file` attribute won't be reported: // [source,xml] // ---- // -// +// +// +// // // ---- -// type VmCdromServiceGetResponse struct { cdrom *Cdrom } @@ -88928,7 +85758,6 @@ func (p *VmCdromServiceGetResponse) MustCdrom() *Cdrom { return p.cdrom } -// // Returns the information about this CDROM device. // The information consists of `cdrom` attribute containing reference to the CDROM device, the virtual machine, // and optionally the inserted disk. @@ -88936,23 +85765,25 @@ func (p *VmCdromServiceGetResponse) MustCdrom() *Cdrom { // [source,xml] // ---- // -// -// +// +// +// +// // // ---- // If there is no disk inserted then the `file` attribute won't be reported: // [source,xml] // ---- // -// +// +// +// // // ---- -// func (p *VmCdromService) Get() *VmCdromServiceGetRequest { return &VmCdromServiceGetRequest{VmCdromService: p} } -// // Updates the information about this CDROM device. // It allows to change or eject the disk by changing the value of the `file` attribute. // For example, to insert or change the disk send a request like this: @@ -88964,7 +85795,9 @@ func (p *VmCdromService) Get() *VmCdromServiceGetRequest { // [source,xml] // ---- // -// +// +// +// // // ---- // The value of the `id` attribute, `mycd.iso` in this example, should correspond to a file available in an @@ -88973,7 +85806,9 @@ func (p *VmCdromService) Get() *VmCdromServiceGetRequest { // [source,xml] // ---- // -// +// +// +// // // ---- // By default the above operations change permanently the disk that will be visible to the virtual machine @@ -88988,12 +85823,13 @@ func (p *VmCdromService) Get() *VmCdromServiceGetRequest { // [source,xml] // ---- // -// +// +// +// // // ---- // IMPORTANT: The changes made with the `current=true` parameter are never persisted, so they won't have any // effect after the virtual machine is rebooted. -// type VmCdromServiceUpdateRequest struct { VmCdromService *VmCdromService header map[string]string @@ -89115,7 +85951,6 @@ func (p *VmCdromServiceUpdateRequest) MustSend() *VmCdromServiceUpdateResponse { } } -// // Updates the information about this CDROM device. // It allows to change or eject the disk by changing the value of the `file` attribute. // For example, to insert or change the disk send a request like this: @@ -89127,7 +85962,9 @@ func (p *VmCdromServiceUpdateRequest) MustSend() *VmCdromServiceUpdateResponse { // [source,xml] // ---- // -// +// +// +// // // ---- // The value of the `id` attribute, `mycd.iso` in this example, should correspond to a file available in an @@ -89136,7 +85973,9 @@ func (p *VmCdromServiceUpdateRequest) MustSend() *VmCdromServiceUpdateResponse { // [source,xml] // ---- // -// +// +// +// // // ---- // By default the above operations change permanently the disk that will be visible to the virtual machine @@ -89151,12 +85990,13 @@ func (p *VmCdromServiceUpdateRequest) MustSend() *VmCdromServiceUpdateResponse { // [source,xml] // ---- // -// +// +// +// // // ---- // IMPORTANT: The changes made with the `current=true` parameter are never persisted, so they won't have any // effect after the virtual machine is rebooted. -// type VmCdromServiceUpdateResponse struct { cdrom *Cdrom } @@ -89175,7 +86015,6 @@ func (p *VmCdromServiceUpdateResponse) MustCdrom() *Cdrom { return p.cdrom } -// // Updates the information about this CDROM device. // It allows to change or eject the disk by changing the value of the `file` attribute. // For example, to insert or change the disk send a request like this: @@ -89187,7 +86026,9 @@ func (p *VmCdromServiceUpdateResponse) MustCdrom() *Cdrom { // [source,xml] // ---- // -// +// +// +// // // ---- // The value of the `id` attribute, `mycd.iso` in this example, should correspond to a file available in an @@ -89196,7 +86037,9 @@ func (p *VmCdromServiceUpdateResponse) MustCdrom() *Cdrom { // [source,xml] // ---- // -// +// +// +// // // ---- // By default the above operations change permanently the disk that will be visible to the virtual machine @@ -89211,19 +86054,18 @@ func (p *VmCdromServiceUpdateResponse) MustCdrom() *Cdrom { // [source,xml] // ---- // -// +// +// +// // // ---- // IMPORTANT: The changes made with the `current=true` parameter are never persisted, so they won't have any // effect after the virtual machine is rebooted. -// func (p *VmCdromService) Update() *VmCdromServiceUpdateRequest { return &VmCdromServiceUpdateRequest{VmCdromService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *VmCdromService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -89235,13 +86077,11 @@ func (op *VmCdromService) String() string { return fmt.Sprintf("VmCdromService:%s", op.path) } -// // Manages the CDROM devices of a virtual machine. // Currently virtual machines have exactly one CDROM device. No new devices can be added, and the existing one can't // be removed, thus there are no `add` or `remove` methods. Changing and ejecting CDROM disks is done with the // <> method of the <> that manages the // CDROM device. -// type VmCdromsService struct { BaseService } @@ -89253,9 +86093,7 @@ func NewVmCdromsService(connection *Connection, path string) *VmCdromsService { return &result } -// // Add a cdrom to a virtual machine identified by the given id. -// type VmCdromsServiceAddRequest struct { VmCdromsService *VmCdromsService header map[string]string @@ -89367,9 +86205,7 @@ func (p *VmCdromsServiceAddRequest) MustSend() *VmCdromsServiceAddResponse { } } -// // Add a cdrom to a virtual machine identified by the given id. -// type VmCdromsServiceAddResponse struct { cdrom *Cdrom } @@ -89388,17 +86224,13 @@ func (p *VmCdromsServiceAddResponse) MustCdrom() *Cdrom { return p.cdrom } -// // Add a cdrom to a virtual machine identified by the given id. -// func (p *VmCdromsService) Add() *VmCdromsServiceAddRequest { return &VmCdromsServiceAddRequest{VmCdromsService: p} } -// // Returns the list of CDROM devices of the virtual machine. // The order of the returned list of CD-ROM devices isn't guaranteed. -// type VmCdromsServiceListRequest struct { VmCdromsService *VmCdromsService header map[string]string @@ -89517,10 +86349,8 @@ func (p *VmCdromsServiceListRequest) MustSend() *VmCdromsServiceListResponse { } } -// // Returns the list of CDROM devices of the virtual machine. // The order of the returned list of CD-ROM devices isn't guaranteed. -// type VmCdromsServiceListResponse struct { cdroms *CdromSlice } @@ -89539,24 +86369,18 @@ func (p *VmCdromsServiceListResponse) MustCdroms() *CdromSlice { return p.cdroms } -// // Returns the list of CDROM devices of the virtual machine. // The order of the returned list of CD-ROM devices isn't guaranteed. -// func (p *VmCdromsService) List() *VmCdromsServiceListRequest { return &VmCdromsServiceListRequest{VmCdromsService: p} } -// // Returns a reference to the service that manages a specific CDROM device. -// func (op *VmCdromsService) CdromService(id string) *VmCdromService { return NewVmCdromService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *VmCdromsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -89572,8 +86396,6 @@ func (op *VmCdromsService) String() string { return fmt.Sprintf("VmCdromsService:%s", op.path) } -// -// type VmCheckpointDiskService struct { BaseService } @@ -89585,9 +86407,7 @@ func NewVmCheckpointDiskService(connection *Connection, path string) *VmCheckpoi return &result } -// // Retrieves the description of the disk. -// type VmCheckpointDiskServiceGetRequest struct { VmCheckpointDiskService *VmCheckpointDiskService header map[string]string @@ -89696,9 +86516,7 @@ func (p *VmCheckpointDiskServiceGetRequest) MustSend() *VmCheckpointDiskServiceG } } -// // Retrieves the description of the disk. -// type VmCheckpointDiskServiceGetResponse struct { disk *Disk } @@ -89717,16 +86535,12 @@ func (p *VmCheckpointDiskServiceGetResponse) MustDisk() *Disk { return p.disk } -// // Retrieves the description of the disk. -// func (p *VmCheckpointDiskService) Get() *VmCheckpointDiskServiceGetRequest { return &VmCheckpointDiskServiceGetRequest{VmCheckpointDiskService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *VmCheckpointDiskService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -89738,8 +86552,6 @@ func (op *VmCheckpointDiskService) String() string { return fmt.Sprintf("VmCheckpointDiskService:%s", op.path) } -// -// type VmCheckpointDisksService struct { BaseService } @@ -89751,9 +86563,7 @@ func NewVmCheckpointDisksService(connection *Connection, path string) *VmCheckpo return &result } -// // Returns the list of disks in checkpoint. -// type VmCheckpointDisksServiceListRequest struct { VmCheckpointDisksService *VmCheckpointDisksService header map[string]string @@ -89872,9 +86682,7 @@ func (p *VmCheckpointDisksServiceListRequest) MustSend() *VmCheckpointDisksServi } } -// // Returns the list of disks in checkpoint. -// type VmCheckpointDisksServiceListResponse struct { disks *DiskSlice } @@ -89893,23 +86701,17 @@ func (p *VmCheckpointDisksServiceListResponse) MustDisks() *DiskSlice { return p.disks } -// // Returns the list of disks in checkpoint. -// func (p *VmCheckpointDisksService) List() *VmCheckpointDisksServiceListRequest { return &VmCheckpointDisksServiceListRequest{VmCheckpointDisksService: p} } -// // A reference to the service that manages a specific disk. -// func (op *VmCheckpointDisksService) DiskService(id string) *VmCheckpointDiskService { return NewVmCheckpointDiskService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *VmCheckpointDisksService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -89925,9 +86727,7 @@ func (op *VmCheckpointDisksService) String() string { return fmt.Sprintf("VmCheckpointDisksService:%s", op.path) } -// // A service managing a checkpoint of a virtual machines. -// type VmCheckpointService struct { BaseService } @@ -89939,9 +86739,7 @@ func NewVmCheckpointService(connection *Connection, path string) *VmCheckpointSe return &result } -// // Returns information about the virtual machine checkpoint. -// type VmCheckpointServiceGetRequest struct { VmCheckpointService *VmCheckpointService header map[string]string @@ -90050,9 +86848,7 @@ func (p *VmCheckpointServiceGetRequest) MustSend() *VmCheckpointServiceGetRespon } } -// // Returns information about the virtual machine checkpoint. -// type VmCheckpointServiceGetResponse struct { checkpoint *Checkpoint } @@ -90071,17 +86867,13 @@ func (p *VmCheckpointServiceGetResponse) MustCheckpoint() *Checkpoint { return p.checkpoint } -// // Returns information about the virtual machine checkpoint. -// func (p *VmCheckpointService) Get() *VmCheckpointServiceGetRequest { return &VmCheckpointServiceGetRequest{VmCheckpointService: p} } -// // Remove the virtual machine checkpoint entity. // Remove the checkpoint from libvirt and the database. -// type VmCheckpointServiceRemoveRequest struct { VmCheckpointService *VmCheckpointService header map[string]string @@ -90185,31 +86977,23 @@ func (p *VmCheckpointServiceRemoveRequest) MustSend() *VmCheckpointServiceRemove } } -// // Remove the virtual machine checkpoint entity. // Remove the checkpoint from libvirt and the database. -// type VmCheckpointServiceRemoveResponse struct { } -// // Remove the virtual machine checkpoint entity. // Remove the checkpoint from libvirt and the database. -// func (p *VmCheckpointService) Remove() *VmCheckpointServiceRemoveRequest { return &VmCheckpointServiceRemoveRequest{VmCheckpointService: p} } -// // A reference to the service that lists the disks in checkpoint. -// func (op *VmCheckpointService) DisksService() *VmCheckpointDisksService { return NewVmCheckpointDisksService(op.connection, fmt.Sprintf("%s/disks", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *VmCheckpointService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -90227,9 +87011,7 @@ func (op *VmCheckpointService) String() string { return fmt.Sprintf("VmCheckpointService:%s", op.path) } -// // Lists the checkpoints of a virtual machine. -// type VmCheckpointsService struct { BaseService } @@ -90241,9 +87023,7 @@ func NewVmCheckpointsService(connection *Connection, path string) *VmCheckpoints return &result } -// // The list of virtual machine checkpoints. -// type VmCheckpointsServiceListRequest struct { VmCheckpointsService *VmCheckpointsService header map[string]string @@ -90362,9 +87142,7 @@ func (p *VmCheckpointsServiceListRequest) MustSend() *VmCheckpointsServiceListRe } } -// // The list of virtual machine checkpoints. -// type VmCheckpointsServiceListResponse struct { checkpoints *CheckpointSlice } @@ -90383,23 +87161,17 @@ func (p *VmCheckpointsServiceListResponse) MustCheckpoints() *CheckpointSlice { return p.checkpoints } -// // The list of virtual machine checkpoints. -// func (p *VmCheckpointsService) List() *VmCheckpointsServiceListRequest { return &VmCheckpointsServiceListRequest{VmCheckpointsService: p} } -// // Returns a reference to the service that manages a specific VM checkpoint. -// func (op *VmCheckpointsService) CheckpointService(id string) *VmCheckpointService { return NewVmCheckpointService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *VmCheckpointsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -90415,8 +87187,6 @@ func (op *VmCheckpointsService) String() string { return fmt.Sprintf("VmCheckpointsService:%s", op.path) } -// -// type VmDiskService struct { BaseService } @@ -90428,8 +87198,6 @@ func NewVmDiskService(connection *Connection, path string) *VmDiskService { return &result } -// -// type VmDiskServiceActivateRequest struct { VmDiskService *VmDiskService header map[string]string @@ -90542,19 +87310,13 @@ func (p *VmDiskServiceActivateRequest) MustSend() *VmDiskServiceActivateResponse } } -// -// type VmDiskServiceActivateResponse struct { } -// -// func (p *VmDiskService) Activate() *VmDiskServiceActivateRequest { return &VmDiskServiceActivateRequest{VmDiskService: p} } -// -// type VmDiskServiceDeactivateRequest struct { VmDiskService *VmDiskService header map[string]string @@ -90667,19 +87429,13 @@ func (p *VmDiskServiceDeactivateRequest) MustSend() *VmDiskServiceDeactivateResp } } -// -// type VmDiskServiceDeactivateResponse struct { } -// -// func (p *VmDiskService) Deactivate() *VmDiskServiceDeactivateRequest { return &VmDiskServiceDeactivateRequest{VmDiskService: p} } -// -// type VmDiskServiceExportRequest struct { VmDiskService *VmDiskService header map[string]string @@ -90801,19 +87557,13 @@ func (p *VmDiskServiceExportRequest) MustSend() *VmDiskServiceExportResponse { } } -// -// type VmDiskServiceExportResponse struct { } -// -// func (p *VmDiskService) Export() *VmDiskServiceExportRequest { return &VmDiskServiceExportRequest{VmDiskService: p} } -// -// type VmDiskServiceGetRequest struct { VmDiskService *VmDiskService header map[string]string @@ -90922,8 +87672,6 @@ func (p *VmDiskServiceGetRequest) MustSend() *VmDiskServiceGetResponse { } } -// -// type VmDiskServiceGetResponse struct { disk *Disk } @@ -90942,14 +87690,10 @@ func (p *VmDiskServiceGetResponse) MustDisk() *Disk { return p.disk } -// -// func (p *VmDiskService) Get() *VmDiskServiceGetRequest { return &VmDiskServiceGetRequest{VmDiskService: p} } -// -// type VmDiskServiceMoveRequest struct { VmDiskService *VmDiskService header map[string]string @@ -91071,23 +87815,17 @@ func (p *VmDiskServiceMoveRequest) MustSend() *VmDiskServiceMoveResponse { } } -// -// type VmDiskServiceMoveResponse struct { } -// -// func (p *VmDiskService) Move() *VmDiskServiceMoveRequest { return &VmDiskServiceMoveRequest{VmDiskService: p} } -// // Reduces the size of the disk image. // Invokes _reduce_ on the logical volume (i.e. this is only applicable for block storage domains). // This is applicable for floating disks and disks attached to non-running virtual machines. // There is no need to specify the size as the optimal size is calculated automatically. -// type VmDiskServiceReduceRequest struct { VmDiskService *VmDiskService header map[string]string @@ -91200,31 +87938,25 @@ func (p *VmDiskServiceReduceRequest) MustSend() *VmDiskServiceReduceResponse { } } -// // Reduces the size of the disk image. // Invokes _reduce_ on the logical volume (i.e. this is only applicable for block storage domains). // This is applicable for floating disks and disks attached to non-running virtual machines. // There is no need to specify the size as the optimal size is calculated automatically. -// type VmDiskServiceReduceResponse struct { } -// // Reduces the size of the disk image. // Invokes _reduce_ on the logical volume (i.e. this is only applicable for block storage domains). // This is applicable for floating disks and disks attached to non-running virtual machines. // There is no need to specify the size as the optimal size is calculated automatically. -// func (p *VmDiskService) Reduce() *VmDiskServiceReduceRequest { return &VmDiskServiceReduceRequest{VmDiskService: p} } -// // Detach the disk from the virtual machine. // NOTE: In version 3 of the API this used to also remove the disk completely from the system, but starting with // version 4 it doesn't. If you need to remove it completely use the <>. -// type VmDiskServiceRemoveRequest struct { VmDiskService *VmDiskService header map[string]string @@ -91328,27 +88060,21 @@ func (p *VmDiskServiceRemoveRequest) MustSend() *VmDiskServiceRemoveResponse { } } -// // Detach the disk from the virtual machine. // NOTE: In version 3 of the API this used to also remove the disk completely from the system, but starting with // version 4 it doesn't. If you need to remove it completely use the <>. -// type VmDiskServiceRemoveResponse struct { } -// // Detach the disk from the virtual machine. // NOTE: In version 3 of the API this used to also remove the disk completely from the system, but starting with // version 4 it doesn't. If you need to remove it completely use the <>. -// func (p *VmDiskService) Remove() *VmDiskServiceRemoveRequest { return &VmDiskServiceRemoveRequest{VmDiskService: p} } -// -// type VmDiskServiceUpdateRequest struct { VmDiskService *VmDiskService header map[string]string @@ -91470,8 +88196,6 @@ func (p *VmDiskServiceUpdateRequest) MustSend() *VmDiskServiceUpdateResponse { } } -// -// type VmDiskServiceUpdateResponse struct { disk *Disk } @@ -91490,27 +88214,19 @@ func (p *VmDiskServiceUpdateResponse) MustDisk() *Disk { return p.disk } -// -// func (p *VmDiskService) Update() *VmDiskServiceUpdateRequest { return &VmDiskServiceUpdateRequest{VmDiskService: p} } -// -// func (op *VmDiskService) PermissionsService() *AssignedPermissionsService { return NewAssignedPermissionsService(op.connection, fmt.Sprintf("%s/permissions", op.path)) } -// -// func (op *VmDiskService) StatisticsService() *StatisticsService { return NewStatisticsService(op.connection, fmt.Sprintf("%s/statistics", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *VmDiskService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -91534,8 +88250,6 @@ func (op *VmDiskService) String() string { return fmt.Sprintf("VmDiskService:%s", op.path) } -// -// type VmDisksService struct { BaseService } @@ -91547,8 +88261,6 @@ func NewVmDisksService(connection *Connection, path string) *VmDisksService { return &result } -// -// type VmDisksServiceAddRequest struct { VmDisksService *VmDisksService header map[string]string @@ -91660,8 +88372,6 @@ func (p *VmDisksServiceAddRequest) MustSend() *VmDisksServiceAddResponse { } } -// -// type VmDisksServiceAddResponse struct { disk *Disk } @@ -91680,16 +88390,12 @@ func (p *VmDisksServiceAddResponse) MustDisk() *Disk { return p.disk } -// -// func (p *VmDisksService) Add() *VmDisksServiceAddRequest { return &VmDisksServiceAddRequest{VmDisksService: p} } -// // Returns the list of disks of the virtual machine. // The order of the returned list of disks isn't guaranteed. -// type VmDisksServiceListRequest struct { VmDisksService *VmDisksService header map[string]string @@ -91808,10 +88514,8 @@ func (p *VmDisksServiceListRequest) MustSend() *VmDisksServiceListResponse { } } -// // Returns the list of disks of the virtual machine. // The order of the returned list of disks isn't guaranteed. -// type VmDisksServiceListResponse struct { disks *DiskSlice } @@ -91830,23 +88534,17 @@ func (p *VmDisksServiceListResponse) MustDisks() *DiskSlice { return p.disks } -// // Returns the list of disks of the virtual machine. // The order of the returned list of disks isn't guaranteed. -// func (p *VmDisksService) List() *VmDisksServiceListRequest { return &VmDisksServiceListRequest{VmDisksService: p} } -// -// func (op *VmDisksService) DiskService(id string) *VmDiskService { return NewVmDiskService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *VmDisksService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -91862,8 +88560,6 @@ func (op *VmDisksService) String() string { return fmt.Sprintf("VmDisksService:%s", op.path) } -// -// type VmGraphicsConsoleService struct { BaseService } @@ -91875,7 +88571,6 @@ func NewVmGraphicsConsoleService(connection *Connection, path string) *VmGraphic return &result } -// // Retrieves the graphics console configuration of the virtual machine. // IMPORTANT: By default, when the `current` parameter is not specified, the data returned // corresponds to the next execution of the virtual machine. In the current implementation of @@ -91883,7 +88578,6 @@ func NewVmGraphicsConsoleService(connection *Connection, path string) *VmGraphic // the system does not know what address and port will be used for the next execution. Since in most // cases those attributes are needed, it is strongly advised to aways explicitly include the // `current` parameter with the value `true`. -// type VmGraphicsConsoleServiceGetRequest struct { VmGraphicsConsoleService *VmGraphicsConsoleService header map[string]string @@ -92002,7 +88696,6 @@ func (p *VmGraphicsConsoleServiceGetRequest) MustSend() *VmGraphicsConsoleServic } } -// // Retrieves the graphics console configuration of the virtual machine. // IMPORTANT: By default, when the `current` parameter is not specified, the data returned // corresponds to the next execution of the virtual machine. In the current implementation of @@ -92010,7 +88703,6 @@ func (p *VmGraphicsConsoleServiceGetRequest) MustSend() *VmGraphicsConsoleServic // the system does not know what address and port will be used for the next execution. Since in most // cases those attributes are needed, it is strongly advised to aways explicitly include the // `current` parameter with the value `true`. -// type VmGraphicsConsoleServiceGetResponse struct { console *GraphicsConsole } @@ -92029,7 +88721,6 @@ func (p *VmGraphicsConsoleServiceGetResponse) MustConsole() *GraphicsConsole { return p.console } -// // Retrieves the graphics console configuration of the virtual machine. // IMPORTANT: By default, when the `current` parameter is not specified, the data returned // corresponds to the next execution of the virtual machine. In the current implementation of @@ -92037,13 +88728,10 @@ func (p *VmGraphicsConsoleServiceGetResponse) MustConsole() *GraphicsConsole { // the system does not know what address and port will be used for the next execution. Since in most // cases those attributes are needed, it is strongly advised to aways explicitly include the // `current` parameter with the value `true`. -// func (p *VmGraphicsConsoleService) Get() *VmGraphicsConsoleServiceGetRequest { return &VmGraphicsConsoleServiceGetRequest{VmGraphicsConsoleService: p} } -// -// type VmGraphicsConsoleServiceProxyTicketRequest struct { VmGraphicsConsoleService *VmGraphicsConsoleService header map[string]string @@ -92157,8 +88845,6 @@ func (p *VmGraphicsConsoleServiceProxyTicketRequest) MustSend() *VmGraphicsConso } } -// -// type VmGraphicsConsoleServiceProxyTicketResponse struct { proxyTicket *ProxyTicket } @@ -92177,13 +88863,10 @@ func (p *VmGraphicsConsoleServiceProxyTicketResponse) MustProxyTicket() *ProxyTi return p.proxyTicket } -// -// func (p *VmGraphicsConsoleService) ProxyTicket() *VmGraphicsConsoleServiceProxyTicketRequest { return &VmGraphicsConsoleServiceProxyTicketRequest{VmGraphicsConsoleService: p} } -// // Generates the file which is compatible with `remote-viewer` client. // Use the following request to generate remote viewer connection file of the graphics console. // Note that this action generates the file only if virtual machine is running. @@ -92201,25 +88884,27 @@ func (p *VmGraphicsConsoleService) ProxyTicket() *VmGraphicsConsoleServiceProxyT // [source,xml] // ---- // -// -// [virt-viewer] -// type=spice -// host=192.168.1.101 -// port=-1 -// password=123456789 -// delete-this-file=1 -// fullscreen=0 -// toggle-fullscreen=shift+f11 -// release-cursor=shift+f12 -// secure-attention=ctrl+alt+end -// tls-port=5900 -// enable-smartcard=0 -// enable-usb-autoshare=0 -// usb-filter=null -// tls-ciphers=DEFAULT -// host-subject=O=local,CN=example.com -// ca=... -// +// +// +// [virt-viewer] +// type=spice +// host=192.168.1.101 +// port=-1 +// password=123456789 +// delete-this-file=1 +// fullscreen=0 +// toggle-fullscreen=shift+f11 +// release-cursor=shift+f12 +// secure-attention=ctrl+alt+end +// tls-port=5900 +// enable-smartcard=0 +// enable-usb-autoshare=0 +// usb-filter=null +// tls-ciphers=DEFAULT +// host-subject=O=local,CN=example.com +// ca=... +// +// // // ---- // E.g., to fetch the content of remote viewer connection file and save it into temporary file, user can use @@ -92240,7 +88925,9 @@ func (p *VmGraphicsConsoleService) ProxyTicket() *VmGraphicsConsoleServiceProxyT // # Write the content to file "/tmp/remote_viewer_connection_file.vv" // path = "/tmp/remote_viewer_connection_file.vv" // with open(path, "w") as f: -// f.write(remote_viewer_connection_file) +// +// f.write(remote_viewer_connection_file) +// // ---- // When you create the remote viewer connection file, then you can connect to virtual machine graphic console, // as follows: @@ -92249,7 +88936,6 @@ func (p *VmGraphicsConsoleService) ProxyTicket() *VmGraphicsConsoleServiceProxyT // #!/bin/sh -ex // remote-viewer --ovirt-ca-file=/etc/pki/ovirt-engine/ca.pem /tmp/remote_viewer_connection_file.vv // ---- -// type VmGraphicsConsoleServiceRemoteViewerConnectionFileRequest struct { VmGraphicsConsoleService *VmGraphicsConsoleService header map[string]string @@ -92354,7 +89040,6 @@ func (p *VmGraphicsConsoleServiceRemoteViewerConnectionFileRequest) MustSend() * } } -// // Generates the file which is compatible with `remote-viewer` client. // Use the following request to generate remote viewer connection file of the graphics console. // Note that this action generates the file only if virtual machine is running. @@ -92372,25 +89057,27 @@ func (p *VmGraphicsConsoleServiceRemoteViewerConnectionFileRequest) MustSend() * // [source,xml] // ---- // -// -// [virt-viewer] -// type=spice -// host=192.168.1.101 -// port=-1 -// password=123456789 -// delete-this-file=1 -// fullscreen=0 -// toggle-fullscreen=shift+f11 -// release-cursor=shift+f12 -// secure-attention=ctrl+alt+end -// tls-port=5900 -// enable-smartcard=0 -// enable-usb-autoshare=0 -// usb-filter=null -// tls-ciphers=DEFAULT -// host-subject=O=local,CN=example.com -// ca=... -// +// +// +// [virt-viewer] +// type=spice +// host=192.168.1.101 +// port=-1 +// password=123456789 +// delete-this-file=1 +// fullscreen=0 +// toggle-fullscreen=shift+f11 +// release-cursor=shift+f12 +// secure-attention=ctrl+alt+end +// tls-port=5900 +// enable-smartcard=0 +// enable-usb-autoshare=0 +// usb-filter=null +// tls-ciphers=DEFAULT +// host-subject=O=local,CN=example.com +// ca=... +// +// // // ---- // E.g., to fetch the content of remote viewer connection file and save it into temporary file, user can use @@ -92411,7 +89098,9 @@ func (p *VmGraphicsConsoleServiceRemoteViewerConnectionFileRequest) MustSend() * // # Write the content to file "/tmp/remote_viewer_connection_file.vv" // path = "/tmp/remote_viewer_connection_file.vv" // with open(path, "w") as f: -// f.write(remote_viewer_connection_file) +// +// f.write(remote_viewer_connection_file) +// // ---- // When you create the remote viewer connection file, then you can connect to virtual machine graphic console, // as follows: @@ -92420,7 +89109,6 @@ func (p *VmGraphicsConsoleServiceRemoteViewerConnectionFileRequest) MustSend() * // #!/bin/sh -ex // remote-viewer --ovirt-ca-file=/etc/pki/ovirt-engine/ca.pem /tmp/remote_viewer_connection_file.vv // ---- -// type VmGraphicsConsoleServiceRemoteViewerConnectionFileResponse struct { remoteViewerConnectionFile *string } @@ -92440,7 +89128,6 @@ func (p *VmGraphicsConsoleServiceRemoteViewerConnectionFileResponse) MustRemoteV return *p.remoteViewerConnectionFile } -// // Generates the file which is compatible with `remote-viewer` client. // Use the following request to generate remote viewer connection file of the graphics console. // Note that this action generates the file only if virtual machine is running. @@ -92458,25 +89145,27 @@ func (p *VmGraphicsConsoleServiceRemoteViewerConnectionFileResponse) MustRemoteV // [source,xml] // ---- // -// -// [virt-viewer] -// type=spice -// host=192.168.1.101 -// port=-1 -// password=123456789 -// delete-this-file=1 -// fullscreen=0 -// toggle-fullscreen=shift+f11 -// release-cursor=shift+f12 -// secure-attention=ctrl+alt+end -// tls-port=5900 -// enable-smartcard=0 -// enable-usb-autoshare=0 -// usb-filter=null -// tls-ciphers=DEFAULT -// host-subject=O=local,CN=example.com -// ca=... -// +// +// +// [virt-viewer] +// type=spice +// host=192.168.1.101 +// port=-1 +// password=123456789 +// delete-this-file=1 +// fullscreen=0 +// toggle-fullscreen=shift+f11 +// release-cursor=shift+f12 +// secure-attention=ctrl+alt+end +// tls-port=5900 +// enable-smartcard=0 +// enable-usb-autoshare=0 +// usb-filter=null +// tls-ciphers=DEFAULT +// host-subject=O=local,CN=example.com +// ca=... +// +// // // ---- // E.g., to fetch the content of remote viewer connection file and save it into temporary file, user can use @@ -92497,7 +89186,9 @@ func (p *VmGraphicsConsoleServiceRemoteViewerConnectionFileResponse) MustRemoteV // # Write the content to file "/tmp/remote_viewer_connection_file.vv" // path = "/tmp/remote_viewer_connection_file.vv" // with open(path, "w") as f: -// f.write(remote_viewer_connection_file) +// +// f.write(remote_viewer_connection_file) +// // ---- // When you create the remote viewer connection file, then you can connect to virtual machine graphic console, // as follows: @@ -92506,14 +89197,11 @@ func (p *VmGraphicsConsoleServiceRemoteViewerConnectionFileResponse) MustRemoteV // #!/bin/sh -ex // remote-viewer --ovirt-ca-file=/etc/pki/ovirt-engine/ca.pem /tmp/remote_viewer_connection_file.vv // ---- -// func (p *VmGraphicsConsoleService) RemoteViewerConnectionFile() *VmGraphicsConsoleServiceRemoteViewerConnectionFileRequest { return &VmGraphicsConsoleServiceRemoteViewerConnectionFileRequest{VmGraphicsConsoleService: p} } -// // Remove the graphics console from the virtual machine. -// type VmGraphicsConsoleServiceRemoveRequest struct { VmGraphicsConsoleService *VmGraphicsConsoleService header map[string]string @@ -92617,20 +89305,15 @@ func (p *VmGraphicsConsoleServiceRemoveRequest) MustSend() *VmGraphicsConsoleSer } } -// // Remove the graphics console from the virtual machine. -// type VmGraphicsConsoleServiceRemoveResponse struct { } -// // Remove the graphics console from the virtual machine. -// func (p *VmGraphicsConsoleService) Remove() *VmGraphicsConsoleServiceRemoveRequest { return &VmGraphicsConsoleServiceRemoveRequest{VmGraphicsConsoleService: p} } -// // Generates a time-sensitive authentication token for accessing this virtual machine's console. // [source] // ---- @@ -92641,13 +89324,14 @@ func (p *VmGraphicsConsoleService) Remove() *VmGraphicsConsoleServiceRemoveReque // [source,xml] // ---- // -// -// abcd12345 -// 120 -// +// +// +// abcd12345 +// 120 +// +// // // ---- -// type VmGraphicsConsoleServiceTicketRequest struct { VmGraphicsConsoleService *VmGraphicsConsoleService header map[string]string @@ -92759,7 +89443,6 @@ func (p *VmGraphicsConsoleServiceTicketRequest) MustSend() *VmGraphicsConsoleSer } } -// // Generates a time-sensitive authentication token for accessing this virtual machine's console. // [source] // ---- @@ -92770,13 +89453,14 @@ func (p *VmGraphicsConsoleServiceTicketRequest) MustSend() *VmGraphicsConsoleSer // [source,xml] // ---- // -// -// abcd12345 -// 120 -// +// +// +// abcd12345 +// 120 +// +// // // ---- -// type VmGraphicsConsoleServiceTicketResponse struct { ticket *Ticket } @@ -92795,7 +89479,6 @@ func (p *VmGraphicsConsoleServiceTicketResponse) MustTicket() *Ticket { return p.ticket } -// // Generates a time-sensitive authentication token for accessing this virtual machine's console. // [source] // ---- @@ -92806,20 +89489,19 @@ func (p *VmGraphicsConsoleServiceTicketResponse) MustTicket() *Ticket { // [source,xml] // ---- // -// -// abcd12345 -// 120 -// +// +// +// abcd12345 +// 120 +// +// // // ---- -// func (p *VmGraphicsConsoleService) Ticket() *VmGraphicsConsoleServiceTicketRequest { return &VmGraphicsConsoleServiceTicketRequest{VmGraphicsConsoleService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *VmGraphicsConsoleService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -92831,8 +89513,6 @@ func (op *VmGraphicsConsoleService) String() string { return fmt.Sprintf("VmGraphicsConsoleService:%s", op.path) } -// -// type VmGraphicsConsolesService struct { BaseService } @@ -92844,9 +89524,7 @@ func NewVmGraphicsConsolesService(connection *Connection, path string) *VmGraphi return &result } -// // Add new graphics console to the virtual machine. -// type VmGraphicsConsolesServiceAddRequest struct { VmGraphicsConsolesService *VmGraphicsConsolesService header map[string]string @@ -92958,9 +89636,7 @@ func (p *VmGraphicsConsolesServiceAddRequest) MustSend() *VmGraphicsConsolesServ } } -// // Add new graphics console to the virtual machine. -// type VmGraphicsConsolesServiceAddResponse struct { console *GraphicsConsole } @@ -92979,14 +89655,11 @@ func (p *VmGraphicsConsolesServiceAddResponse) MustConsole() *GraphicsConsole { return p.console } -// // Add new graphics console to the virtual machine. -// func (p *VmGraphicsConsolesService) Add() *VmGraphicsConsolesServiceAddRequest { return &VmGraphicsConsolesServiceAddRequest{VmGraphicsConsolesService: p} } -// // Lists all the configured graphics consoles of the virtual machine. // IMPORTANT: By default, when the `current` parameter is not specified, the data returned // corresponds to the next execution of the virtual machine. In the current implementation of @@ -92995,7 +89668,6 @@ func (p *VmGraphicsConsolesService) Add() *VmGraphicsConsolesServiceAddRequest { // cases those attributes are needed, it is strongly advised to aways explicitly include the // `current` parameter with the value `true`. // The order of the returned list of graphics consoles is not guaranteed. -// type VmGraphicsConsolesServiceListRequest struct { VmGraphicsConsolesService *VmGraphicsConsolesService header map[string]string @@ -93124,7 +89796,6 @@ func (p *VmGraphicsConsolesServiceListRequest) MustSend() *VmGraphicsConsolesSer } } -// // Lists all the configured graphics consoles of the virtual machine. // IMPORTANT: By default, when the `current` parameter is not specified, the data returned // corresponds to the next execution of the virtual machine. In the current implementation of @@ -93133,7 +89804,6 @@ func (p *VmGraphicsConsolesServiceListRequest) MustSend() *VmGraphicsConsolesSer // cases those attributes are needed, it is strongly advised to aways explicitly include the // `current` parameter with the value `true`. // The order of the returned list of graphics consoles is not guaranteed. -// type VmGraphicsConsolesServiceListResponse struct { consoles *GraphicsConsoleSlice } @@ -93152,7 +89822,6 @@ func (p *VmGraphicsConsolesServiceListResponse) MustConsoles() *GraphicsConsoleS return p.consoles } -// // Lists all the configured graphics consoles of the virtual machine. // IMPORTANT: By default, when the `current` parameter is not specified, the data returned // corresponds to the next execution of the virtual machine. In the current implementation of @@ -93161,21 +89830,16 @@ func (p *VmGraphicsConsolesServiceListResponse) MustConsoles() *GraphicsConsoleS // cases those attributes are needed, it is strongly advised to aways explicitly include the // `current` parameter with the value `true`. // The order of the returned list of graphics consoles is not guaranteed. -// func (p *VmGraphicsConsolesService) List() *VmGraphicsConsolesServiceListRequest { return &VmGraphicsConsolesServiceListRequest{VmGraphicsConsolesService: p} } -// // Returns a reference to the service that manages a specific virtual machine graphics console. -// func (op *VmGraphicsConsolesService) ConsoleService(id string) *VmGraphicsConsoleService { return NewVmGraphicsConsoleService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *VmGraphicsConsolesService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -93191,9 +89855,7 @@ func (op *VmGraphicsConsolesService) String() string { return fmt.Sprintf("VmGraphicsConsolesService:%s", op.path) } -// // A service to manage individual host device attached to a virtual machine. -// type VmHostDeviceService struct { BaseService } @@ -93205,7 +89867,6 @@ func NewVmHostDeviceService(connection *Connection, path string) *VmHostDeviceSe return &result } -// // Retrieve information about particular host device attached to given virtual machine. // Example: // [source] @@ -93215,24 +89876,25 @@ func NewVmHostDeviceService(connection *Connection, path string) *VmHostDeviceSe // [source,xml] // ---- // -// pci_0000_04_00_0 -// pci -// 30 -// true -// -// GM107GL [Quadro K2200] -// -// -// NVIDIA Corporation -// -// -// -// pci_0000_00_03_0 -// -// +// +// pci_0000_04_00_0 +// pci +// 30 +// true +// +// GM107GL [Quadro K2200] +// +// +// NVIDIA Corporation +// +// +// +// pci_0000_00_03_0 +// +// +// // // ---- -// type VmHostDeviceServiceGetRequest struct { VmHostDeviceService *VmHostDeviceService header map[string]string @@ -93341,7 +90003,6 @@ func (p *VmHostDeviceServiceGetRequest) MustSend() *VmHostDeviceServiceGetRespon } } -// // Retrieve information about particular host device attached to given virtual machine. // Example: // [source] @@ -93351,24 +90012,25 @@ func (p *VmHostDeviceServiceGetRequest) MustSend() *VmHostDeviceServiceGetRespon // [source,xml] // ---- // -// pci_0000_04_00_0 -// pci -// 30 -// true -// -// GM107GL [Quadro K2200] -// -// -// NVIDIA Corporation -// -// -// -// pci_0000_00_03_0 -// -// +// +// pci_0000_04_00_0 +// pci +// 30 +// true +// +// GM107GL [Quadro K2200] +// +// +// NVIDIA Corporation +// +// +// +// pci_0000_00_03_0 +// +// +// // // ---- -// type VmHostDeviceServiceGetResponse struct { device *HostDevice } @@ -93387,7 +90049,6 @@ func (p *VmHostDeviceServiceGetResponse) MustDevice() *HostDevice { return p.device } -// // Retrieve information about particular host device attached to given virtual machine. // Example: // [source] @@ -93397,29 +90058,29 @@ func (p *VmHostDeviceServiceGetResponse) MustDevice() *HostDevice { // [source,xml] // ---- // -// pci_0000_04_00_0 -// pci -// 30 -// true -// -// GM107GL [Quadro K2200] -// -// -// NVIDIA Corporation -// -// -// -// pci_0000_00_03_0 -// -// +// +// pci_0000_04_00_0 +// pci +// 30 +// true +// +// GM107GL [Quadro K2200] +// +// +// NVIDIA Corporation +// +// +// +// pci_0000_00_03_0 +// +// +// // // ---- -// func (p *VmHostDeviceService) Get() *VmHostDeviceServiceGetRequest { return &VmHostDeviceServiceGetRequest{VmHostDeviceService: p} } -// // Remove the attachment of this host device from given virtual machine. // NOTE: In case this device serves as an IOMMU placeholder, it cannot be removed (remove will result only // in setting its `placeholder` flag to `true`). Note that all IOMMU placeholder devices will be removed @@ -93429,7 +90090,6 @@ func (p *VmHostDeviceService) Get() *VmHostDeviceServiceGetRequest { // ---- // DELETE /ovirt-engine/api/vms/123/hostdevices/456 // ---- -// type VmHostDeviceServiceRemoveRequest struct { VmHostDeviceService *VmHostDeviceService header map[string]string @@ -93533,7 +90193,6 @@ func (p *VmHostDeviceServiceRemoveRequest) MustSend() *VmHostDeviceServiceRemove } } -// // Remove the attachment of this host device from given virtual machine. // NOTE: In case this device serves as an IOMMU placeholder, it cannot be removed (remove will result only // in setting its `placeholder` flag to `true`). Note that all IOMMU placeholder devices will be removed @@ -93543,11 +90202,9 @@ func (p *VmHostDeviceServiceRemoveRequest) MustSend() *VmHostDeviceServiceRemove // ---- // DELETE /ovirt-engine/api/vms/123/hostdevices/456 // ---- -// type VmHostDeviceServiceRemoveResponse struct { } -// // Remove the attachment of this host device from given virtual machine. // NOTE: In case this device serves as an IOMMU placeholder, it cannot be removed (remove will result only // in setting its `placeholder` flag to `true`). Note that all IOMMU placeholder devices will be removed @@ -93557,14 +90214,11 @@ type VmHostDeviceServiceRemoveResponse struct { // ---- // DELETE /ovirt-engine/api/vms/123/hostdevices/456 // ---- -// func (p *VmHostDeviceService) Remove() *VmHostDeviceServiceRemoveRequest { return &VmHostDeviceServiceRemoveRequest{VmHostDeviceService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *VmHostDeviceService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -93576,9 +90230,7 @@ func (op *VmHostDeviceService) String() string { return fmt.Sprintf("VmHostDeviceService:%s", op.path) } -// // A service to manage host devices attached to a virtual machine. -// type VmHostDevicesService struct { BaseService } @@ -93590,7 +90242,6 @@ func NewVmHostDevicesService(connection *Connection, path string) *VmHostDevices return &result } -// // Attach target device to given virtual machine. // Example: // [source] @@ -93609,7 +90260,6 @@ func NewVmHostDevicesService(connection *Connection, path string) *VmHostDevices // attribute of the <> type set to `true`. // In case you want attach a device that already serves as an IOMMU placeholder, simply issue an explicit Add operation // for it, and its `placeholder` flag will be cleared, and the device will be accessible to the virtual machine. -// type VmHostDevicesServiceAddRequest struct { VmHostDevicesService *VmHostDevicesService header map[string]string @@ -93721,7 +90371,6 @@ func (p *VmHostDevicesServiceAddRequest) MustSend() *VmHostDevicesServiceAddResp } } -// // Attach target device to given virtual machine. // Example: // [source] @@ -93740,7 +90389,6 @@ func (p *VmHostDevicesServiceAddRequest) MustSend() *VmHostDevicesServiceAddResp // attribute of the <> type set to `true`. // In case you want attach a device that already serves as an IOMMU placeholder, simply issue an explicit Add operation // for it, and its `placeholder` flag will be cleared, and the device will be accessible to the virtual machine. -// type VmHostDevicesServiceAddResponse struct { device *HostDevice } @@ -93759,7 +90407,6 @@ func (p *VmHostDevicesServiceAddResponse) MustDevice() *HostDevice { return p.device } -// // Attach target device to given virtual machine. // Example: // [source] @@ -93778,15 +90425,12 @@ func (p *VmHostDevicesServiceAddResponse) MustDevice() *HostDevice { // attribute of the <> type set to `true`. // In case you want attach a device that already serves as an IOMMU placeholder, simply issue an explicit Add operation // for it, and its `placeholder` flag will be cleared, and the device will be accessible to the virtual machine. -// func (p *VmHostDevicesService) Add() *VmHostDevicesServiceAddRequest { return &VmHostDevicesServiceAddRequest{VmHostDevicesService: p} } -// // List the host devices assigned to given virtual machine. // The order of the returned list of devices isn't guaranteed. -// type VmHostDevicesServiceListRequest struct { VmHostDevicesService *VmHostDevicesService header map[string]string @@ -93905,10 +90549,8 @@ func (p *VmHostDevicesServiceListRequest) MustSend() *VmHostDevicesServiceListRe } } -// // List the host devices assigned to given virtual machine. // The order of the returned list of devices isn't guaranteed. -// type VmHostDevicesServiceListResponse struct { device *HostDeviceSlice } @@ -93927,24 +90569,18 @@ func (p *VmHostDevicesServiceListResponse) MustDevice() *HostDeviceSlice { return p.device } -// // List the host devices assigned to given virtual machine. // The order of the returned list of devices isn't guaranteed. -// func (p *VmHostDevicesService) List() *VmHostDevicesServiceListRequest { return &VmHostDevicesServiceListRequest{VmHostDevicesService: p} } -// // Returns a reference to the service that manages a specific host device attached to given virtual machine. -// func (op *VmHostDevicesService) DeviceService(id string) *VmHostDeviceService { return NewVmHostDeviceService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *VmHostDevicesService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -93960,8 +90596,6 @@ func (op *VmHostDevicesService) String() string { return fmt.Sprintf("VmHostDevicesService:%s", op.path) } -// -// type VmNicService struct { BaseService } @@ -93973,8 +90607,6 @@ func NewVmNicService(connection *Connection, path string) *VmNicService { return &result } -// -// type VmNicServiceActivateRequest struct { VmNicService *VmNicService header map[string]string @@ -94087,19 +90719,13 @@ func (p *VmNicServiceActivateRequest) MustSend() *VmNicServiceActivateResponse { } } -// -// type VmNicServiceActivateResponse struct { } -// -// func (p *VmNicService) Activate() *VmNicServiceActivateRequest { return &VmNicServiceActivateRequest{VmNicService: p} } -// -// type VmNicServiceDeactivateRequest struct { VmNicService *VmNicService header map[string]string @@ -94212,19 +90838,13 @@ func (p *VmNicServiceDeactivateRequest) MustSend() *VmNicServiceDeactivateRespon } } -// -// type VmNicServiceDeactivateResponse struct { } -// -// func (p *VmNicService) Deactivate() *VmNicServiceDeactivateRequest { return &VmNicServiceDeactivateRequest{VmNicService: p} } -// -// type VmNicServiceGetRequest struct { VmNicService *VmNicService header map[string]string @@ -94333,8 +90953,6 @@ func (p *VmNicServiceGetRequest) MustSend() *VmNicServiceGetResponse { } } -// -// type VmNicServiceGetResponse struct { nic *Nic } @@ -94353,13 +90971,10 @@ func (p *VmNicServiceGetResponse) MustNic() *Nic { return p.nic } -// -// func (p *VmNicService) Get() *VmNicServiceGetRequest { return &VmNicServiceGetRequest{VmNicService: p} } -// // Removes the NIC. // For example, to remove the NIC with id `456` from the virtual machine with id `123` send a request like this: // [source] @@ -94375,7 +90990,6 @@ func (p *VmNicService) Get() *VmNicServiceGetRequest { // - Windows Server 2008 and // - Windows Server 2003 // ==== -// type VmNicServiceRemoveRequest struct { VmNicService *VmNicService header map[string]string @@ -94479,7 +91093,6 @@ func (p *VmNicServiceRemoveRequest) MustSend() *VmNicServiceRemoveResponse { } } -// // Removes the NIC. // For example, to remove the NIC with id `456` from the virtual machine with id `123` send a request like this: // [source] @@ -94495,11 +91108,9 @@ func (p *VmNicServiceRemoveRequest) MustSend() *VmNicServiceRemoveResponse { // - Windows Server 2008 and // - Windows Server 2003 // ==== -// type VmNicServiceRemoveResponse struct { } -// // Removes the NIC. // For example, to remove the NIC with id `456` from the virtual machine with id `123` send a request like this: // [source] @@ -94515,12 +91126,10 @@ type VmNicServiceRemoveResponse struct { // - Windows Server 2008 and // - Windows Server 2003 // ==== -// func (p *VmNicService) Remove() *VmNicServiceRemoveRequest { return &VmNicServiceRemoveRequest{VmNicService: p} } -// // Updates the NIC. // For example, to update the NIC having with `456` belonging to virtual the machine with id `123` send a request // like this: @@ -94532,9 +91141,11 @@ func (p *VmNicService) Remove() *VmNicServiceRemoveRequest { // [source,xml] // ---- // -// mynic -// e1000 -// +// +// mynic +// e1000 +// +// // // ---- // [IMPORTANT] @@ -94546,7 +91157,6 @@ func (p *VmNicService) Remove() *VmNicServiceRemoveRequest { // - Windows Server 2008 and // - Windows Server 2003 // ==== -// type VmNicServiceUpdateRequest struct { VmNicService *VmNicService header map[string]string @@ -94668,7 +91278,6 @@ func (p *VmNicServiceUpdateRequest) MustSend() *VmNicServiceUpdateResponse { } } -// // Updates the NIC. // For example, to update the NIC having with `456` belonging to virtual the machine with id `123` send a request // like this: @@ -94680,9 +91289,11 @@ func (p *VmNicServiceUpdateRequest) MustSend() *VmNicServiceUpdateResponse { // [source,xml] // ---- // -// mynic -// e1000 -// +// +// mynic +// e1000 +// +// // // ---- // [IMPORTANT] @@ -94694,7 +91305,6 @@ func (p *VmNicServiceUpdateRequest) MustSend() *VmNicServiceUpdateResponse { // - Windows Server 2008 and // - Windows Server 2003 // ==== -// type VmNicServiceUpdateResponse struct { nic *Nic } @@ -94713,7 +91323,6 @@ func (p *VmNicServiceUpdateResponse) MustNic() *Nic { return p.nic } -// // Updates the NIC. // For example, to update the NIC having with `456` belonging to virtual the machine with id `123` send a request // like this: @@ -94725,9 +91334,11 @@ func (p *VmNicServiceUpdateResponse) MustNic() *Nic { // [source,xml] // ---- // -// mynic -// e1000 -// +// +// mynic +// e1000 +// +// // // ---- // [IMPORTANT] @@ -94739,34 +91350,25 @@ func (p *VmNicServiceUpdateResponse) MustNic() *Nic { // - Windows Server 2008 and // - Windows Server 2003 // ==== -// func (p *VmNicService) Update() *VmNicServiceUpdateRequest { return &VmNicServiceUpdateRequest{VmNicService: p} } -// // Reference to the service that manages the network filter parameters of the NIC. // A single top-level network filter may assigned to the NIC by the NIC's <>. -// func (op *VmNicService) NetworkFilterParametersService() *NicNetworkFilterParametersService { return NewNicNetworkFilterParametersService(op.connection, fmt.Sprintf("%s/networkfilterparameters", op.path)) } -// -// func (op *VmNicService) ReportedDevicesService() *VmReportedDevicesService { return NewVmReportedDevicesService(op.connection, fmt.Sprintf("%s/reporteddevices", op.path)) } -// -// func (op *VmNicService) StatisticsService() *StatisticsService { return NewStatisticsService(op.connection, fmt.Sprintf("%s/statistics", op.path)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *VmNicService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -94796,8 +91398,6 @@ func (op *VmNicService) String() string { return fmt.Sprintf("VmNicService:%s", op.path) } -// -// type VmNicsService struct { BaseService } @@ -94809,7 +91409,6 @@ func NewVmNicsService(connection *Connection, path string) *VmNicsService { return &result } -// // Adds a NIC to the virtual machine. // The following example adds to the virtual machine `123` a network interface named `mynic` using `virtio` and the // NIC profile `456`. @@ -94820,9 +91419,11 @@ func NewVmNicsService(connection *Connection, path string) *VmNicsService { // [source,xml] // ---- // -// mynic -// virtio -// +// +// mynic +// virtio +// +// // // ---- // The following example sends that request using `curl`: @@ -94837,9 +91438,11 @@ func NewVmNicsService(connection *Connection, path string) *VmNicsService { // --cacert /etc/pki/ovirt-engine/ca.pem \ // --data ' // -// mynic -// virtio -// +// +// mynic +// virtio +// +// // // ' \ // https://myengine.example.com/ovirt-engine/api/vms/123/nics @@ -94853,7 +91456,6 @@ func NewVmNicsService(connection *Connection, path string) *VmNicsService { // - Windows Server 2008 and // - Windows Server 2003 // ==== -// type VmNicsServiceAddRequest struct { VmNicsService *VmNicsService header map[string]string @@ -94965,7 +91567,6 @@ func (p *VmNicsServiceAddRequest) MustSend() *VmNicsServiceAddResponse { } } -// // Adds a NIC to the virtual machine. // The following example adds to the virtual machine `123` a network interface named `mynic` using `virtio` and the // NIC profile `456`. @@ -94976,9 +91577,11 @@ func (p *VmNicsServiceAddRequest) MustSend() *VmNicsServiceAddResponse { // [source,xml] // ---- // -// mynic -// virtio -// +// +// mynic +// virtio +// +// // // ---- // The following example sends that request using `curl`: @@ -94993,9 +91596,11 @@ func (p *VmNicsServiceAddRequest) MustSend() *VmNicsServiceAddResponse { // --cacert /etc/pki/ovirt-engine/ca.pem \ // --data ' // -// mynic -// virtio -// +// +// mynic +// virtio +// +// // // ' \ // https://myengine.example.com/ovirt-engine/api/vms/123/nics @@ -95009,7 +91614,6 @@ func (p *VmNicsServiceAddRequest) MustSend() *VmNicsServiceAddResponse { // - Windows Server 2008 and // - Windows Server 2003 // ==== -// type VmNicsServiceAddResponse struct { nic *Nic } @@ -95028,7 +91632,6 @@ func (p *VmNicsServiceAddResponse) MustNic() *Nic { return p.nic } -// // Adds a NIC to the virtual machine. // The following example adds to the virtual machine `123` a network interface named `mynic` using `virtio` and the // NIC profile `456`. @@ -95039,9 +91642,11 @@ func (p *VmNicsServiceAddResponse) MustNic() *Nic { // [source,xml] // ---- // -// mynic -// virtio -// +// +// mynic +// virtio +// +// // // ---- // The following example sends that request using `curl`: @@ -95056,9 +91661,11 @@ func (p *VmNicsServiceAddResponse) MustNic() *Nic { // --cacert /etc/pki/ovirt-engine/ca.pem \ // --data ' // -// mynic -// virtio -// +// +// mynic +// virtio +// +// // // ' \ // https://myengine.example.com/ovirt-engine/api/vms/123/nics @@ -95072,15 +91679,12 @@ func (p *VmNicsServiceAddResponse) MustNic() *Nic { // - Windows Server 2008 and // - Windows Server 2003 // ==== -// func (p *VmNicsService) Add() *VmNicsServiceAddRequest { return &VmNicsServiceAddRequest{VmNicsService: p} } -// // Returns the list of NICs of the virtual machine. // The order of the returned list of NICs isn't guaranteed. -// type VmNicsServiceListRequest struct { VmNicsService *VmNicsService header map[string]string @@ -95199,10 +91803,8 @@ func (p *VmNicsServiceListRequest) MustSend() *VmNicsServiceListResponse { } } -// // Returns the list of NICs of the virtual machine. // The order of the returned list of NICs isn't guaranteed. -// type VmNicsServiceListResponse struct { nics *NicSlice } @@ -95221,23 +91823,17 @@ func (p *VmNicsServiceListResponse) MustNics() *NicSlice { return p.nics } -// // Returns the list of NICs of the virtual machine. // The order of the returned list of NICs isn't guaranteed. -// func (p *VmNicsService) List() *VmNicsServiceListRequest { return &VmNicsServiceListRequest{VmNicsService: p} } -// -// func (op *VmNicsService) NicService(id string) *VmNicService { return NewVmNicService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *VmNicsService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -95253,8 +91849,6 @@ func (op *VmNicsService) String() string { return fmt.Sprintf("VmNicsService:%s", op.path) } -// -// type VmNumaNodeService struct { BaseService } @@ -95266,8 +91860,6 @@ func NewVmNumaNodeService(connection *Connection, path string) *VmNumaNodeServic return &result } -// -// type VmNumaNodeServiceGetRequest struct { VmNumaNodeService *VmNumaNodeService header map[string]string @@ -95376,8 +91968,6 @@ func (p *VmNumaNodeServiceGetRequest) MustSend() *VmNumaNodeServiceGetResponse { } } -// -// type VmNumaNodeServiceGetResponse struct { node *VirtualNumaNode } @@ -95396,13 +91986,10 @@ func (p *VmNumaNodeServiceGetResponse) MustNode() *VirtualNumaNode { return p.node } -// -// func (p *VmNumaNodeService) Get() *VmNumaNodeServiceGetRequest { return &VmNumaNodeServiceGetRequest{VmNumaNodeService: p} } -// // Removes a virtual NUMA node. // An example of removing a virtual NUMA node: // [source] @@ -95411,7 +91998,6 @@ func (p *VmNumaNodeService) Get() *VmNumaNodeServiceGetRequest { // ---- // NOTE: It's required to remove the numa nodes from the highest index // first. -// type VmNumaNodeServiceRemoveRequest struct { VmNumaNodeService *VmNumaNodeService header map[string]string @@ -95515,7 +92101,6 @@ func (p *VmNumaNodeServiceRemoveRequest) MustSend() *VmNumaNodeServiceRemoveResp } } -// // Removes a virtual NUMA node. // An example of removing a virtual NUMA node: // [source] @@ -95524,11 +92109,9 @@ func (p *VmNumaNodeServiceRemoveRequest) MustSend() *VmNumaNodeServiceRemoveResp // ---- // NOTE: It's required to remove the numa nodes from the highest index // first. -// type VmNumaNodeServiceRemoveResponse struct { } -// // Removes a virtual NUMA node. // An example of removing a virtual NUMA node: // [source] @@ -95537,12 +92120,10 @@ type VmNumaNodeServiceRemoveResponse struct { // ---- // NOTE: It's required to remove the numa nodes from the highest index // first. -// func (p *VmNumaNodeService) Remove() *VmNumaNodeServiceRemoveRequest { return &VmNumaNodeServiceRemoveRequest{VmNumaNodeService: p} } -// // Updates a virtual NUMA node. // An example of pinning a virtual NUMA node to a physical NUMA node on the host: // [source] @@ -95553,14 +92134,15 @@ func (p *VmNumaNodeService) Remove() *VmNumaNodeServiceRemoveRequest { // [source,xml] // ---- // -// -// -// 0 -// -// +// +// +// +// 0 +// +// +// // // ---- -// type VmNumaNodeServiceUpdateRequest struct { VmNumaNodeService *VmNumaNodeService header map[string]string @@ -95682,7 +92264,6 @@ func (p *VmNumaNodeServiceUpdateRequest) MustSend() *VmNumaNodeServiceUpdateResp } } -// // Updates a virtual NUMA node. // An example of pinning a virtual NUMA node to a physical NUMA node on the host: // [source] @@ -95693,14 +92274,15 @@ func (p *VmNumaNodeServiceUpdateRequest) MustSend() *VmNumaNodeServiceUpdateResp // [source,xml] // ---- // -// -// -// 0 -// -// +// +// +// +// 0 +// +// +// // // ---- -// type VmNumaNodeServiceUpdateResponse struct { node *VirtualNumaNode } @@ -95719,7 +92301,6 @@ func (p *VmNumaNodeServiceUpdateResponse) MustNode() *VirtualNumaNode { return p.node } -// // Updates a virtual NUMA node. // An example of pinning a virtual NUMA node to a physical NUMA node on the host: // [source] @@ -95730,21 +92311,20 @@ func (p *VmNumaNodeServiceUpdateResponse) MustNode() *VirtualNumaNode { // [source,xml] // ---- // -// -// -// 0 -// -// +// +// +// +// 0 +// +// +// // // ---- -// func (p *VmNumaNodeService) Update() *VmNumaNodeServiceUpdateRequest { return &VmNumaNodeServiceUpdateRequest{VmNumaNodeService: p} } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *VmNumaNodeService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -95756,8 +92336,6 @@ func (op *VmNumaNodeService) String() string { return fmt.Sprintf("VmNumaNodeService:%s", op.path) } -// -// type VmNumaNodesService struct { BaseService } @@ -95769,7 +92347,6 @@ func NewVmNumaNodesService(connection *Connection, path string) *VmNumaNodesServ return &result } -// // Creates a new virtual NUMA node for the virtual machine. // An example of creating a NUMA node: // [source] @@ -95782,19 +92359,20 @@ func NewVmNumaNodesService(connection *Connection, path string) *VmNumaNodesServ // [source,xml] // ---- // -// -// -// -// 0 -// -// -// -// 0 -// 1024 -// strict +// +// +// +// +// 0 +// +// +// +// 0 +// 1024 +// strict +// // // ---- -// type VmNumaNodesServiceAddRequest struct { VmNumaNodesService *VmNumaNodesService header map[string]string @@ -95906,7 +92484,6 @@ func (p *VmNumaNodesServiceAddRequest) MustSend() *VmNumaNodesServiceAddResponse } } -// // Creates a new virtual NUMA node for the virtual machine. // An example of creating a NUMA node: // [source] @@ -95919,19 +92496,20 @@ func (p *VmNumaNodesServiceAddRequest) MustSend() *VmNumaNodesServiceAddResponse // [source,xml] // ---- // -// -// -// -// 0 -// -// -// -// 0 -// 1024 -// strict +// +// +// +// +// 0 +// +// +// +// 0 +// 1024 +// strict +// // // ---- -// type VmNumaNodesServiceAddResponse struct { node *VirtualNumaNode } @@ -95950,7 +92528,6 @@ func (p *VmNumaNodesServiceAddResponse) MustNode() *VirtualNumaNode { return p.node } -// // Creates a new virtual NUMA node for the virtual machine. // An example of creating a NUMA node: // [source] @@ -95963,27 +92540,26 @@ func (p *VmNumaNodesServiceAddResponse) MustNode() *VirtualNumaNode { // [source,xml] // ---- // -// -// -// -// 0 -// -// -// -// 0 -// 1024 -// strict +// +// +// +// +// 0 +// +// +// +// 0 +// 1024 +// strict +// // // ---- -// func (p *VmNumaNodesService) Add() *VmNumaNodesServiceAddRequest { return &VmNumaNodesServiceAddRequest{VmNumaNodesService: p} } -// // Lists virtual NUMA nodes of a virtual machine. // The order of the returned list of NUMA nodes isn't guaranteed. -// type VmNumaNodesServiceListRequest struct { VmNumaNodesService *VmNumaNodesService header map[string]string @@ -96102,10 +92678,8 @@ func (p *VmNumaNodesServiceListRequest) MustSend() *VmNumaNodesServiceListRespon } } -// // Lists virtual NUMA nodes of a virtual machine. // The order of the returned list of NUMA nodes isn't guaranteed. -// type VmNumaNodesServiceListResponse struct { nodes *VirtualNumaNodeSlice } @@ -96124,23 +92698,17 @@ func (p *VmNumaNodesServiceListResponse) MustNodes() *VirtualNumaNodeSlice { return p.nodes } -// // Lists virtual NUMA nodes of a virtual machine. // The order of the returned list of NUMA nodes isn't guaranteed. -// func (p *VmNumaNodesService) List() *VmNumaNodesServiceListRequest { return &VmNumaNodesServiceListRequest{VmNumaNodesService: p} } -// -// func (op *VmNumaNodesService) NodeService(id string) *VmNumaNodeService { return NewVmNumaNodeService(op.connection, fmt.Sprintf("%s/%s", op.path, id)) } -// // Service locator method, returns individual service on which the URI is dispatched. -// func (op *VmNumaNodesService) Service(path string) (Service, error) { if path == "" { return op, nil @@ -96156,9 +92724,7 @@ func (op *VmNumaNodesService) String() string { return fmt.Sprintf("VmNumaNodesService:%s", op.path) } -// // A service to manage a virtual machines pool. -// type VmPoolService struct { BaseService } @@ -96170,7 +92736,6 @@ func NewVmPoolService(connection *Connection, path string) *VmPoolService { return &result } -// // This operation allocates a virtual machine in the virtual machine pool. // [source] // ---- @@ -96182,7 +92747,6 @@ func NewVmPoolService(connection *Connection, path string) *VmPoolService { // ---- // // ---- -// type VmPoolServiceAllocateVmRequest struct { VmPoolService *VmPoolService header map[string]string @@ -96295,7 +92859,6 @@ func (p *VmPoolServiceAllocateVmRequest) MustSend() *VmPoolServiceAllocateVmResp } } -// // This operation allocates a virtual machine in the virtual machine pool. // [source] // ---- @@ -96307,11 +92870,9 @@ func (p *VmPoolServiceAllocateVmRequest) MustSend() *VmPoolServiceAllocateVmResp // ---- // // ---- -// type VmPoolServiceAllocateVmResponse struct { } -// // This operation allocates a virtual machine in the virtual machine pool. // [source] // ---- @@ -96323,12 +92884,10 @@ type VmPoolServiceAllocateVmResponse struct { // ---- // // ---- -// func (p *VmPoolService) AllocateVm() *VmPoolServiceAllocateVmRequest { return &VmPoolServiceAllocateVmRequest{VmPoolService: p} } -// // Get the virtual machine pool. // [source] // ---- @@ -96338,23 +92897,24 @@ func (p *VmPoolService) AllocateVm() *VmPoolServiceAllocateVmRequest { // [source,xml] // ---- // -// ... -// MyVmPool -// MyVmPool description -// -// 1 -// 0 -// 100 -// false -// automatic -// false -// -//