From cbe7de40c8cee9332899c92f136d7b0413bfda9b Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 14 Sep 2021 02:55:29 +0000 Subject: [PATCH] CodeGen from PR 14311 in Azure/azure-rest-api-specs [Microsoft.IoTCentral/iotApps] Removal of legacy S1 SKU, S360 Fixes, newer RP API version 2021-06-01 (#14311) * Adds base for updating Microsoft.IoTCentral from version stable/2018-09-01 to version 2021-06-01 * Updates readme * Updates API version in new specs and examples * remove legacy sku S1 * update template in example to use M3 template name * add suppress for R4009 and R3018 * add state * update * should be read only * update example * Update iotcentral.json temporary changing this for further testing in canary. * removal of f1 and deleted state --- .../iotcentral/mgmt/2018-09-01/iotcentral/CHANGELOG.md | 10 +--------- .../iotcentral/mgmt/2018-09-01/iotcentral/_meta.json | 6 +++--- services/iotcentral/mgmt/2018-09-01/iotcentral/apps.go | 9 ++++++--- 3 files changed, 10 insertions(+), 15 deletions(-) diff --git a/services/iotcentral/mgmt/2018-09-01/iotcentral/CHANGELOG.md b/services/iotcentral/mgmt/2018-09-01/iotcentral/CHANGELOG.md index 7d111aeebf89..a1ecf841edb0 100644 --- a/services/iotcentral/mgmt/2018-09-01/iotcentral/CHANGELOG.md +++ b/services/iotcentral/mgmt/2018-09-01/iotcentral/CHANGELOG.md @@ -1,10 +1,2 @@ -# Change History +# Unreleased -## Additive Changes - -### New Funcs - -1. AppAvailabilityInfo.MarshalJSON() ([]byte, error) -1. AppTemplate.MarshalJSON() ([]byte, error) -1. AppTemplateLocations.MarshalJSON() ([]byte, error) -1. OperationDisplay.MarshalJSON() ([]byte, error) diff --git a/services/iotcentral/mgmt/2018-09-01/iotcentral/_meta.json b/services/iotcentral/mgmt/2018-09-01/iotcentral/_meta.json index 21cf8ac2e218..3963a1f5bd06 100644 --- a/services/iotcentral/mgmt/2018-09-01/iotcentral/_meta.json +++ b/services/iotcentral/mgmt/2018-09-01/iotcentral/_meta.json @@ -1,10 +1,10 @@ { - "commit": "a1eee0489c374782a934ec1f093abd16fa7718ca", + "commit": "0d3b1a8e1dcd2ef32ab8f3b8f118010df7c302c1", "readme": "/_/azure-rest-api-specs/specification/iotcentral/resource-manager/readme.md", "tag": "package-2018-09-01", - "use": "@microsoft.azure/autorest.go@2.1.183", + "use": "@microsoft.azure/autorest.go@2.1.187", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-09-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/iotcentral/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.187 --tag=package-2018-09-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/iotcentral/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" } diff --git a/services/iotcentral/mgmt/2018-09-01/iotcentral/apps.go b/services/iotcentral/mgmt/2018-09-01/iotcentral/apps.go index eadb8920049b..12d16f955559 100644 --- a/services/iotcentral/mgmt/2018-09-01/iotcentral/apps.go +++ b/services/iotcentral/mgmt/2018-09-01/iotcentral/apps.go @@ -227,7 +227,7 @@ func (client AppsClient) CreateOrUpdate(ctx context.Context, resourceGroupName s result, err = client.CreateOrUpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "iotcentral.AppsClient", "CreateOrUpdate", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "iotcentral.AppsClient", "CreateOrUpdate", result.Response(), "Failure sending request") return } @@ -261,6 +261,7 @@ func (client AppsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGro // http.Response Body if it receives an error. func (client AppsClient) CreateOrUpdateSender(req *http.Request) (future AppsCreateOrUpdateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -307,7 +308,7 @@ func (client AppsClient) Delete(ctx context.Context, resourceGroupName string, r result, err = client.DeleteSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "iotcentral.AppsClient", "Delete", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "iotcentral.AppsClient", "Delete", result.Response(), "Failure sending request") return } @@ -339,6 +340,7 @@ func (client AppsClient) DeletePreparer(ctx context.Context, resourceGroupName s // http.Response Body if it receives an error. func (client AppsClient) DeleteSender(req *http.Request) (future AppsDeleteFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -803,7 +805,7 @@ func (client AppsClient) Update(ctx context.Context, resourceGroupName string, r result, err = client.UpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "iotcentral.AppsClient", "Update", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "iotcentral.AppsClient", "Update", result.Response(), "Failure sending request") return } @@ -837,6 +839,7 @@ func (client AppsClient) UpdatePreparer(ctx context.Context, resourceGroupName s // http.Response Body if it receives an error. func (client AppsClient) UpdateSender(req *http.Request) (future AppsUpdateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return