From f0935aa6b07e58a00d6ddf33a6e341aa05afcc26 Mon Sep 17 00:00:00 2001 From: Tom Harvey Date: Mon, 24 Oct 2022 19:26:06 +0200 Subject: [PATCH] dependencies: updating to `v0.20221024.1162143` of `github.com/hashicorp/go-azure-sdk` (#18949) --- go.mod | 2 +- go.sum | 4 ++-- .../portal_tenant_configuration_resource.go | 8 +++---- ...rtal_tenant_configuration_resource_test.go | 2 +- .../model_sqldatabasegetpropertiesresource.go | 8 +++++-- .../tenantconfiguration/README.md | 16 ++++++------- ..._autorest.go => method_create_autorest.go} | 24 +++++++++---------- ..._autorest.go => method_delete_autorest.go} | 24 +++++++++---------- ...get_autorest.go => method_get_autorest.go} | 24 +++++++++---------- ...st_autorest.go => method_list_autorest.go} | 24 +++++++++---------- vendor/modules.txt | 2 +- 11 files changed, 71 insertions(+), 67 deletions(-) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/{method_tenantconfigurationscreate_autorest.go => method_create_autorest.go} (54%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/{method_tenantconfigurationsdelete_autorest.go => method_delete_autorest.go} (53%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/{method_tenantconfigurationsget_autorest.go => method_get_autorest.go} (55%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/{method_tenantconfigurationslist_autorest.go => method_list_autorest.go} (55%) diff --git a/go.mod b/go.mod index ac13a5ad327d..48ed014224eb 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,7 @@ require ( github.com/google/go-cmp v0.5.8 github.com/google/uuid v1.1.2 github.com/hashicorp/go-azure-helpers v0.44.0 - github.com/hashicorp/go-azure-sdk v0.20221018.1075906 + github.com/hashicorp/go-azure-sdk v0.20221024.1162143 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 c177f185e8ff..b626f741317f 100644 --- a/go.sum +++ b/go.sum @@ -216,8 +216,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.44.0 h1:ETmIJnKJpdyRtNvKv9azJRYlwNde/5C6SUjHsGajpMw= github.com/hashicorp/go-azure-helpers v0.44.0/go.mod h1:WiJNl0fD6PoM/MYuGTZ8yuzIaXQR3m2H2g6+EJ8nSwc= -github.com/hashicorp/go-azure-sdk v0.20221018.1075906 h1:qrkhXQEQbbt3WSqjzcqAXo7x5IcWPX4X9rz5s3+2+Wk= -github.com/hashicorp/go-azure-sdk v0.20221018.1075906/go.mod h1:BEjoURzcFwd+K3MqkbOt9jArIIrsqpBQ2Gz6DdemFIs= +github.com/hashicorp/go-azure-sdk v0.20221024.1162143 h1:YlckjIw3ztpFH9GSkmuQJxKnRPnUoSaOl2EuyjlOgtA= +github.com/hashicorp/go-azure-sdk v0.20221024.1162143/go.mod h1:BEjoURzcFwd+K3MqkbOt9jArIIrsqpBQ2Gz6DdemFIs= 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/internal/services/portal/portal_tenant_configuration_resource.go b/internal/services/portal/portal_tenant_configuration_resource.go index 1281fa1e6cd0..b3580ad46e75 100644 --- a/internal/services/portal/portal_tenant_configuration_resource.go +++ b/internal/services/portal/portal_tenant_configuration_resource.go @@ -53,7 +53,7 @@ func resourcePortalTenantConfigurationCreateUpdate(d *pluginsdk.ResourceData, me // since this is an operation on a Tenant (which doesn't expose any configurable values). id := parse.NewPortalTenantConfigurationID("default") if d.IsNewResource() { - existing, err := client.TenantConfigurationsGet(ctx) + existing, err := client.Get(ctx) if err != nil { if !response.WasNotFound(existing.HttpResponse) { return fmt.Errorf("checking for existing %s: %+v", id, err) @@ -71,7 +71,7 @@ func resourcePortalTenantConfigurationCreateUpdate(d *pluginsdk.ResourceData, me }, } - if _, err := client.TenantConfigurationsCreate(ctx, parameters); err != nil { + if _, err := client.Create(ctx, parameters); err != nil { return fmt.Errorf("creating/updating %s: %+v", id, err) } @@ -90,7 +90,7 @@ func resourcePortalTenantConfigurationRead(d *pluginsdk.ResourceData, meta inter return err } - resp, err := client.TenantConfigurationsGet(ctx) + resp, err := client.Get(ctx) if err != nil { if response.WasNotFound(resp.HttpResponse) { log.Printf("[INFO] %s was not found - removing from state!", *id) @@ -119,7 +119,7 @@ func resourcePortalTenantConfigurationDelete(d *pluginsdk.ResourceData, meta int return err } - if _, err := client.TenantConfigurationsDelete(ctx); err != nil { + if _, err := client.Delete(ctx); err != nil { return fmt.Errorf("deleting %s: %+v", *id, err) } diff --git a/internal/services/portal/portal_tenant_configuration_resource_test.go b/internal/services/portal/portal_tenant_configuration_resource_test.go index f64cff093006..541c56388023 100644 --- a/internal/services/portal/portal_tenant_configuration_resource_test.go +++ b/internal/services/portal/portal_tenant_configuration_resource_test.go @@ -82,7 +82,7 @@ func (r PortalTenantConfigurationResource) Exists(ctx context.Context, client *c return nil, err } - resp, err := client.Portal.TenantConfigurationsClient.TenantConfigurationsGet(ctx) + resp, err := client.Portal.TenantConfigurationsClient.Get(ctx) if err != nil { return nil, fmt.Errorf("retrieving %s: %v", *id, err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_sqldatabasegetpropertiesresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_sqldatabasegetpropertiesresource.go index 5d10c65efd63..55917fc2b456 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_sqldatabasegetpropertiesresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_sqldatabasegetpropertiesresource.go @@ -4,6 +4,10 @@ package cosmosdb // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type SqlDatabaseGetPropertiesResource struct { - Colls *string `json:"_colls,omitempty"` - Users *string `json:"_users,omitempty"` + Colls *string `json:"_colls,omitempty"` + Etag *string `json:"_etag,omitempty"` + Id *string `json:"id,omitempty"` + Rid *string `json:"_rid,omitempty"` + Ts *float64 `json:"_ts,omitempty"` + Users *string `json:"_users,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/README.md index 485d1a89f379..6d4b5ed5b49f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/README.md @@ -20,7 +20,7 @@ client.Client.Authorizer = authorizer ``` -### Example Usage: `TenantConfigurationClient.TenantConfigurationsCreate` +### Example Usage: `TenantConfigurationClient.Create` ```go ctx := context.TODO() @@ -30,7 +30,7 @@ payload := tenantconfiguration.Configuration{ } -read, err := client.TenantConfigurationsCreate(ctx, payload) +read, err := client.Create(ctx, payload) if err != nil { // handle the error } @@ -40,13 +40,13 @@ if model := read.Model; model != nil { ``` -### Example Usage: `TenantConfigurationClient.TenantConfigurationsDelete` +### Example Usage: `TenantConfigurationClient.Delete` ```go ctx := context.TODO() -read, err := client.TenantConfigurationsDelete(ctx) +read, err := client.Delete(ctx) if err != nil { // handle the error } @@ -56,13 +56,13 @@ if model := read.Model; model != nil { ``` -### Example Usage: `TenantConfigurationClient.TenantConfigurationsGet` +### Example Usage: `TenantConfigurationClient.Get` ```go ctx := context.TODO() -read, err := client.TenantConfigurationsGet(ctx) +read, err := client.Get(ctx) if err != nil { // handle the error } @@ -72,13 +72,13 @@ if model := read.Model; model != nil { ``` -### Example Usage: `TenantConfigurationClient.TenantConfigurationsList` +### Example Usage: `TenantConfigurationClient.List` ```go ctx := context.TODO() -read, err := client.TenantConfigurationsList(ctx) +read, err := client.List(ctx) if err != nil { // handle the error } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_tenantconfigurationscreate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_create_autorest.go similarity index 54% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_tenantconfigurationscreate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_create_autorest.go index 96efc828bd25..614465f7a9ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_tenantconfigurationscreate_autorest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_create_autorest.go @@ -11,36 +11,36 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type TenantConfigurationsCreateOperationResponse struct { +type CreateOperationResponse struct { HttpResponse *http.Response Model *Configuration } -// TenantConfigurationsCreate ... -func (c TenantConfigurationClient) TenantConfigurationsCreate(ctx context.Context, input Configuration) (result TenantConfigurationsCreateOperationResponse, err error) { - req, err := c.preparerForTenantConfigurationsCreate(ctx, input) +// Create ... +func (c TenantConfigurationClient) Create(ctx context.Context, input Configuration) (result CreateOperationResponse, err error) { + req, err := c.preparerForCreate(ctx, input) if err != nil { - err = autorest.NewErrorWithError(err, "tenantconfiguration.TenantConfigurationClient", "TenantConfigurationsCreate", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "tenantconfiguration.TenantConfigurationClient", "Create", nil, "Failure preparing request") return } result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) if err != nil { - err = autorest.NewErrorWithError(err, "tenantconfiguration.TenantConfigurationClient", "TenantConfigurationsCreate", result.HttpResponse, "Failure sending request") + err = autorest.NewErrorWithError(err, "tenantconfiguration.TenantConfigurationClient", "Create", result.HttpResponse, "Failure sending request") return } - result, err = c.responderForTenantConfigurationsCreate(result.HttpResponse) + result, err = c.responderForCreate(result.HttpResponse) if err != nil { - err = autorest.NewErrorWithError(err, "tenantconfiguration.TenantConfigurationClient", "TenantConfigurationsCreate", result.HttpResponse, "Failure responding to request") + err = autorest.NewErrorWithError(err, "tenantconfiguration.TenantConfigurationClient", "Create", result.HttpResponse, "Failure responding to request") return } return } -// preparerForTenantConfigurationsCreate prepares the TenantConfigurationsCreate request. -func (c TenantConfigurationClient) preparerForTenantConfigurationsCreate(ctx context.Context, input Configuration) (*http.Request, error) { +// preparerForCreate prepares the Create request. +func (c TenantConfigurationClient) preparerForCreate(ctx context.Context, input Configuration) (*http.Request, error) { queryParameters := map[string]interface{}{ "api-version": defaultApiVersion, } @@ -55,9 +55,9 @@ func (c TenantConfigurationClient) preparerForTenantConfigurationsCreate(ctx con return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// responderForTenantConfigurationsCreate handles the response to the TenantConfigurationsCreate request. The method always +// responderForCreate handles the response to the Create request. The method always // closes the http.Response Body. -func (c TenantConfigurationClient) responderForTenantConfigurationsCreate(resp *http.Response) (result TenantConfigurationsCreateOperationResponse, err error) { +func (c TenantConfigurationClient) responderForCreate(resp *http.Response) (result CreateOperationResponse, err error) { err = autorest.Respond( resp, azure.WithErrorUnlessStatusCode(http.StatusCreated, http.StatusOK), diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_tenantconfigurationsdelete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_delete_autorest.go similarity index 53% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_tenantconfigurationsdelete_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_delete_autorest.go index de32952bd7fe..467d9a03131f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_tenantconfigurationsdelete_autorest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_delete_autorest.go @@ -11,35 +11,35 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type TenantConfigurationsDeleteOperationResponse struct { +type DeleteOperationResponse struct { HttpResponse *http.Response } -// TenantConfigurationsDelete ... -func (c TenantConfigurationClient) TenantConfigurationsDelete(ctx context.Context) (result TenantConfigurationsDeleteOperationResponse, err error) { - req, err := c.preparerForTenantConfigurationsDelete(ctx) +// Delete ... +func (c TenantConfigurationClient) Delete(ctx context.Context) (result DeleteOperationResponse, err error) { + req, err := c.preparerForDelete(ctx) if err != nil { - err = autorest.NewErrorWithError(err, "tenantconfiguration.TenantConfigurationClient", "TenantConfigurationsDelete", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "tenantconfiguration.TenantConfigurationClient", "Delete", nil, "Failure preparing request") return } result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) if err != nil { - err = autorest.NewErrorWithError(err, "tenantconfiguration.TenantConfigurationClient", "TenantConfigurationsDelete", result.HttpResponse, "Failure sending request") + err = autorest.NewErrorWithError(err, "tenantconfiguration.TenantConfigurationClient", "Delete", result.HttpResponse, "Failure sending request") return } - result, err = c.responderForTenantConfigurationsDelete(result.HttpResponse) + result, err = c.responderForDelete(result.HttpResponse) if err != nil { - err = autorest.NewErrorWithError(err, "tenantconfiguration.TenantConfigurationClient", "TenantConfigurationsDelete", result.HttpResponse, "Failure responding to request") + err = autorest.NewErrorWithError(err, "tenantconfiguration.TenantConfigurationClient", "Delete", result.HttpResponse, "Failure responding to request") return } return } -// preparerForTenantConfigurationsDelete prepares the TenantConfigurationsDelete request. -func (c TenantConfigurationClient) preparerForTenantConfigurationsDelete(ctx context.Context) (*http.Request, error) { +// preparerForDelete prepares the Delete request. +func (c TenantConfigurationClient) preparerForDelete(ctx context.Context) (*http.Request, error) { queryParameters := map[string]interface{}{ "api-version": defaultApiVersion, } @@ -53,9 +53,9 @@ func (c TenantConfigurationClient) preparerForTenantConfigurationsDelete(ctx con return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// responderForTenantConfigurationsDelete handles the response to the TenantConfigurationsDelete request. The method always +// responderForDelete handles the response to the Delete request. The method always // closes the http.Response Body. -func (c TenantConfigurationClient) responderForTenantConfigurationsDelete(resp *http.Response) (result TenantConfigurationsDeleteOperationResponse, err error) { +func (c TenantConfigurationClient) responderForDelete(resp *http.Response) (result DeleteOperationResponse, err error) { err = autorest.Respond( resp, azure.WithErrorUnlessStatusCode(http.StatusNoContent, http.StatusOK), diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_tenantconfigurationsget_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_get_autorest.go similarity index 55% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_tenantconfigurationsget_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_get_autorest.go index 77f33766c48e..e23a8e8901c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_tenantconfigurationsget_autorest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_get_autorest.go @@ -11,36 +11,36 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type TenantConfigurationsGetOperationResponse struct { +type GetOperationResponse struct { HttpResponse *http.Response Model *Configuration } -// TenantConfigurationsGet ... -func (c TenantConfigurationClient) TenantConfigurationsGet(ctx context.Context) (result TenantConfigurationsGetOperationResponse, err error) { - req, err := c.preparerForTenantConfigurationsGet(ctx) +// Get ... +func (c TenantConfigurationClient) Get(ctx context.Context) (result GetOperationResponse, err error) { + req, err := c.preparerForGet(ctx) if err != nil { - err = autorest.NewErrorWithError(err, "tenantconfiguration.TenantConfigurationClient", "TenantConfigurationsGet", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "tenantconfiguration.TenantConfigurationClient", "Get", nil, "Failure preparing request") return } result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) if err != nil { - err = autorest.NewErrorWithError(err, "tenantconfiguration.TenantConfigurationClient", "TenantConfigurationsGet", result.HttpResponse, "Failure sending request") + err = autorest.NewErrorWithError(err, "tenantconfiguration.TenantConfigurationClient", "Get", result.HttpResponse, "Failure sending request") return } - result, err = c.responderForTenantConfigurationsGet(result.HttpResponse) + result, err = c.responderForGet(result.HttpResponse) if err != nil { - err = autorest.NewErrorWithError(err, "tenantconfiguration.TenantConfigurationClient", "TenantConfigurationsGet", result.HttpResponse, "Failure responding to request") + err = autorest.NewErrorWithError(err, "tenantconfiguration.TenantConfigurationClient", "Get", result.HttpResponse, "Failure responding to request") return } return } -// preparerForTenantConfigurationsGet prepares the TenantConfigurationsGet request. -func (c TenantConfigurationClient) preparerForTenantConfigurationsGet(ctx context.Context) (*http.Request, error) { +// preparerForGet prepares the Get request. +func (c TenantConfigurationClient) preparerForGet(ctx context.Context) (*http.Request, error) { queryParameters := map[string]interface{}{ "api-version": defaultApiVersion, } @@ -54,9 +54,9 @@ func (c TenantConfigurationClient) preparerForTenantConfigurationsGet(ctx contex return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// responderForTenantConfigurationsGet handles the response to the TenantConfigurationsGet request. The method always +// responderForGet handles the response to the Get request. The method always // closes the http.Response Body. -func (c TenantConfigurationClient) responderForTenantConfigurationsGet(resp *http.Response) (result TenantConfigurationsGetOperationResponse, err error) { +func (c TenantConfigurationClient) responderForGet(resp *http.Response) (result GetOperationResponse, err error) { err = autorest.Respond( resp, azure.WithErrorUnlessStatusCode(http.StatusOK), diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_tenantconfigurationslist_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_list_autorest.go similarity index 55% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_tenantconfigurationslist_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_list_autorest.go index f95451ec1b30..c8c70d3e25b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_tenantconfigurationslist_autorest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_list_autorest.go @@ -11,36 +11,36 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type TenantConfigurationsListOperationResponse struct { +type ListOperationResponse struct { HttpResponse *http.Response Model *ConfigurationList } -// TenantConfigurationsList ... -func (c TenantConfigurationClient) TenantConfigurationsList(ctx context.Context) (result TenantConfigurationsListOperationResponse, err error) { - req, err := c.preparerForTenantConfigurationsList(ctx) +// List ... +func (c TenantConfigurationClient) List(ctx context.Context) (result ListOperationResponse, err error) { + req, err := c.preparerForList(ctx) if err != nil { - err = autorest.NewErrorWithError(err, "tenantconfiguration.TenantConfigurationClient", "TenantConfigurationsList", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "tenantconfiguration.TenantConfigurationClient", "List", nil, "Failure preparing request") return } result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) if err != nil { - err = autorest.NewErrorWithError(err, "tenantconfiguration.TenantConfigurationClient", "TenantConfigurationsList", result.HttpResponse, "Failure sending request") + err = autorest.NewErrorWithError(err, "tenantconfiguration.TenantConfigurationClient", "List", result.HttpResponse, "Failure sending request") return } - result, err = c.responderForTenantConfigurationsList(result.HttpResponse) + result, err = c.responderForList(result.HttpResponse) if err != nil { - err = autorest.NewErrorWithError(err, "tenantconfiguration.TenantConfigurationClient", "TenantConfigurationsList", result.HttpResponse, "Failure responding to request") + err = autorest.NewErrorWithError(err, "tenantconfiguration.TenantConfigurationClient", "List", result.HttpResponse, "Failure responding to request") return } return } -// preparerForTenantConfigurationsList prepares the TenantConfigurationsList request. -func (c TenantConfigurationClient) preparerForTenantConfigurationsList(ctx context.Context) (*http.Request, error) { +// preparerForList prepares the List request. +func (c TenantConfigurationClient) preparerForList(ctx context.Context) (*http.Request, error) { queryParameters := map[string]interface{}{ "api-version": defaultApiVersion, } @@ -54,9 +54,9 @@ func (c TenantConfigurationClient) preparerForTenantConfigurationsList(ctx conte return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// responderForTenantConfigurationsList handles the response to the TenantConfigurationsList request. The method always +// responderForList handles the response to the List request. The method always // closes the http.Response Body. -func (c TenantConfigurationClient) responderForTenantConfigurationsList(resp *http.Response) (result TenantConfigurationsListOperationResponse, err error) { +func (c TenantConfigurationClient) responderForList(resp *http.Response) (result ListOperationResponse, err error) { err = autorest.Respond( resp, azure.WithErrorUnlessStatusCode(http.StatusOK), diff --git a/vendor/modules.txt b/vendor/modules.txt index ae5f3d0e2c53..6aa327e3849d 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -182,7 +182,7 @@ github.com/hashicorp/go-azure-helpers/resourcemanager/zones github.com/hashicorp/go-azure-helpers/resourceproviders github.com/hashicorp/go-azure-helpers/sender github.com/hashicorp/go-azure-helpers/storage -# github.com/hashicorp/go-azure-sdk v0.20221018.1075906 +# github.com/hashicorp/go-azure-sdk v0.20221024.1162143 ## explicit; go 1.18 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