github.com/vmware/govmomi@v0.37.1/eam/methods/methods.go (about) 1 /* 2 Copyright (c) 2021-2023 VMware, Inc. All Rights Reserved. 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 package methods 18 19 import ( 20 "context" 21 22 "github.com/vmware/govmomi/eam/types" 23 "github.com/vmware/govmomi/vim25/soap" 24 ) 25 26 type AddIssueBody struct { 27 Req *types.AddIssue `xml:"urn:eam AddIssue,omitempty"` 28 Res *types.AddIssueResponse `xml:"urn:eam AddIssueResponse,omitempty"` 29 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 30 } 31 32 func (b *AddIssueBody) Fault() *soap.Fault { return b.Fault_ } 33 34 func AddIssue(ctx context.Context, r soap.RoundTripper, req *types.AddIssue) (*types.AddIssueResponse, error) { 35 var reqBody, resBody AddIssueBody 36 37 reqBody.Req = req 38 39 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 40 return nil, err 41 } 42 43 return resBody.Res, nil 44 } 45 46 type AgencyQueryRuntimeBody struct { 47 Req *types.AgencyQueryRuntime `xml:"urn:eam AgencyQueryRuntime,omitempty"` 48 Res *types.AgencyQueryRuntimeResponse `xml:"urn:eam AgencyQueryRuntimeResponse,omitempty"` 49 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 50 } 51 52 func (b *AgencyQueryRuntimeBody) Fault() *soap.Fault { return b.Fault_ } 53 54 func AgencyQueryRuntime(ctx context.Context, r soap.RoundTripper, req *types.AgencyQueryRuntime) (*types.AgencyQueryRuntimeResponse, error) { 55 var reqBody, resBody AgencyQueryRuntimeBody 56 57 reqBody.Req = req 58 59 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 60 return nil, err 61 } 62 63 return resBody.Res, nil 64 } 65 66 type Agency_DisableBody struct { 67 Req *types.Agency_Disable `xml:"urn:eam Agency_Disable,omitempty"` 68 Res *types.Agency_DisableResponse `xml:"urn:eam Agency_DisableResponse,omitempty"` 69 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 70 } 71 72 func (b *Agency_DisableBody) Fault() *soap.Fault { return b.Fault_ } 73 74 func Agency_Disable(ctx context.Context, r soap.RoundTripper, req *types.Agency_Disable) (*types.Agency_DisableResponse, error) { 75 var reqBody, resBody Agency_DisableBody 76 77 reqBody.Req = req 78 79 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 80 return nil, err 81 } 82 83 return resBody.Res, nil 84 } 85 86 type Agency_EnableBody struct { 87 Req *types.Agency_Enable `xml:"urn:eam Agency_Enable,omitempty"` 88 Res *types.Agency_EnableResponse `xml:"urn:eam Agency_EnableResponse,omitempty"` 89 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 90 } 91 92 func (b *Agency_EnableBody) Fault() *soap.Fault { return b.Fault_ } 93 94 func Agency_Enable(ctx context.Context, r soap.RoundTripper, req *types.Agency_Enable) (*types.Agency_EnableResponse, error) { 95 var reqBody, resBody Agency_EnableBody 96 97 reqBody.Req = req 98 99 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 100 return nil, err 101 } 102 103 return resBody.Res, nil 104 } 105 106 type AgentQueryConfigBody struct { 107 Req *types.AgentQueryConfig `xml:"urn:eam AgentQueryConfig,omitempty"` 108 Res *types.AgentQueryConfigResponse `xml:"urn:eam AgentQueryConfigResponse,omitempty"` 109 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 110 } 111 112 func (b *AgentQueryConfigBody) Fault() *soap.Fault { return b.Fault_ } 113 114 func AgentQueryConfig(ctx context.Context, r soap.RoundTripper, req *types.AgentQueryConfig) (*types.AgentQueryConfigResponse, error) { 115 var reqBody, resBody AgentQueryConfigBody 116 117 reqBody.Req = req 118 119 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 120 return nil, err 121 } 122 123 return resBody.Res, nil 124 } 125 126 type AgentQueryRuntimeBody struct { 127 Req *types.AgentQueryRuntime `xml:"urn:eam AgentQueryRuntime,omitempty"` 128 Res *types.AgentQueryRuntimeResponse `xml:"urn:eam AgentQueryRuntimeResponse,omitempty"` 129 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 130 } 131 132 func (b *AgentQueryRuntimeBody) Fault() *soap.Fault { return b.Fault_ } 133 134 func AgentQueryRuntime(ctx context.Context, r soap.RoundTripper, req *types.AgentQueryRuntime) (*types.AgentQueryRuntimeResponse, error) { 135 var reqBody, resBody AgentQueryRuntimeBody 136 137 reqBody.Req = req 138 139 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 140 return nil, err 141 } 142 143 return resBody.Res, nil 144 } 145 146 type CreateAgencyBody struct { 147 Req *types.CreateAgency `xml:"urn:eam CreateAgency,omitempty"` 148 Res *types.CreateAgencyResponse `xml:"urn:eam CreateAgencyResponse,omitempty"` 149 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 150 } 151 152 func (b *CreateAgencyBody) Fault() *soap.Fault { return b.Fault_ } 153 154 func CreateAgency(ctx context.Context, r soap.RoundTripper, req *types.CreateAgency) (*types.CreateAgencyResponse, error) { 155 var reqBody, resBody CreateAgencyBody 156 157 reqBody.Req = req 158 159 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 160 return nil, err 161 } 162 163 return resBody.Res, nil 164 } 165 166 type DestroyAgencyBody struct { 167 Req *types.DestroyAgency `xml:"urn:eam DestroyAgency,omitempty"` 168 Res *types.DestroyAgencyResponse `xml:"urn:eam DestroyAgencyResponse,omitempty"` 169 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 170 } 171 172 func (b *DestroyAgencyBody) Fault() *soap.Fault { return b.Fault_ } 173 174 func DestroyAgency(ctx context.Context, r soap.RoundTripper, req *types.DestroyAgency) (*types.DestroyAgencyResponse, error) { 175 var reqBody, resBody DestroyAgencyBody 176 177 reqBody.Req = req 178 179 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 180 return nil, err 181 } 182 183 return resBody.Res, nil 184 } 185 186 type MarkAsAvailableBody struct { 187 Req *types.MarkAsAvailable `xml:"urn:eam MarkAsAvailable,omitempty"` 188 Res *types.MarkAsAvailableResponse `xml:"urn:eam MarkAsAvailableResponse,omitempty"` 189 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 190 } 191 192 func (b *MarkAsAvailableBody) Fault() *soap.Fault { return b.Fault_ } 193 194 func MarkAsAvailable(ctx context.Context, r soap.RoundTripper, req *types.MarkAsAvailable) (*types.MarkAsAvailableResponse, error) { 195 var reqBody, resBody MarkAsAvailableBody 196 197 reqBody.Req = req 198 199 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 200 return nil, err 201 } 202 203 return resBody.Res, nil 204 } 205 206 type QueryAgencyBody struct { 207 Req *types.QueryAgency `xml:"urn:eam QueryAgency,omitempty"` 208 Res *types.QueryAgencyResponse `xml:"urn:eam QueryAgencyResponse,omitempty"` 209 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 210 } 211 212 func (b *QueryAgencyBody) Fault() *soap.Fault { return b.Fault_ } 213 214 func QueryAgency(ctx context.Context, r soap.RoundTripper, req *types.QueryAgency) (*types.QueryAgencyResponse, error) { 215 var reqBody, resBody QueryAgencyBody 216 217 reqBody.Req = req 218 219 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 220 return nil, err 221 } 222 223 return resBody.Res, nil 224 } 225 226 type QueryAgentBody struct { 227 Req *types.QueryAgent `xml:"urn:eam QueryAgent,omitempty"` 228 Res *types.QueryAgentResponse `xml:"urn:eam QueryAgentResponse,omitempty"` 229 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 230 } 231 232 func (b *QueryAgentBody) Fault() *soap.Fault { return b.Fault_ } 233 234 func QueryAgent(ctx context.Context, r soap.RoundTripper, req *types.QueryAgent) (*types.QueryAgentResponse, error) { 235 var reqBody, resBody QueryAgentBody 236 237 reqBody.Req = req 238 239 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 240 return nil, err 241 } 242 243 return resBody.Res, nil 244 } 245 246 type QueryConfigBody struct { 247 Req *types.QueryConfig `xml:"urn:eam QueryConfig,omitempty"` 248 Res *types.QueryConfigResponse `xml:"urn:eam QueryConfigResponse,omitempty"` 249 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 250 } 251 252 func (b *QueryConfigBody) Fault() *soap.Fault { return b.Fault_ } 253 254 func QueryConfig(ctx context.Context, r soap.RoundTripper, req *types.QueryConfig) (*types.QueryConfigResponse, error) { 255 var reqBody, resBody QueryConfigBody 256 257 reqBody.Req = req 258 259 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 260 return nil, err 261 } 262 263 return resBody.Res, nil 264 } 265 266 type QueryIssueBody struct { 267 Req *types.QueryIssue `xml:"urn:eam QueryIssue,omitempty"` 268 Res *types.QueryIssueResponse `xml:"urn:eam QueryIssueResponse,omitempty"` 269 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 270 } 271 272 func (b *QueryIssueBody) Fault() *soap.Fault { return b.Fault_ } 273 274 func QueryIssue(ctx context.Context, r soap.RoundTripper, req *types.QueryIssue) (*types.QueryIssueResponse, error) { 275 var reqBody, resBody QueryIssueBody 276 277 reqBody.Req = req 278 279 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 280 return nil, err 281 } 282 283 return resBody.Res, nil 284 } 285 286 type QuerySolutionIdBody struct { 287 Req *types.QuerySolutionId `xml:"urn:eam QuerySolutionId,omitempty"` 288 Res *types.QuerySolutionIdResponse `xml:"urn:eam QuerySolutionIdResponse,omitempty"` 289 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 290 } 291 292 func (b *QuerySolutionIdBody) Fault() *soap.Fault { return b.Fault_ } 293 294 func QuerySolutionId(ctx context.Context, r soap.RoundTripper, req *types.QuerySolutionId) (*types.QuerySolutionIdResponse, error) { 295 var reqBody, resBody QuerySolutionIdBody 296 297 reqBody.Req = req 298 299 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 300 return nil, err 301 } 302 303 return resBody.Res, nil 304 } 305 306 type RegisterAgentVmBody struct { 307 Req *types.RegisterAgentVm `xml:"urn:eam RegisterAgentVm,omitempty"` 308 Res *types.RegisterAgentVmResponse `xml:"urn:eam RegisterAgentVmResponse,omitempty"` 309 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 310 } 311 312 func (b *RegisterAgentVmBody) Fault() *soap.Fault { return b.Fault_ } 313 314 func RegisterAgentVm(ctx context.Context, r soap.RoundTripper, req *types.RegisterAgentVm) (*types.RegisterAgentVmResponse, error) { 315 var reqBody, resBody RegisterAgentVmBody 316 317 reqBody.Req = req 318 319 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 320 return nil, err 321 } 322 323 return resBody.Res, nil 324 } 325 326 type ResolveBody struct { 327 Req *types.Resolve `xml:"urn:eam Resolve,omitempty"` 328 Res *types.ResolveResponse `xml:"urn:eam ResolveResponse,omitempty"` 329 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 330 } 331 332 func (b *ResolveBody) Fault() *soap.Fault { return b.Fault_ } 333 334 func Resolve(ctx context.Context, r soap.RoundTripper, req *types.Resolve) (*types.ResolveResponse, error) { 335 var reqBody, resBody ResolveBody 336 337 reqBody.Req = req 338 339 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 340 return nil, err 341 } 342 343 return resBody.Res, nil 344 } 345 346 type ResolveAllBody struct { 347 Req *types.ResolveAll `xml:"urn:eam ResolveAll,omitempty"` 348 Res *types.ResolveAllResponse `xml:"urn:eam ResolveAllResponse,omitempty"` 349 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 350 } 351 352 func (b *ResolveAllBody) Fault() *soap.Fault { return b.Fault_ } 353 354 func ResolveAll(ctx context.Context, r soap.RoundTripper, req *types.ResolveAll) (*types.ResolveAllResponse, error) { 355 var reqBody, resBody ResolveAllBody 356 357 reqBody.Req = req 358 359 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 360 return nil, err 361 } 362 363 return resBody.Res, nil 364 } 365 366 type ScanForUnknownAgentVmBody struct { 367 Req *types.ScanForUnknownAgentVm `xml:"urn:eam ScanForUnknownAgentVm,omitempty"` 368 Res *types.ScanForUnknownAgentVmResponse `xml:"urn:eam ScanForUnknownAgentVmResponse,omitempty"` 369 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 370 } 371 372 func (b *ScanForUnknownAgentVmBody) Fault() *soap.Fault { return b.Fault_ } 373 374 func ScanForUnknownAgentVm(ctx context.Context, r soap.RoundTripper, req *types.ScanForUnknownAgentVm) (*types.ScanForUnknownAgentVmResponse, error) { 375 var reqBody, resBody ScanForUnknownAgentVmBody 376 377 reqBody.Req = req 378 379 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 380 return nil, err 381 } 382 383 return resBody.Res, nil 384 } 385 386 type UninstallBody struct { 387 Req *types.Uninstall `xml:"urn:eam Uninstall,omitempty"` 388 Res *types.UninstallResponse `xml:"urn:eam UninstallResponse,omitempty"` 389 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 390 } 391 392 func (b *UninstallBody) Fault() *soap.Fault { return b.Fault_ } 393 394 func Uninstall(ctx context.Context, r soap.RoundTripper, req *types.Uninstall) (*types.UninstallResponse, error) { 395 var reqBody, resBody UninstallBody 396 397 reqBody.Req = req 398 399 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 400 return nil, err 401 } 402 403 return resBody.Res, nil 404 } 405 406 type UnregisterAgentVmBody struct { 407 Req *types.UnregisterAgentVm `xml:"urn:eam UnregisterAgentVm,omitempty"` 408 Res *types.UnregisterAgentVmResponse `xml:"urn:eam UnregisterAgentVmResponse,omitempty"` 409 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 410 } 411 412 func (b *UnregisterAgentVmBody) Fault() *soap.Fault { return b.Fault_ } 413 414 func UnregisterAgentVm(ctx context.Context, r soap.RoundTripper, req *types.UnregisterAgentVm) (*types.UnregisterAgentVmResponse, error) { 415 var reqBody, resBody UnregisterAgentVmBody 416 417 reqBody.Req = req 418 419 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 420 return nil, err 421 } 422 423 return resBody.Res, nil 424 } 425 426 type UpdateBody struct { 427 Req *types.Update `xml:"urn:eam Update,omitempty"` 428 Res *types.UpdateResponse `xml:"urn:eam UpdateResponse,omitempty"` 429 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 430 } 431 432 func (b *UpdateBody) Fault() *soap.Fault { return b.Fault_ } 433 434 func Update(ctx context.Context, r soap.RoundTripper, req *types.Update) (*types.UpdateResponse, error) { 435 var reqBody, resBody UpdateBody 436 437 reqBody.Req = req 438 439 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 440 return nil, err 441 } 442 443 return resBody.Res, nil 444 }