From a34731e4ffcf045653721c77881bab372adce986 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 5 Jan 2021 08:02:57 +0000 Subject: [PATCH] CodeGen from PR 10853 in Azure/azure-rest-api-specs [IotHub] Introducing networkRuleSets in IotHubProperties [2020-08-31 : preview and stable ] (#10853) * Adds base for updating Microsoft.Devices from version preview/2020-07-10-preview to version 2020-08-31-preview * Updates readme * Updates API version in new specs and examples * Adds base for updating Microsoft.Devices from version stable/2020-08-01 to version 2020-08-31 * Updates readme * Updates API version in new specs and examples * Adding networkRuleSets support for iothub * Adding networkRuleSets Support in preview version * Adding Examples, correcting order in iothub.json * Updating Readme to have stable and previe versions * Modifying Tag to package-2020-08-31 * Adding Arm identity properties from 2020-07-010-preview version * Removing creds * minor fix --- .../iothub/mgmt/2016-02-03/devices/CHANGELOG.md | 12 ------------ .../mgmt/2016-02-03/devices/iothubresource.go | 14 +++++++------- 2 files changed, 7 insertions(+), 19 deletions(-) delete mode 100644 services/iothub/mgmt/2016-02-03/devices/CHANGELOG.md diff --git a/services/iothub/mgmt/2016-02-03/devices/CHANGELOG.md b/services/iothub/mgmt/2016-02-03/devices/CHANGELOG.md deleted file mode 100644 index a335293392ee..000000000000 --- a/services/iothub/mgmt/2016-02-03/devices/CHANGELOG.md +++ /dev/null @@ -1,12 +0,0 @@ -Generated from https://github.com/Azure/azure-rest-api-specs/tree/3c764635e7d442b3e74caf593029fcd440b3ef82 - -Code generator @microsoft.azure/autorest.go@~2.1.161 - -## Breaking Changes - -- Function `NewJobResponseListResultPage` parameter(s) have been changed from `(func(context.Context, JobResponseListResult) (JobResponseListResult, error))` to `(JobResponseListResult, func(context.Context, JobResponseListResult) (JobResponseListResult, error))` -- Function `NewSharedAccessSignatureAuthorizationRuleListResultPage` parameter(s) have been changed from `(func(context.Context, SharedAccessSignatureAuthorizationRuleListResult) (SharedAccessSignatureAuthorizationRuleListResult, error))` to `(SharedAccessSignatureAuthorizationRuleListResult, func(context.Context, SharedAccessSignatureAuthorizationRuleListResult) (SharedAccessSignatureAuthorizationRuleListResult, error))` -- Function `NewIotHubSkuDescriptionListResultPage` parameter(s) have been changed from `(func(context.Context, IotHubSkuDescriptionListResult) (IotHubSkuDescriptionListResult, error))` to `(IotHubSkuDescriptionListResult, func(context.Context, IotHubSkuDescriptionListResult) (IotHubSkuDescriptionListResult, error))` -- Function `NewIotHubQuotaMetricInfoListResultPage` parameter(s) have been changed from `(func(context.Context, IotHubQuotaMetricInfoListResult) (IotHubQuotaMetricInfoListResult, error))` to `(IotHubQuotaMetricInfoListResult, func(context.Context, IotHubQuotaMetricInfoListResult) (IotHubQuotaMetricInfoListResult, error))` -- Function `NewEventHubConsumerGroupsListResultPage` parameter(s) have been changed from `(func(context.Context, EventHubConsumerGroupsListResult) (EventHubConsumerGroupsListResult, error))` to `(EventHubConsumerGroupsListResult, func(context.Context, EventHubConsumerGroupsListResult) (EventHubConsumerGroupsListResult, error))` -- Function `NewIotHubDescriptionListResultPage` parameter(s) have been changed from `(func(context.Context, IotHubDescriptionListResult) (IotHubDescriptionListResult, error))` to `(IotHubDescriptionListResult, func(context.Context, IotHubDescriptionListResult) (IotHubDescriptionListResult, error))` diff --git a/services/iothub/mgmt/2016-02-03/devices/iothubresource.go b/services/iothub/mgmt/2016-02-03/devices/iothubresource.go index 3841f5453633..f5418e098e55 100644 --- a/services/iothub/mgmt/2016-02-03/devices/iothubresource.go +++ b/services/iothub/mgmt/2016-02-03/devices/iothubresource.go @@ -899,6 +899,7 @@ func (client IotHubResourceClient) GetQuotaMetrics(ctx context.Context, resource } if result.ihqmilr.hasNextLink() && result.ihqmilr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -960,7 +961,6 @@ func (client IotHubResourceClient) getQuotaMetricsNextResults(ctx context.Contex result, err = client.GetQuotaMetricsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "getQuotaMetricsNextResults", resp, "Failure responding to next results request") - return } return } @@ -1093,6 +1093,7 @@ func (client IotHubResourceClient) GetValidSkus(ctx context.Context, resourceGro } if result.ihsdlr.hasNextLink() && result.ihsdlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -1154,7 +1155,6 @@ func (client IotHubResourceClient) getValidSkusNextResults(ctx context.Context, result, err = client.GetValidSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "getValidSkusNextResults", resp, "Failure responding to next results request") - return } return } @@ -1298,6 +1298,7 @@ func (client IotHubResourceClient) ListByResourceGroup(ctx context.Context, reso } if result.ihdlr.hasNextLink() && result.ihdlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -1358,7 +1359,6 @@ func (client IotHubResourceClient) listByResourceGroupNextResults(ctx context.Co result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") - return } return } @@ -1412,6 +1412,7 @@ func (client IotHubResourceClient) ListBySubscription(ctx context.Context) (resu } if result.ihdlr.hasNextLink() && result.ihdlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -1471,7 +1472,6 @@ func (client IotHubResourceClient) listBySubscriptionNextResults(ctx context.Con result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") - return } return } @@ -1530,6 +1530,7 @@ func (client IotHubResourceClient) ListEventHubConsumerGroups(ctx context.Contex } if result.ehcglr.hasNextLink() && result.ehcglr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -1592,7 +1593,6 @@ func (client IotHubResourceClient) listEventHubConsumerGroupsNextResults(ctx con result, err = client.ListEventHubConsumerGroupsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "listEventHubConsumerGroupsNextResults", resp, "Failure responding to next results request") - return } return } @@ -1650,6 +1650,7 @@ func (client IotHubResourceClient) ListJobs(ctx context.Context, resourceGroupNa } if result.jrlr.hasNextLink() && result.jrlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -1711,7 +1712,6 @@ func (client IotHubResourceClient) listJobsNextResults(ctx context.Context, last result, err = client.ListJobsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "listJobsNextResults", resp, "Failure responding to next results request") - return } return } @@ -1769,6 +1769,7 @@ func (client IotHubResourceClient) ListKeys(ctx context.Context, resourceGroupNa } if result.sasarlr.hasNextLink() && result.sasarlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -1830,7 +1831,6 @@ func (client IotHubResourceClient) listKeysNextResults(ctx context.Context, last result, err = client.ListKeysResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceClient", "listKeysNextResults", resp, "Failure responding to next results request") - return } return }