github.com/vmware/govmomi@v0.51.0/pbm/methods/internal_methods.go (about)

     1  // © Broadcom. All Rights Reserved.
     2  // The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
     3  // SPDX-License-Identifier: Apache-2.0
     4  
     5  package methods
     6  
     7  import (
     8  	"context"
     9  
    10  	"github.com/vmware/govmomi/pbm/types"
    11  	"github.com/vmware/govmomi/vim25/soap"
    12  )
    13  
    14  type PbmQueryIOFiltersFromProfileIdBody struct {
    15  	Req    *types.PbmQueryIOFiltersFromProfileId         `xml:"urn:internalpbm PbmQueryIOFiltersFromProfileId,omitempty"`
    16  	Res    *types.PbmQueryIOFiltersFromProfileIdResponse `xml:"urn:internalpbm PbmQueryIOFiltersFromProfileIdResponse,omitempty"`
    17  	Fault_ *soap.Fault                                   `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"`
    18  }
    19  
    20  func (b *PbmQueryIOFiltersFromProfileIdBody) Fault() *soap.Fault { return b.Fault_ }
    21  
    22  func PbmQueryIOFiltersFromProfileId(ctx context.Context, r soap.RoundTripper, req *types.PbmQueryIOFiltersFromProfileId) (*types.PbmQueryIOFiltersFromProfileIdResponse, error) {
    23  	var reqBody, resBody PbmQueryIOFiltersFromProfileIdBody
    24  
    25  	reqBody.Req = req
    26  
    27  	if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil {
    28  		return nil, err
    29  	}
    30  
    31  	return resBody.Res, nil
    32  }