From e16ac7b1f7f7a7aff2413144e95a3e6aa7911ba2 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 5 Jan 2021 08:01:44 +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/2018-01-22/devices/CHANGELOG.md | 13 ------------- .../mgmt/2018-01-22/devices/iothubresource.go | 14 +++++++------- .../iothub/mgmt/2018-01-22/devices/operations.go | 2 +- 3 files changed, 8 insertions(+), 21 deletions(-) delete mode 100644 services/iothub/mgmt/2018-01-22/devices/CHANGELOG.md diff --git a/services/iothub/mgmt/2018-01-22/devices/CHANGELOG.md b/services/iothub/mgmt/2018-01-22/devices/CHANGELOG.md deleted file mode 100644 index af28309ef7c4..000000000000 --- a/services/iothub/mgmt/2018-01-22/devices/CHANGELOG.md +++ /dev/null @@ -1,13 +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 `NewSharedAccessSignatureAuthorizationRuleListResultPage` parameter(s) have been changed from `(func(context.Context, SharedAccessSignatureAuthorizationRuleListResult) (SharedAccessSignatureAuthorizationRuleListResult, error))` to `(SharedAccessSignatureAuthorizationRuleListResult, func(context.Context, SharedAccessSignatureAuthorizationRuleListResult) (SharedAccessSignatureAuthorizationRuleListResult, error))` -- Function `NewIotHubQuotaMetricInfoListResultPage` parameter(s) have been changed from `(func(context.Context, IotHubQuotaMetricInfoListResult) (IotHubQuotaMetricInfoListResult, error))` to `(IotHubQuotaMetricInfoListResult, func(context.Context, IotHubQuotaMetricInfoListResult) (IotHubQuotaMetricInfoListResult, error))` -- Function `NewOperationListResultPage` parameter(s) have been changed from `(func(context.Context, OperationListResult) (OperationListResult, error))` to `(OperationListResult, func(context.Context, OperationListResult) (OperationListResult, error))` -- Function `NewJobResponseListResultPage` parameter(s) have been changed from `(func(context.Context, JobResponseListResult) (JobResponseListResult, error))` to `(JobResponseListResult, func(context.Context, JobResponseListResult) (JobResponseListResult, error))` -- Function `NewIotHubSkuDescriptionListResultPage` parameter(s) have been changed from `(func(context.Context, IotHubSkuDescriptionListResult) (IotHubSkuDescriptionListResult, error))` to `(IotHubSkuDescriptionListResult, func(context.Context, IotHubSkuDescriptionListResult) (IotHubSkuDescriptionListResult, error))` -- Function `NewIotHubDescriptionListResultPage` parameter(s) have been changed from `(func(context.Context, IotHubDescriptionListResult) (IotHubDescriptionListResult, error))` to `(IotHubDescriptionListResult, func(context.Context, IotHubDescriptionListResult) (IotHubDescriptionListResult, error))` -- Function `NewEventHubConsumerGroupsListResultPage` parameter(s) have been changed from `(func(context.Context, EventHubConsumerGroupsListResult) (EventHubConsumerGroupsListResult, error))` to `(EventHubConsumerGroupsListResult, func(context.Context, EventHubConsumerGroupsListResult) (EventHubConsumerGroupsListResult, error))` diff --git a/services/iothub/mgmt/2018-01-22/devices/iothubresource.go b/services/iothub/mgmt/2018-01-22/devices/iothubresource.go index 8db3450e51ef..4b3a8119ac3a 100644 --- a/services/iothub/mgmt/2018-01-22/devices/iothubresource.go +++ b/services/iothub/mgmt/2018-01-22/devices/iothubresource.go @@ -912,6 +912,7 @@ func (client IotHubResourceClient) GetQuotaMetrics(ctx context.Context, resource } if result.ihqmilr.hasNextLink() && result.ihqmilr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -973,7 +974,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 } @@ -1106,6 +1106,7 @@ func (client IotHubResourceClient) GetValidSkus(ctx context.Context, resourceGro } if result.ihsdlr.hasNextLink() && result.ihsdlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -1167,7 +1168,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 } @@ -1311,6 +1311,7 @@ func (client IotHubResourceClient) ListByResourceGroup(ctx context.Context, reso } if result.ihdlr.hasNextLink() && result.ihdlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -1371,7 +1372,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 } @@ -1425,6 +1425,7 @@ func (client IotHubResourceClient) ListBySubscription(ctx context.Context) (resu } if result.ihdlr.hasNextLink() && result.ihdlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -1484,7 +1485,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 } @@ -1543,6 +1543,7 @@ func (client IotHubResourceClient) ListEventHubConsumerGroups(ctx context.Contex } if result.ehcglr.hasNextLink() && result.ehcglr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -1605,7 +1606,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 } @@ -1663,6 +1663,7 @@ func (client IotHubResourceClient) ListJobs(ctx context.Context, resourceGroupNa } if result.jrlr.hasNextLink() && result.jrlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -1724,7 +1725,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 } @@ -1782,6 +1782,7 @@ func (client IotHubResourceClient) ListKeys(ctx context.Context, resourceGroupNa } if result.sasarlr.hasNextLink() && result.sasarlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -1843,7 +1844,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 } diff --git a/services/iothub/mgmt/2018-01-22/devices/operations.go b/services/iothub/mgmt/2018-01-22/devices/operations.go index 146a6cb50723..1062ac0e8ae0 100644 --- a/services/iothub/mgmt/2018-01-22/devices/operations.go +++ b/services/iothub/mgmt/2018-01-22/devices/operations.go @@ -74,6 +74,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -129,7 +130,6 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "devices.OperationsClient", "listNextResults", resp, "Failure responding to next results request") - return } return }