github.com/vmware/govmomi@v0.37.1/sms/methods/methods.go (about) 1 /* 2 Copyright (c) 2014-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/sms/types" 23 "github.com/vmware/govmomi/vim25/soap" 24 ) 25 26 type FailoverReplicationGroup_TaskBody struct { 27 Req *types.FailoverReplicationGroup_Task `xml:"urn:sms FailoverReplicationGroup_Task,omitempty"` 28 Res *types.FailoverReplicationGroup_TaskResponse `xml:"urn:sms FailoverReplicationGroup_TaskResponse,omitempty"` 29 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 30 } 31 32 func (b *FailoverReplicationGroup_TaskBody) Fault() *soap.Fault { return b.Fault_ } 33 34 func FailoverReplicationGroup_Task(ctx context.Context, r soap.RoundTripper, req *types.FailoverReplicationGroup_Task) (*types.FailoverReplicationGroup_TaskResponse, error) { 35 var reqBody, resBody FailoverReplicationGroup_TaskBody 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 PrepareFailoverReplicationGroup_TaskBody struct { 47 Req *types.PrepareFailoverReplicationGroup_Task `xml:"urn:sms PrepareFailoverReplicationGroup_Task,omitempty"` 48 Res *types.PrepareFailoverReplicationGroup_TaskResponse `xml:"urn:sms PrepareFailoverReplicationGroup_TaskResponse,omitempty"` 49 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 50 } 51 52 func (b *PrepareFailoverReplicationGroup_TaskBody) Fault() *soap.Fault { return b.Fault_ } 53 54 func PrepareFailoverReplicationGroup_Task(ctx context.Context, r soap.RoundTripper, req *types.PrepareFailoverReplicationGroup_Task) (*types.PrepareFailoverReplicationGroup_TaskResponse, error) { 55 var reqBody, resBody PrepareFailoverReplicationGroup_TaskBody 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 PromoteReplicationGroup_TaskBody struct { 67 Req *types.PromoteReplicationGroup_Task `xml:"urn:sms PromoteReplicationGroup_Task,omitempty"` 68 Res *types.PromoteReplicationGroup_TaskResponse `xml:"urn:sms PromoteReplicationGroup_TaskResponse,omitempty"` 69 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 70 } 71 72 func (b *PromoteReplicationGroup_TaskBody) Fault() *soap.Fault { return b.Fault_ } 73 74 func PromoteReplicationGroup_Task(ctx context.Context, r soap.RoundTripper, req *types.PromoteReplicationGroup_Task) (*types.PromoteReplicationGroup_TaskResponse, error) { 75 var reqBody, resBody PromoteReplicationGroup_TaskBody 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 QueryAboutInfoBody struct { 87 Req *types.QueryAboutInfo `xml:"urn:sms QueryAboutInfo,omitempty"` 88 Res *types.QueryAboutInfoResponse `xml:"urn:sms QueryAboutInfoResponse,omitempty"` 89 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 90 } 91 92 func (b *QueryAboutInfoBody) Fault() *soap.Fault { return b.Fault_ } 93 94 func QueryAboutInfo(ctx context.Context, r soap.RoundTripper, req *types.QueryAboutInfo) (*types.QueryAboutInfoResponse, error) { 95 var reqBody, resBody QueryAboutInfoBody 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 QueryActiveAlarmBody struct { 107 Req *types.QueryActiveAlarm `xml:"urn:sms QueryActiveAlarm,omitempty"` 108 Res *types.QueryActiveAlarmResponse `xml:"urn:sms QueryActiveAlarmResponse,omitempty"` 109 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 110 } 111 112 func (b *QueryActiveAlarmBody) Fault() *soap.Fault { return b.Fault_ } 113 114 func QueryActiveAlarm(ctx context.Context, r soap.RoundTripper, req *types.QueryActiveAlarm) (*types.QueryActiveAlarmResponse, error) { 115 var reqBody, resBody QueryActiveAlarmBody 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 QueryArrayBody struct { 127 Req *types.QueryArray `xml:"urn:sms QueryArray,omitempty"` 128 Res *types.QueryArrayResponse `xml:"urn:sms QueryArrayResponse,omitempty"` 129 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 130 } 131 132 func (b *QueryArrayBody) Fault() *soap.Fault { return b.Fault_ } 133 134 func QueryArray(ctx context.Context, r soap.RoundTripper, req *types.QueryArray) (*types.QueryArrayResponse, error) { 135 var reqBody, resBody QueryArrayBody 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 QueryArrayAssociatedWithLunBody struct { 147 Req *types.QueryArrayAssociatedWithLun `xml:"urn:sms QueryArrayAssociatedWithLun,omitempty"` 148 Res *types.QueryArrayAssociatedWithLunResponse `xml:"urn:sms QueryArrayAssociatedWithLunResponse,omitempty"` 149 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 150 } 151 152 func (b *QueryArrayAssociatedWithLunBody) Fault() *soap.Fault { return b.Fault_ } 153 154 func QueryArrayAssociatedWithLun(ctx context.Context, r soap.RoundTripper, req *types.QueryArrayAssociatedWithLun) (*types.QueryArrayAssociatedWithLunResponse, error) { 155 var reqBody, resBody QueryArrayAssociatedWithLunBody 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 QueryAssociatedBackingStoragePoolBody struct { 167 Req *types.QueryAssociatedBackingStoragePool `xml:"urn:sms QueryAssociatedBackingStoragePool,omitempty"` 168 Res *types.QueryAssociatedBackingStoragePoolResponse `xml:"urn:sms QueryAssociatedBackingStoragePoolResponse,omitempty"` 169 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 170 } 171 172 func (b *QueryAssociatedBackingStoragePoolBody) Fault() *soap.Fault { return b.Fault_ } 173 174 func QueryAssociatedBackingStoragePool(ctx context.Context, r soap.RoundTripper, req *types.QueryAssociatedBackingStoragePool) (*types.QueryAssociatedBackingStoragePoolResponse, error) { 175 var reqBody, resBody QueryAssociatedBackingStoragePoolBody 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 QueryDatastoreBackingPoolMappingBody struct { 187 Req *types.QueryDatastoreBackingPoolMapping `xml:"urn:sms QueryDatastoreBackingPoolMapping,omitempty"` 188 Res *types.QueryDatastoreBackingPoolMappingResponse `xml:"urn:sms QueryDatastoreBackingPoolMappingResponse,omitempty"` 189 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 190 } 191 192 func (b *QueryDatastoreBackingPoolMappingBody) Fault() *soap.Fault { return b.Fault_ } 193 194 func QueryDatastoreBackingPoolMapping(ctx context.Context, r soap.RoundTripper, req *types.QueryDatastoreBackingPoolMapping) (*types.QueryDatastoreBackingPoolMappingResponse, error) { 195 var reqBody, resBody QueryDatastoreBackingPoolMappingBody 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 QueryDatastoreCapabilityBody struct { 207 Req *types.QueryDatastoreCapability `xml:"urn:sms QueryDatastoreCapability,omitempty"` 208 Res *types.QueryDatastoreCapabilityResponse `xml:"urn:sms QueryDatastoreCapabilityResponse,omitempty"` 209 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 210 } 211 212 func (b *QueryDatastoreCapabilityBody) Fault() *soap.Fault { return b.Fault_ } 213 214 func QueryDatastoreCapability(ctx context.Context, r soap.RoundTripper, req *types.QueryDatastoreCapability) (*types.QueryDatastoreCapabilityResponse, error) { 215 var reqBody, resBody QueryDatastoreCapabilityBody 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 QueryDrsMigrationCapabilityForPerformanceBody struct { 227 Req *types.QueryDrsMigrationCapabilityForPerformance `xml:"urn:sms QueryDrsMigrationCapabilityForPerformance,omitempty"` 228 Res *types.QueryDrsMigrationCapabilityForPerformanceResponse `xml:"urn:sms QueryDrsMigrationCapabilityForPerformanceResponse,omitempty"` 229 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 230 } 231 232 func (b *QueryDrsMigrationCapabilityForPerformanceBody) Fault() *soap.Fault { return b.Fault_ } 233 234 func QueryDrsMigrationCapabilityForPerformance(ctx context.Context, r soap.RoundTripper, req *types.QueryDrsMigrationCapabilityForPerformance) (*types.QueryDrsMigrationCapabilityForPerformanceResponse, error) { 235 var reqBody, resBody QueryDrsMigrationCapabilityForPerformanceBody 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 QueryDrsMigrationCapabilityForPerformanceExBody struct { 247 Req *types.QueryDrsMigrationCapabilityForPerformanceEx `xml:"urn:sms QueryDrsMigrationCapabilityForPerformanceEx,omitempty"` 248 Res *types.QueryDrsMigrationCapabilityForPerformanceExResponse `xml:"urn:sms QueryDrsMigrationCapabilityForPerformanceExResponse,omitempty"` 249 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 250 } 251 252 func (b *QueryDrsMigrationCapabilityForPerformanceExBody) Fault() *soap.Fault { return b.Fault_ } 253 254 func QueryDrsMigrationCapabilityForPerformanceEx(ctx context.Context, r soap.RoundTripper, req *types.QueryDrsMigrationCapabilityForPerformanceEx) (*types.QueryDrsMigrationCapabilityForPerformanceExResponse, error) { 255 var reqBody, resBody QueryDrsMigrationCapabilityForPerformanceExBody 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 QueryFaultDomainBody struct { 267 Req *types.QueryFaultDomain `xml:"urn:sms QueryFaultDomain,omitempty"` 268 Res *types.QueryFaultDomainResponse `xml:"urn:sms QueryFaultDomainResponse,omitempty"` 269 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 270 } 271 272 func (b *QueryFaultDomainBody) Fault() *soap.Fault { return b.Fault_ } 273 274 func QueryFaultDomain(ctx context.Context, r soap.RoundTripper, req *types.QueryFaultDomain) (*types.QueryFaultDomainResponse, error) { 275 var reqBody, resBody QueryFaultDomainBody 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 QueryFileSystemAssociatedWithArrayBody struct { 287 Req *types.QueryFileSystemAssociatedWithArray `xml:"urn:sms QueryFileSystemAssociatedWithArray,omitempty"` 288 Res *types.QueryFileSystemAssociatedWithArrayResponse `xml:"urn:sms QueryFileSystemAssociatedWithArrayResponse,omitempty"` 289 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 290 } 291 292 func (b *QueryFileSystemAssociatedWithArrayBody) Fault() *soap.Fault { return b.Fault_ } 293 294 func QueryFileSystemAssociatedWithArray(ctx context.Context, r soap.RoundTripper, req *types.QueryFileSystemAssociatedWithArray) (*types.QueryFileSystemAssociatedWithArrayResponse, error) { 295 var reqBody, resBody QueryFileSystemAssociatedWithArrayBody 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 QueryHostAssociatedWithLunBody struct { 307 Req *types.QueryHostAssociatedWithLun `xml:"urn:sms QueryHostAssociatedWithLun,omitempty"` 308 Res *types.QueryHostAssociatedWithLunResponse `xml:"urn:sms QueryHostAssociatedWithLunResponse,omitempty"` 309 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 310 } 311 312 func (b *QueryHostAssociatedWithLunBody) Fault() *soap.Fault { return b.Fault_ } 313 314 func QueryHostAssociatedWithLun(ctx context.Context, r soap.RoundTripper, req *types.QueryHostAssociatedWithLun) (*types.QueryHostAssociatedWithLunResponse, error) { 315 var reqBody, resBody QueryHostAssociatedWithLunBody 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 QueryLunAssociatedWithArrayBody struct { 327 Req *types.QueryLunAssociatedWithArray `xml:"urn:sms QueryLunAssociatedWithArray,omitempty"` 328 Res *types.QueryLunAssociatedWithArrayResponse `xml:"urn:sms QueryLunAssociatedWithArrayResponse,omitempty"` 329 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 330 } 331 332 func (b *QueryLunAssociatedWithArrayBody) Fault() *soap.Fault { return b.Fault_ } 333 334 func QueryLunAssociatedWithArray(ctx context.Context, r soap.RoundTripper, req *types.QueryLunAssociatedWithArray) (*types.QueryLunAssociatedWithArrayResponse, error) { 335 var reqBody, resBody QueryLunAssociatedWithArrayBody 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 QueryLunAssociatedWithPortBody struct { 347 Req *types.QueryLunAssociatedWithPort `xml:"urn:sms QueryLunAssociatedWithPort,omitempty"` 348 Res *types.QueryLunAssociatedWithPortResponse `xml:"urn:sms QueryLunAssociatedWithPortResponse,omitempty"` 349 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 350 } 351 352 func (b *QueryLunAssociatedWithPortBody) Fault() *soap.Fault { return b.Fault_ } 353 354 func QueryLunAssociatedWithPort(ctx context.Context, r soap.RoundTripper, req *types.QueryLunAssociatedWithPort) (*types.QueryLunAssociatedWithPortResponse, error) { 355 var reqBody, resBody QueryLunAssociatedWithPortBody 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 QueryNfsDatastoreAssociatedWithFileSystemBody struct { 367 Req *types.QueryNfsDatastoreAssociatedWithFileSystem `xml:"urn:sms QueryNfsDatastoreAssociatedWithFileSystem,omitempty"` 368 Res *types.QueryNfsDatastoreAssociatedWithFileSystemResponse `xml:"urn:sms QueryNfsDatastoreAssociatedWithFileSystemResponse,omitempty"` 369 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 370 } 371 372 func (b *QueryNfsDatastoreAssociatedWithFileSystemBody) Fault() *soap.Fault { return b.Fault_ } 373 374 func QueryNfsDatastoreAssociatedWithFileSystem(ctx context.Context, r soap.RoundTripper, req *types.QueryNfsDatastoreAssociatedWithFileSystem) (*types.QueryNfsDatastoreAssociatedWithFileSystemResponse, error) { 375 var reqBody, resBody QueryNfsDatastoreAssociatedWithFileSystemBody 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 QueryPointInTimeReplicaBody struct { 387 Req *types.QueryPointInTimeReplica `xml:"urn:sms QueryPointInTimeReplica,omitempty"` 388 Res *types.QueryPointInTimeReplicaResponse `xml:"urn:sms QueryPointInTimeReplicaResponse,omitempty"` 389 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 390 } 391 392 func (b *QueryPointInTimeReplicaBody) Fault() *soap.Fault { return b.Fault_ } 393 394 func QueryPointInTimeReplica(ctx context.Context, r soap.RoundTripper, req *types.QueryPointInTimeReplica) (*types.QueryPointInTimeReplicaResponse, error) { 395 var reqBody, resBody QueryPointInTimeReplicaBody 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 QueryPortAssociatedWithArrayBody struct { 407 Req *types.QueryPortAssociatedWithArray `xml:"urn:sms QueryPortAssociatedWithArray,omitempty"` 408 Res *types.QueryPortAssociatedWithArrayResponse `xml:"urn:sms QueryPortAssociatedWithArrayResponse,omitempty"` 409 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 410 } 411 412 func (b *QueryPortAssociatedWithArrayBody) Fault() *soap.Fault { return b.Fault_ } 413 414 func QueryPortAssociatedWithArray(ctx context.Context, r soap.RoundTripper, req *types.QueryPortAssociatedWithArray) (*types.QueryPortAssociatedWithArrayResponse, error) { 415 var reqBody, resBody QueryPortAssociatedWithArrayBody 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 QueryPortAssociatedWithLunBody struct { 427 Req *types.QueryPortAssociatedWithLun `xml:"urn:sms QueryPortAssociatedWithLun,omitempty"` 428 Res *types.QueryPortAssociatedWithLunResponse `xml:"urn:sms QueryPortAssociatedWithLunResponse,omitempty"` 429 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 430 } 431 432 func (b *QueryPortAssociatedWithLunBody) Fault() *soap.Fault { return b.Fault_ } 433 434 func QueryPortAssociatedWithLun(ctx context.Context, r soap.RoundTripper, req *types.QueryPortAssociatedWithLun) (*types.QueryPortAssociatedWithLunResponse, error) { 435 var reqBody, resBody QueryPortAssociatedWithLunBody 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 } 445 446 type QueryPortAssociatedWithProcessorBody struct { 447 Req *types.QueryPortAssociatedWithProcessor `xml:"urn:sms QueryPortAssociatedWithProcessor,omitempty"` 448 Res *types.QueryPortAssociatedWithProcessorResponse `xml:"urn:sms QueryPortAssociatedWithProcessorResponse,omitempty"` 449 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 450 } 451 452 func (b *QueryPortAssociatedWithProcessorBody) Fault() *soap.Fault { return b.Fault_ } 453 454 func QueryPortAssociatedWithProcessor(ctx context.Context, r soap.RoundTripper, req *types.QueryPortAssociatedWithProcessor) (*types.QueryPortAssociatedWithProcessorResponse, error) { 455 var reqBody, resBody QueryPortAssociatedWithProcessorBody 456 457 reqBody.Req = req 458 459 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 460 return nil, err 461 } 462 463 return resBody.Res, nil 464 } 465 466 type QueryProcessorAssociatedWithArrayBody struct { 467 Req *types.QueryProcessorAssociatedWithArray `xml:"urn:sms QueryProcessorAssociatedWithArray,omitempty"` 468 Res *types.QueryProcessorAssociatedWithArrayResponse `xml:"urn:sms QueryProcessorAssociatedWithArrayResponse,omitempty"` 469 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 470 } 471 472 func (b *QueryProcessorAssociatedWithArrayBody) Fault() *soap.Fault { return b.Fault_ } 473 474 func QueryProcessorAssociatedWithArray(ctx context.Context, r soap.RoundTripper, req *types.QueryProcessorAssociatedWithArray) (*types.QueryProcessorAssociatedWithArrayResponse, error) { 475 var reqBody, resBody QueryProcessorAssociatedWithArrayBody 476 477 reqBody.Req = req 478 479 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 480 return nil, err 481 } 482 483 return resBody.Res, nil 484 } 485 486 type QueryProviderBody struct { 487 Req *types.QueryProvider `xml:"urn:sms QueryProvider,omitempty"` 488 Res *types.QueryProviderResponse `xml:"urn:sms QueryProviderResponse,omitempty"` 489 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 490 } 491 492 func (b *QueryProviderBody) Fault() *soap.Fault { return b.Fault_ } 493 494 func QueryProvider(ctx context.Context, r soap.RoundTripper, req *types.QueryProvider) (*types.QueryProviderResponse, error) { 495 var reqBody, resBody QueryProviderBody 496 497 reqBody.Req = req 498 499 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 500 return nil, err 501 } 502 503 return resBody.Res, nil 504 } 505 506 type QueryProviderInfoBody struct { 507 Req *types.QueryProviderInfo `xml:"urn:sms QueryProviderInfo,omitempty"` 508 Res *types.QueryProviderInfoResponse `xml:"urn:sms QueryProviderInfoResponse,omitempty"` 509 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 510 } 511 512 func (b *QueryProviderInfoBody) Fault() *soap.Fault { return b.Fault_ } 513 514 func QueryProviderInfo(ctx context.Context, r soap.RoundTripper, req *types.QueryProviderInfo) (*types.QueryProviderInfoResponse, error) { 515 var reqBody, resBody QueryProviderInfoBody 516 517 reqBody.Req = req 518 519 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 520 return nil, err 521 } 522 523 return resBody.Res, nil 524 } 525 526 type QueryReplicationGroupBody struct { 527 Req *types.QueryReplicationGroup `xml:"urn:sms QueryReplicationGroup,omitempty"` 528 Res *types.QueryReplicationGroupResponse `xml:"urn:sms QueryReplicationGroupResponse,omitempty"` 529 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 530 } 531 532 func (b *QueryReplicationGroupBody) Fault() *soap.Fault { return b.Fault_ } 533 534 func QueryReplicationGroup(ctx context.Context, r soap.RoundTripper, req *types.QueryReplicationGroup) (*types.QueryReplicationGroupResponse, error) { 535 var reqBody, resBody QueryReplicationGroupBody 536 537 reqBody.Req = req 538 539 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 540 return nil, err 541 } 542 543 return resBody.Res, nil 544 } 545 546 type QueryReplicationGroupInfoBody struct { 547 Req *types.QueryReplicationGroupInfo `xml:"urn:sms QueryReplicationGroupInfo,omitempty"` 548 Res *types.QueryReplicationGroupInfoResponse `xml:"urn:sms QueryReplicationGroupInfoResponse,omitempty"` 549 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 550 } 551 552 func (b *QueryReplicationGroupInfoBody) Fault() *soap.Fault { return b.Fault_ } 553 554 func QueryReplicationGroupInfo(ctx context.Context, r soap.RoundTripper, req *types.QueryReplicationGroupInfo) (*types.QueryReplicationGroupInfoResponse, error) { 555 var reqBody, resBody QueryReplicationGroupInfoBody 556 557 reqBody.Req = req 558 559 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 560 return nil, err 561 } 562 563 return resBody.Res, nil 564 } 565 566 type QueryReplicationPeerBody struct { 567 Req *types.QueryReplicationPeer `xml:"urn:sms QueryReplicationPeer,omitempty"` 568 Res *types.QueryReplicationPeerResponse `xml:"urn:sms QueryReplicationPeerResponse,omitempty"` 569 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 570 } 571 572 func (b *QueryReplicationPeerBody) Fault() *soap.Fault { return b.Fault_ } 573 574 func QueryReplicationPeer(ctx context.Context, r soap.RoundTripper, req *types.QueryReplicationPeer) (*types.QueryReplicationPeerResponse, error) { 575 var reqBody, resBody QueryReplicationPeerBody 576 577 reqBody.Req = req 578 579 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 580 return nil, err 581 } 582 583 return resBody.Res, nil 584 } 585 586 type QuerySessionManagerBody struct { 587 Req *types.QuerySessionManager `xml:"urn:sms QuerySessionManager,omitempty"` 588 Res *types.QuerySessionManagerResponse `xml:"urn:sms QuerySessionManagerResponse,omitempty"` 589 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 590 } 591 592 func (b *QuerySessionManagerBody) Fault() *soap.Fault { return b.Fault_ } 593 594 func QuerySessionManager(ctx context.Context, r soap.RoundTripper, req *types.QuerySessionManager) (*types.QuerySessionManagerResponse, error) { 595 var reqBody, resBody QuerySessionManagerBody 596 597 reqBody.Req = req 598 599 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 600 return nil, err 601 } 602 603 return resBody.Res, nil 604 } 605 606 type QuerySmsTaskInfoBody struct { 607 Req *types.QuerySmsTaskInfo `xml:"urn:sms QuerySmsTaskInfo,omitempty"` 608 Res *types.QuerySmsTaskInfoResponse `xml:"urn:sms QuerySmsTaskInfoResponse,omitempty"` 609 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 610 } 611 612 func (b *QuerySmsTaskInfoBody) Fault() *soap.Fault { return b.Fault_ } 613 614 func QuerySmsTaskInfo(ctx context.Context, r soap.RoundTripper, req *types.QuerySmsTaskInfo) (*types.QuerySmsTaskInfoResponse, error) { 615 var reqBody, resBody QuerySmsTaskInfoBody 616 617 reqBody.Req = req 618 619 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 620 return nil, err 621 } 622 623 return resBody.Res, nil 624 } 625 626 type QuerySmsTaskResultBody struct { 627 Req *types.QuerySmsTaskResult `xml:"urn:sms QuerySmsTaskResult,omitempty"` 628 Res *types.QuerySmsTaskResultResponse `xml:"urn:sms QuerySmsTaskResultResponse,omitempty"` 629 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 630 } 631 632 func (b *QuerySmsTaskResultBody) Fault() *soap.Fault { return b.Fault_ } 633 634 func QuerySmsTaskResult(ctx context.Context, r soap.RoundTripper, req *types.QuerySmsTaskResult) (*types.QuerySmsTaskResultResponse, error) { 635 var reqBody, resBody QuerySmsTaskResultBody 636 637 reqBody.Req = req 638 639 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 640 return nil, err 641 } 642 643 return resBody.Res, nil 644 } 645 646 type QueryStorageContainerBody struct { 647 Req *types.QueryStorageContainer `xml:"urn:sms QueryStorageContainer,omitempty"` 648 Res *types.QueryStorageContainerResponse `xml:"urn:sms QueryStorageContainerResponse,omitempty"` 649 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 650 } 651 652 func (b *QueryStorageContainerBody) Fault() *soap.Fault { return b.Fault_ } 653 654 func QueryStorageContainer(ctx context.Context, r soap.RoundTripper, req *types.QueryStorageContainer) (*types.QueryStorageContainerResponse, error) { 655 var reqBody, resBody QueryStorageContainerBody 656 657 reqBody.Req = req 658 659 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 660 return nil, err 661 } 662 663 return resBody.Res, nil 664 } 665 666 type QueryStorageManagerBody struct { 667 Req *types.QueryStorageManager `xml:"urn:sms QueryStorageManager,omitempty"` 668 Res *types.QueryStorageManagerResponse `xml:"urn:sms QueryStorageManagerResponse,omitempty"` 669 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 670 } 671 672 func (b *QueryStorageManagerBody) Fault() *soap.Fault { return b.Fault_ } 673 674 func QueryStorageManager(ctx context.Context, r soap.RoundTripper, req *types.QueryStorageManager) (*types.QueryStorageManagerResponse, error) { 675 var reqBody, resBody QueryStorageManagerBody 676 677 reqBody.Req = req 678 679 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 680 return nil, err 681 } 682 683 return resBody.Res, nil 684 } 685 686 type QueryVmfsDatastoreAssociatedWithLunBody struct { 687 Req *types.QueryVmfsDatastoreAssociatedWithLun `xml:"urn:sms QueryVmfsDatastoreAssociatedWithLun,omitempty"` 688 Res *types.QueryVmfsDatastoreAssociatedWithLunResponse `xml:"urn:sms QueryVmfsDatastoreAssociatedWithLunResponse,omitempty"` 689 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 690 } 691 692 func (b *QueryVmfsDatastoreAssociatedWithLunBody) Fault() *soap.Fault { return b.Fault_ } 693 694 func QueryVmfsDatastoreAssociatedWithLun(ctx context.Context, r soap.RoundTripper, req *types.QueryVmfsDatastoreAssociatedWithLun) (*types.QueryVmfsDatastoreAssociatedWithLunResponse, error) { 695 var reqBody, resBody QueryVmfsDatastoreAssociatedWithLunBody 696 697 reqBody.Req = req 698 699 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 700 return nil, err 701 } 702 703 return resBody.Res, nil 704 } 705 706 type RegisterProvider_TaskBody struct { 707 Req *types.RegisterProvider_Task `xml:"urn:sms RegisterProvider_Task,omitempty"` 708 Res *types.RegisterProvider_TaskResponse `xml:"urn:sms RegisterProvider_TaskResponse,omitempty"` 709 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 710 } 711 712 func (b *RegisterProvider_TaskBody) Fault() *soap.Fault { return b.Fault_ } 713 714 func RegisterProvider_Task(ctx context.Context, r soap.RoundTripper, req *types.RegisterProvider_Task) (*types.RegisterProvider_TaskResponse, error) { 715 var reqBody, resBody RegisterProvider_TaskBody 716 717 reqBody.Req = req 718 719 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 720 return nil, err 721 } 722 723 return resBody.Res, nil 724 } 725 726 type ReverseReplicateGroup_TaskBody struct { 727 Req *types.ReverseReplicateGroup_Task `xml:"urn:sms ReverseReplicateGroup_Task,omitempty"` 728 Res *types.ReverseReplicateGroup_TaskResponse `xml:"urn:sms ReverseReplicateGroup_TaskResponse,omitempty"` 729 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 730 } 731 732 func (b *ReverseReplicateGroup_TaskBody) Fault() *soap.Fault { return b.Fault_ } 733 734 func ReverseReplicateGroup_Task(ctx context.Context, r soap.RoundTripper, req *types.ReverseReplicateGroup_Task) (*types.ReverseReplicateGroup_TaskResponse, error) { 735 var reqBody, resBody ReverseReplicateGroup_TaskBody 736 737 reqBody.Req = req 738 739 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 740 return nil, err 741 } 742 743 return resBody.Res, nil 744 } 745 746 type SmsRefreshCACertificatesAndCRLs_TaskBody struct { 747 Req *types.SmsRefreshCACertificatesAndCRLs_Task `xml:"urn:sms SmsRefreshCACertificatesAndCRLs_Task,omitempty"` 748 Res *types.SmsRefreshCACertificatesAndCRLs_TaskResponse `xml:"urn:sms SmsRefreshCACertificatesAndCRLs_TaskResponse,omitempty"` 749 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 750 } 751 752 func (b *SmsRefreshCACertificatesAndCRLs_TaskBody) Fault() *soap.Fault { return b.Fault_ } 753 754 func SmsRefreshCACertificatesAndCRLs_Task(ctx context.Context, r soap.RoundTripper, req *types.SmsRefreshCACertificatesAndCRLs_Task) (*types.SmsRefreshCACertificatesAndCRLs_TaskResponse, error) { 755 var reqBody, resBody SmsRefreshCACertificatesAndCRLs_TaskBody 756 757 reqBody.Req = req 758 759 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 760 return nil, err 761 } 762 763 return resBody.Res, nil 764 } 765 766 type SyncReplicationGroup_TaskBody struct { 767 Req *types.SyncReplicationGroup_Task `xml:"urn:sms SyncReplicationGroup_Task,omitempty"` 768 Res *types.SyncReplicationGroup_TaskResponse `xml:"urn:sms SyncReplicationGroup_TaskResponse,omitempty"` 769 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 770 } 771 772 func (b *SyncReplicationGroup_TaskBody) Fault() *soap.Fault { return b.Fault_ } 773 774 func SyncReplicationGroup_Task(ctx context.Context, r soap.RoundTripper, req *types.SyncReplicationGroup_Task) (*types.SyncReplicationGroup_TaskResponse, error) { 775 var reqBody, resBody SyncReplicationGroup_TaskBody 776 777 reqBody.Req = req 778 779 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 780 return nil, err 781 } 782 783 return resBody.Res, nil 784 } 785 786 type TestFailoverReplicationGroupStart_TaskBody struct { 787 Req *types.TestFailoverReplicationGroupStart_Task `xml:"urn:sms TestFailoverReplicationGroupStart_Task,omitempty"` 788 Res *types.TestFailoverReplicationGroupStart_TaskResponse `xml:"urn:sms TestFailoverReplicationGroupStart_TaskResponse,omitempty"` 789 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 790 } 791 792 func (b *TestFailoverReplicationGroupStart_TaskBody) Fault() *soap.Fault { return b.Fault_ } 793 794 func TestFailoverReplicationGroupStart_Task(ctx context.Context, r soap.RoundTripper, req *types.TestFailoverReplicationGroupStart_Task) (*types.TestFailoverReplicationGroupStart_TaskResponse, error) { 795 var reqBody, resBody TestFailoverReplicationGroupStart_TaskBody 796 797 reqBody.Req = req 798 799 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 800 return nil, err 801 } 802 803 return resBody.Res, nil 804 } 805 806 type TestFailoverReplicationGroupStop_TaskBody struct { 807 Req *types.TestFailoverReplicationGroupStop_Task `xml:"urn:sms TestFailoverReplicationGroupStop_Task,omitempty"` 808 Res *types.TestFailoverReplicationGroupStop_TaskResponse `xml:"urn:sms TestFailoverReplicationGroupStop_TaskResponse,omitempty"` 809 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 810 } 811 812 func (b *TestFailoverReplicationGroupStop_TaskBody) Fault() *soap.Fault { return b.Fault_ } 813 814 func TestFailoverReplicationGroupStop_Task(ctx context.Context, r soap.RoundTripper, req *types.TestFailoverReplicationGroupStop_Task) (*types.TestFailoverReplicationGroupStop_TaskResponse, error) { 815 var reqBody, resBody TestFailoverReplicationGroupStop_TaskBody 816 817 reqBody.Req = req 818 819 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 820 return nil, err 821 } 822 823 return resBody.Res, nil 824 } 825 826 type UnregisterProvider_TaskBody struct { 827 Req *types.UnregisterProvider_Task `xml:"urn:sms UnregisterProvider_Task,omitempty"` 828 Res *types.UnregisterProvider_TaskResponse `xml:"urn:sms UnregisterProvider_TaskResponse,omitempty"` 829 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 830 } 831 832 func (b *UnregisterProvider_TaskBody) Fault() *soap.Fault { return b.Fault_ } 833 834 func UnregisterProvider_Task(ctx context.Context, r soap.RoundTripper, req *types.UnregisterProvider_Task) (*types.UnregisterProvider_TaskResponse, error) { 835 var reqBody, resBody UnregisterProvider_TaskBody 836 837 reqBody.Req = req 838 839 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 840 return nil, err 841 } 842 843 return resBody.Res, nil 844 } 845 846 type VasaProviderReconnect_TaskBody struct { 847 Req *types.VasaProviderReconnect_Task `xml:"urn:sms VasaProviderReconnect_Task,omitempty"` 848 Res *types.VasaProviderReconnect_TaskResponse `xml:"urn:sms VasaProviderReconnect_TaskResponse,omitempty"` 849 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 850 } 851 852 func (b *VasaProviderReconnect_TaskBody) Fault() *soap.Fault { return b.Fault_ } 853 854 func VasaProviderReconnect_Task(ctx context.Context, r soap.RoundTripper, req *types.VasaProviderReconnect_Task) (*types.VasaProviderReconnect_TaskResponse, error) { 855 var reqBody, resBody VasaProviderReconnect_TaskBody 856 857 reqBody.Req = req 858 859 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 860 return nil, err 861 } 862 863 return resBody.Res, nil 864 } 865 866 type VasaProviderRefreshCertificate_TaskBody struct { 867 Req *types.VasaProviderRefreshCertificate_Task `xml:"urn:sms VasaProviderRefreshCertificate_Task,omitempty"` 868 Res *types.VasaProviderRefreshCertificate_TaskResponse `xml:"urn:sms VasaProviderRefreshCertificate_TaskResponse,omitempty"` 869 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 870 } 871 872 func (b *VasaProviderRefreshCertificate_TaskBody) Fault() *soap.Fault { return b.Fault_ } 873 874 func VasaProviderRefreshCertificate_Task(ctx context.Context, r soap.RoundTripper, req *types.VasaProviderRefreshCertificate_Task) (*types.VasaProviderRefreshCertificate_TaskResponse, error) { 875 var reqBody, resBody VasaProviderRefreshCertificate_TaskBody 876 877 reqBody.Req = req 878 879 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 880 return nil, err 881 } 882 883 return resBody.Res, nil 884 } 885 886 type VasaProviderRevokeCertificate_TaskBody struct { 887 Req *types.VasaProviderRevokeCertificate_Task `xml:"urn:sms VasaProviderRevokeCertificate_Task,omitempty"` 888 Res *types.VasaProviderRevokeCertificate_TaskResponse `xml:"urn:sms VasaProviderRevokeCertificate_TaskResponse,omitempty"` 889 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 890 } 891 892 func (b *VasaProviderRevokeCertificate_TaskBody) Fault() *soap.Fault { return b.Fault_ } 893 894 func VasaProviderRevokeCertificate_Task(ctx context.Context, r soap.RoundTripper, req *types.VasaProviderRevokeCertificate_Task) (*types.VasaProviderRevokeCertificate_TaskResponse, error) { 895 var reqBody, resBody VasaProviderRevokeCertificate_TaskBody 896 897 reqBody.Req = req 898 899 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 900 return nil, err 901 } 902 903 return resBody.Res, nil 904 } 905 906 type VasaProviderSync_TaskBody struct { 907 Req *types.VasaProviderSync_Task `xml:"urn:sms VasaProviderSync_Task,omitempty"` 908 Res *types.VasaProviderSync_TaskResponse `xml:"urn:sms VasaProviderSync_TaskResponse,omitempty"` 909 Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` 910 } 911 912 func (b *VasaProviderSync_TaskBody) Fault() *soap.Fault { return b.Fault_ } 913 914 func VasaProviderSync_Task(ctx context.Context, r soap.RoundTripper, req *types.VasaProviderSync_Task) (*types.VasaProviderSync_TaskResponse, error) { 915 var reqBody, resBody VasaProviderSync_TaskBody 916 917 reqBody.Req = req 918 919 if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { 920 return nil, err 921 } 922 923 return resBody.Res, nil 924 }