From 59fc76de4cc1326592eae75aae8dc3be8cffd6e8 Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Tue, 23 May 2023 12:01:08 +0200 Subject: [PATCH] dependencies: updating to `v0.20230523.1080931` of `github.com/hashicorp/go-azure-sdk` --- go.mod | 2 +- go.sum | 4 +- .../2022-09-02-preview/fleetmembers/README.md | 4 +- ..._autorest.go => method_create_autorest.go} | 42 ++++++------- .../fleetmembers/model_fleetmember.go | 2 +- .../model_fleetmemberproperties.go | 2 +- .../fleetmembers/predicates.go | 4 +- .../2022-09-02-preview/fleets/README.md | 16 ++--- ... => method_listbysubscription_autorest.go} | 62 +++++++++---------- .../2022-09-02-preview/fleets/model_fleet.go | 2 +- .../2022-09-02-preview/fleets/predicates.go | 4 +- .../model_serverpropertiesforupdate.go | 1 + vendor/modules.txt | 2 +- 13 files changed, 74 insertions(+), 73 deletions(-) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleetmembers/{method_createorupdate_autorest.go => method_create_autorest.go} (51%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleets/{method_list_autorest.go => method_listbysubscription_autorest.go} (56%) diff --git a/go.mod b/go.mod index acbe6ab59bfb..f3b683139d6f 100644 --- a/go.mod +++ b/go.mod @@ -16,7 +16,7 @@ require ( github.com/google/go-cmp v0.5.9 github.com/google/uuid v1.1.2 github.com/hashicorp/go-azure-helpers v0.56.0 - github.com/hashicorp/go-azure-sdk v0.20230518.1140509 + github.com/hashicorp/go-azure-sdk v0.20230523.1080931 github.com/hashicorp/go-multierror v1.1.1 github.com/hashicorp/go-uuid v1.0.3 github.com/hashicorp/go-version v1.6.0 diff --git a/go.sum b/go.sum index 83a368c3eb7a..652afbd872b6 100644 --- a/go.sum +++ b/go.sum @@ -141,8 +141,8 @@ github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brv github.com/hashicorp/go-azure-helpers v0.12.0/go.mod h1:Zc3v4DNeX6PDdy7NljlYpnrdac1++qNW0I4U+ofGwpg= github.com/hashicorp/go-azure-helpers v0.56.0 h1:KxDXISHwWe4PKEz6FSSPG8vCXNrFGsCcCn/AI94ccig= github.com/hashicorp/go-azure-helpers v0.56.0/go.mod h1:MbnCV9jPmlkbdH7VsoBK8IbCHvo3pLWRbRvq+F6u9sI= -github.com/hashicorp/go-azure-sdk v0.20230518.1140509 h1:CFKJeqzCCRdP7MXf2PssV/spzK7RcOkQMrM6s1ijISo= -github.com/hashicorp/go-azure-sdk v0.20230518.1140509/go.mod h1:x2r7/U5MKlTHUO6/hFHRNO03qkRLBYyeQOuEUHkZmEg= +github.com/hashicorp/go-azure-sdk v0.20230523.1080931 h1:0umqFxKa1L70yC1R1rpvPWTV/fkBVcY3w4AAr+zMnqE= +github.com/hashicorp/go-azure-sdk v0.20230523.1080931/go.mod h1:x2r7/U5MKlTHUO6/hFHRNO03qkRLBYyeQOuEUHkZmEg= github.com/hashicorp/go-checkpoint v0.5.0 h1:MFYpPZCnQqQTE18jFwSII6eUQrD/oxMFp3mlgcqk5mU= github.com/hashicorp/go-checkpoint v0.5.0/go.mod h1:7nfLNL10NsxqO4iWuW6tWW0HjZuDrwkBuEQsVcpCOgg= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleetmembers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleetmembers/README.md index 792b0d242268..fbfef714ff29 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleetmembers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleetmembers/README.md @@ -20,7 +20,7 @@ client.Client.Authorizer = authorizer ``` -### Example Usage: `FleetMembersClient.CreateOrUpdate` +### Example Usage: `FleetMembersClient.Create` ```go ctx := context.TODO() @@ -31,7 +31,7 @@ payload := fleetmembers.FleetMember{ } -if err := client.CreateOrUpdateThenPoll(ctx, id, payload, fleetmembers.DefaultCreateOrUpdateOperationOptions()); err != nil { +if err := client.CreateThenPoll(ctx, id, payload, fleetmembers.DefaultCreateOperationOptions()); err != nil { // handle the error } ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleetmembers/method_createorupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleetmembers/method_create_autorest.go similarity index 51% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleetmembers/method_createorupdate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleetmembers/method_create_autorest.go index 08345499fe18..b1ef09192f60 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleetmembers/method_createorupdate_autorest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleetmembers/method_create_autorest.go @@ -13,21 +13,21 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type CreateOrUpdateOperationResponse struct { +type CreateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response } -type CreateOrUpdateOperationOptions struct { +type CreateOperationOptions struct { IfMatch *string IfNoneMatch *string } -func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions { - return CreateOrUpdateOperationOptions{} +func DefaultCreateOperationOptions() CreateOperationOptions { + return CreateOperationOptions{} } -func (o CreateOrUpdateOperationOptions) toHeaders() map[string]interface{} { +func (o CreateOperationOptions) toHeaders() map[string]interface{} { out := make(map[string]interface{}) if o.IfMatch != nil { @@ -41,45 +41,45 @@ func (o CreateOrUpdateOperationOptions) toHeaders() map[string]interface{} { return out } -func (o CreateOrUpdateOperationOptions) toQueryString() map[string]interface{} { +func (o CreateOperationOptions) toQueryString() map[string]interface{} { out := make(map[string]interface{}) return out } -// CreateOrUpdate ... -func (c FleetMembersClient) CreateOrUpdate(ctx context.Context, id MemberId, input FleetMember, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error) { - req, err := c.preparerForCreateOrUpdate(ctx, id, input, options) +// Create ... +func (c FleetMembersClient) Create(ctx context.Context, id MemberId, input FleetMember, options CreateOperationOptions) (result CreateOperationResponse, err error) { + req, err := c.preparerForCreate(ctx, id, input, options) if err != nil { - err = autorest.NewErrorWithError(err, "fleetmembers.FleetMembersClient", "CreateOrUpdate", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "fleetmembers.FleetMembersClient", "Create", nil, "Failure preparing request") return } - result, err = c.senderForCreateOrUpdate(ctx, req) + result, err = c.senderForCreate(ctx, req) if err != nil { - err = autorest.NewErrorWithError(err, "fleetmembers.FleetMembersClient", "CreateOrUpdate", result.HttpResponse, "Failure sending request") + err = autorest.NewErrorWithError(err, "fleetmembers.FleetMembersClient", "Create", result.HttpResponse, "Failure sending request") return } return } -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c FleetMembersClient) CreateOrUpdateThenPoll(ctx context.Context, id MemberId, input FleetMember, options CreateOrUpdateOperationOptions) error { - result, err := c.CreateOrUpdate(ctx, id, input, options) +// CreateThenPoll performs Create then polls until it's completed +func (c FleetMembersClient) CreateThenPoll(ctx context.Context, id MemberId, input FleetMember, options CreateOperationOptions) error { + result, err := c.Create(ctx, id, input, options) if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) + return fmt.Errorf("performing Create: %+v", err) } if err := result.Poller.PollUntilDone(); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + return fmt.Errorf("polling after Create: %+v", err) } return nil } -// preparerForCreateOrUpdate prepares the CreateOrUpdate request. -func (c FleetMembersClient) preparerForCreateOrUpdate(ctx context.Context, id MemberId, input FleetMember, options CreateOrUpdateOperationOptions) (*http.Request, error) { +// preparerForCreate prepares the Create request. +func (c FleetMembersClient) preparerForCreate(ctx context.Context, id MemberId, input FleetMember, options CreateOperationOptions) (*http.Request, error) { queryParameters := map[string]interface{}{ "api-version": defaultApiVersion, } @@ -99,9 +99,9 @@ func (c FleetMembersClient) preparerForCreateOrUpdate(ctx context.Context, id Me return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// senderForCreateOrUpdate sends the CreateOrUpdate request. The method will close the +// senderForCreate sends the Create request. The method will close the // http.Response Body if it receives an error. -func (c FleetMembersClient) senderForCreateOrUpdate(ctx context.Context, req *http.Request) (future CreateOrUpdateOperationResponse, err error) { +func (c FleetMembersClient) senderForCreate(ctx context.Context, req *http.Request) (future CreateOperationResponse, err error) { var resp *http.Response resp, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleetmembers/model_fleetmember.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleetmembers/model_fleetmember.go index 20c8f1501899..8ed0d565be44 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleetmembers/model_fleetmember.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleetmembers/model_fleetmember.go @@ -8,7 +8,7 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type FleetMember struct { - Etag *string `json:"etag,omitempty"` + ETag *string `json:"eTag,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *FleetMemberProperties `json:"properties,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleetmembers/model_fleetmemberproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleetmembers/model_fleetmemberproperties.go index a9cccfd2872e..3469b39211f1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleetmembers/model_fleetmemberproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleetmembers/model_fleetmemberproperties.go @@ -4,6 +4,6 @@ package fleetmembers // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type FleetMemberProperties struct { - ClusterResourceId *string `json:"clusterResourceId,omitempty"` + ClusterResourceId string `json:"clusterResourceId"` ProvisioningState *FleetMemberProvisioningState `json:"provisioningState,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleetmembers/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleetmembers/predicates.go index 4d9c4a886692..453e8aa74890 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleetmembers/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleetmembers/predicates.go @@ -4,7 +4,7 @@ package fleetmembers // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type FleetMemberOperationPredicate struct { - Etag *string + ETag *string Id *string Name *string Type *string @@ -12,7 +12,7 @@ type FleetMemberOperationPredicate struct { func (p FleetMemberOperationPredicate) Matches(input FleetMember) bool { - if p.Etag != nil && (input.Etag == nil && *p.Etag != *input.Etag) { + if p.ETag != nil && (input.ETag == nil && *p.ETag != *input.ETag) { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleets/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleets/README.md index 0c19acdddc42..859af1971a22 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleets/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleets/README.md @@ -65,14 +65,14 @@ if model := read.Model; model != nil { ``` -### Example Usage: `FleetsClient.List` +### Example Usage: `FleetsClient.ListByResourceGroup` ```go ctx := context.TODO() -id := fleets.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := fleets.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) if err != nil { // handle the error } @@ -82,14 +82,14 @@ for _, item := range items { ``` -### Example Usage: `FleetsClient.ListByResourceGroup` +### Example Usage: `FleetsClient.ListBySubscription` ```go ctx := context.TODO() -id := fleets.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := fleets.NewSubscriptionID("12345678-1234-9876-4563-123456789012") -// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.ListByResourceGroupComplete(ctx, id) +// alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination +items, err := client.ListBySubscriptionComplete(ctx, id) if err != nil { // handle the error } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleets/method_list_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleets/method_listbysubscription_autorest.go similarity index 56% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleets/method_list_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleets/method_listbysubscription_autorest.go index 3acf80aa2878..4139ce3d5ef9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleets/method_list_autorest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleets/method_listbysubscription_autorest.go @@ -14,23 +14,23 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type ListOperationResponse struct { +type ListBySubscriptionOperationResponse struct { HttpResponse *http.Response Model *[]Fleet nextLink *string - nextPageFunc func(ctx context.Context, nextLink string) (ListOperationResponse, error) + nextPageFunc func(ctx context.Context, nextLink string) (ListBySubscriptionOperationResponse, error) } -type ListCompleteResult struct { +type ListBySubscriptionCompleteResult struct { Items []Fleet } -func (r ListOperationResponse) HasMore() bool { +func (r ListBySubscriptionOperationResponse) HasMore() bool { return r.nextLink != nil } -func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error) { +func (r ListBySubscriptionOperationResponse) LoadMore(ctx context.Context) (resp ListBySubscriptionOperationResponse, err error) { if !r.HasMore() { err = fmt.Errorf("no more pages returned") return @@ -38,30 +38,30 @@ func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperation return r.nextPageFunc(ctx, *r.nextLink) } -// List ... -func (c FleetsClient) List(ctx context.Context, id commonids.SubscriptionId) (resp ListOperationResponse, err error) { - req, err := c.preparerForList(ctx, id) +// ListBySubscription ... +func (c FleetsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (resp ListBySubscriptionOperationResponse, err error) { + req, err := c.preparerForListBySubscription(ctx, id) if err != nil { - err = autorest.NewErrorWithError(err, "fleets.FleetsClient", "List", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "fleets.FleetsClient", "ListBySubscription", nil, "Failure preparing request") return } resp.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) if err != nil { - err = autorest.NewErrorWithError(err, "fleets.FleetsClient", "List", resp.HttpResponse, "Failure sending request") + err = autorest.NewErrorWithError(err, "fleets.FleetsClient", "ListBySubscription", resp.HttpResponse, "Failure sending request") return } - resp, err = c.responderForList(resp.HttpResponse) + resp, err = c.responderForListBySubscription(resp.HttpResponse) if err != nil { - err = autorest.NewErrorWithError(err, "fleets.FleetsClient", "List", resp.HttpResponse, "Failure responding to request") + err = autorest.NewErrorWithError(err, "fleets.FleetsClient", "ListBySubscription", resp.HttpResponse, "Failure responding to request") return } return } -// preparerForList prepares the List request. -func (c FleetsClient) preparerForList(ctx context.Context, id commonids.SubscriptionId) (*http.Request, error) { +// preparerForListBySubscription prepares the ListBySubscription request. +func (c FleetsClient) preparerForListBySubscription(ctx context.Context, id commonids.SubscriptionId) (*http.Request, error) { queryParameters := map[string]interface{}{ "api-version": defaultApiVersion, } @@ -75,8 +75,8 @@ func (c FleetsClient) preparerForList(ctx context.Context, id commonids.Subscrip return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// preparerForListWithNextLink prepares the List request with the given nextLink token. -func (c FleetsClient) preparerForListWithNextLink(ctx context.Context, nextLink string) (*http.Request, error) { +// preparerForListBySubscriptionWithNextLink prepares the ListBySubscription request with the given nextLink token. +func (c FleetsClient) preparerForListBySubscriptionWithNextLink(ctx context.Context, nextLink string) (*http.Request, error) { uri, err := url.Parse(nextLink) if err != nil { return nil, fmt.Errorf("parsing nextLink %q: %+v", nextLink, err) @@ -100,9 +100,9 @@ func (c FleetsClient) preparerForListWithNextLink(ctx context.Context, nextLink return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// responderForList handles the response to the List request. The method always +// responderForListBySubscription handles the response to the ListBySubscription request. The method always // closes the http.Response Body. -func (c FleetsClient) responderForList(resp *http.Response) (result ListOperationResponse, err error) { +func (c FleetsClient) responderForListBySubscription(resp *http.Response) (result ListBySubscriptionOperationResponse, err error) { type page struct { Values []Fleet `json:"value"` NextLink *string `json:"nextLink"` @@ -117,22 +117,22 @@ func (c FleetsClient) responderForList(resp *http.Response) (result ListOperatio result.Model = &respObj.Values result.nextLink = respObj.NextLink if respObj.NextLink != nil { - result.nextPageFunc = func(ctx context.Context, nextLink string) (result ListOperationResponse, err error) { - req, err := c.preparerForListWithNextLink(ctx, nextLink) + result.nextPageFunc = func(ctx context.Context, nextLink string) (result ListBySubscriptionOperationResponse, err error) { + req, err := c.preparerForListBySubscriptionWithNextLink(ctx, nextLink) if err != nil { - err = autorest.NewErrorWithError(err, "fleets.FleetsClient", "List", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "fleets.FleetsClient", "ListBySubscription", nil, "Failure preparing request") return } result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) if err != nil { - err = autorest.NewErrorWithError(err, "fleets.FleetsClient", "List", result.HttpResponse, "Failure sending request") + err = autorest.NewErrorWithError(err, "fleets.FleetsClient", "ListBySubscription", result.HttpResponse, "Failure sending request") return } - result, err = c.responderForList(result.HttpResponse) + result, err = c.responderForListBySubscription(result.HttpResponse) if err != nil { - err = autorest.NewErrorWithError(err, "fleets.FleetsClient", "List", result.HttpResponse, "Failure responding to request") + err = autorest.NewErrorWithError(err, "fleets.FleetsClient", "ListBySubscription", result.HttpResponse, "Failure responding to request") return } @@ -142,16 +142,16 @@ func (c FleetsClient) responderForList(resp *http.Response) (result ListOperatio return } -// ListComplete retrieves all of the results into a single object -func (c FleetsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, FleetOperationPredicate{}) +// ListBySubscriptionComplete retrieves all of the results into a single object +func (c FleetsClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error) { + return c.ListBySubscriptionCompleteMatchingPredicate(ctx, id, FleetOperationPredicate{}) } -// ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate -func (c FleetsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate FleetOperationPredicate) (resp ListCompleteResult, err error) { +// ListBySubscriptionCompleteMatchingPredicate retrieves all of the results and then applied the predicate +func (c FleetsClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate FleetOperationPredicate) (resp ListBySubscriptionCompleteResult, err error) { items := make([]Fleet, 0) - page, err := c.List(ctx, id) + page, err := c.ListBySubscription(ctx, id) if err != nil { err = fmt.Errorf("loading the initial page: %+v", err) return @@ -180,7 +180,7 @@ func (c FleetsClient) ListCompleteMatchingPredicate(ctx context.Context, id comm } } - out := ListCompleteResult{ + out := ListBySubscriptionCompleteResult{ Items: items, } return out, nil diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleets/model_fleet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleets/model_fleet.go index e50bffbe7efd..a8a1792e44c0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleets/model_fleet.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleets/model_fleet.go @@ -8,7 +8,7 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type Fleet struct { - Etag *string `json:"etag,omitempty"` + ETag *string `json:"eTag,omitempty"` Id *string `json:"id,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleets/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleets/predicates.go index 1064905e453d..a422a1d45d5e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleets/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleets/predicates.go @@ -4,7 +4,7 @@ package fleets // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type FleetOperationPredicate struct { - Etag *string + ETag *string Id *string Location *string Name *string @@ -13,7 +13,7 @@ type FleetOperationPredicate struct { func (p FleetOperationPredicate) Matches(input Fleet) bool { - if p.Etag != nil && (input.Etag == nil && *p.Etag != *input.Etag) { + if p.ETag != nil && (input.ETag == nil && *p.ETag != *input.ETag) { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/servers/model_serverpropertiesforupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/servers/model_serverpropertiesforupdate.go index 08c11829a309..d5c0eb4352d7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/servers/model_serverpropertiesforupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/servers/model_serverpropertiesforupdate.go @@ -11,6 +11,7 @@ type ServerPropertiesForUpdate struct { DataEncryption *DataEncryption `json:"dataEncryption,omitempty"` HighAvailability *HighAvailability `json:"highAvailability,omitempty"` MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"` + Network *Network `json:"network,omitempty"` ReplicationRole *ReplicationRole `json:"replicationRole,omitempty"` Storage *Storage `json:"storage,omitempty"` Version *ServerVersion `json:"version,omitempty"` diff --git a/vendor/modules.txt b/vendor/modules.txt index 220eef925c06..1a783f3a98c1 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -137,7 +137,7 @@ github.com/hashicorp/go-azure-helpers/resourcemanager/tags github.com/hashicorp/go-azure-helpers/resourcemanager/zones github.com/hashicorp/go-azure-helpers/sender github.com/hashicorp/go-azure-helpers/storage -# github.com/hashicorp/go-azure-sdk v0.20230518.1140509 +# github.com/hashicorp/go-azure-sdk v0.20230523.1080931 ## explicit; go 1.19 github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview