From 49c5d5acf9f370006d5dc11dc475d7a714c08300 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Fri, 6 Mar 2020 03:19:28 +0000 Subject: [PATCH] Generated from 21feff8909aa7134becb557b27837791b6aedd92 fixed an issue. --- .../mgmt/2019-12-01/compute/computeapi/interfaces.go | 2 +- .../mgmt/2019-12-01/compute/virtualmachineimages.go | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/services/compute/mgmt/2019-12-01/compute/computeapi/interfaces.go b/services/compute/mgmt/2019-12-01/compute/computeapi/interfaces.go index 7f435b9d41c3..29b713882876 100644 --- a/services/compute/mgmt/2019-12-01/compute/computeapi/interfaces.go +++ b/services/compute/mgmt/2019-12-01/compute/computeapi/interfaces.go @@ -108,7 +108,7 @@ var _ VirtualMachineExtensionsClientAPI = (*compute.VirtualMachineExtensionsClie // VirtualMachineImagesClientAPI contains the set of methods on the VirtualMachineImagesClient type. type VirtualMachineImagesClientAPI interface { Get(ctx context.Context, location string, publisherName string, offer string, skus string, version string) (result compute.VirtualMachineImage, err error) - List(ctx context.Context, location string, publisherName string, offer string, skus string, filter string, top *int32, orderby string) (result compute.ListVirtualMachineImageResource, err error) + List(ctx context.Context, location string, publisherName string, offer string, skus string, expand string, top *int32, orderby string) (result compute.ListVirtualMachineImageResource, err error) ListOffers(ctx context.Context, location string, publisherName string) (result compute.ListVirtualMachineImageResource, err error) ListPublishers(ctx context.Context, location string) (result compute.ListVirtualMachineImageResource, err error) ListSkus(ctx context.Context, location string, publisherName string, offer string) (result compute.ListVirtualMachineImageResource, err error) diff --git a/services/compute/mgmt/2019-12-01/compute/virtualmachineimages.go b/services/compute/mgmt/2019-12-01/compute/virtualmachineimages.go index b5cb2a660d1b..ac4ffaea25f0 100644 --- a/services/compute/mgmt/2019-12-01/compute/virtualmachineimages.go +++ b/services/compute/mgmt/2019-12-01/compute/virtualmachineimages.go @@ -130,8 +130,8 @@ func (client VirtualMachineImagesClient) GetResponder(resp *http.Response) (resu // publisherName - a valid image publisher. // offer - a valid image publisher offer. // skus - a valid image SKU. -// filter - the filter to apply on the operation. -func (client VirtualMachineImagesClient) List(ctx context.Context, location string, publisherName string, offer string, skus string, filter string, top *int32, orderby string) (result ListVirtualMachineImageResource, err error) { +// expand - the expand expression to apply on the operation. +func (client VirtualMachineImagesClient) List(ctx context.Context, location string, publisherName string, offer string, skus string, expand string, top *int32, orderby string) (result ListVirtualMachineImageResource, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineImagesClient.List") defer func() { @@ -142,7 +142,7 @@ func (client VirtualMachineImagesClient) List(ctx context.Context, location stri tracing.EndSpan(ctx, sc, err) }() } - req, err := client.ListPreparer(ctx, location, publisherName, offer, skus, filter, top, orderby) + req, err := client.ListPreparer(ctx, location, publisherName, offer, skus, expand, top, orderby) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "List", nil, "Failure preparing request") return @@ -164,7 +164,7 @@ func (client VirtualMachineImagesClient) List(ctx context.Context, location stri } // ListPreparer prepares the List request. -func (client VirtualMachineImagesClient) ListPreparer(ctx context.Context, location string, publisherName string, offer string, skus string, filter string, top *int32, orderby string) (*http.Request, error) { +func (client VirtualMachineImagesClient) ListPreparer(ctx context.Context, location string, publisherName string, offer string, skus string, expand string, top *int32, orderby string) (*http.Request, error) { pathParameters := map[string]interface{}{ "location": autorest.Encode("path", location), "offer": autorest.Encode("path", offer), @@ -177,8 +177,8 @@ func (client VirtualMachineImagesClient) ListPreparer(ctx context.Context, locat queryParameters := map[string]interface{}{ "api-version": APIVersion, } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) } if top != nil { queryParameters["$top"] = autorest.Encode("query", *top)