diff --git a/services/iothub/mgmt/2017-07-01/devices/CHANGELOG.md b/services/iothub/mgmt/2017-07-01/devices/CHANGELOG.md deleted file mode 100644 index 3cfb8aa2a054..000000000000 --- a/services/iothub/mgmt/2017-07-01/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 `NewEventHubConsumerGroupsListResultPage` parameter(s) have been changed from `(func(context.Context, EventHubConsumerGroupsListResult) (EventHubConsumerGroupsListResult, error))` to `(EventHubConsumerGroupsListResult, func(context.Context, EventHubConsumerGroupsListResult) (EventHubConsumerGroupsListResult, error))` -- Function `NewSharedAccessSignatureAuthorizationRuleListResultPage` parameter(s) have been changed from `(func(context.Context, SharedAccessSignatureAuthorizationRuleListResult) (SharedAccessSignatureAuthorizationRuleListResult, error))` to `(SharedAccessSignatureAuthorizationRuleListResult, func(context.Context, SharedAccessSignatureAuthorizationRuleListResult) (SharedAccessSignatureAuthorizationRuleListResult, error))` -- Function `NewOperationListResultPage` parameter(s) have been changed from `(func(context.Context, OperationListResult) (OperationListResult, error))` to `(OperationListResult, func(context.Context, OperationListResult) (OperationListResult, error))` -- Function `NewIotHubSkuDescriptionListResultPage` parameter(s) have been changed from `(func(context.Context, IotHubSkuDescriptionListResult) (IotHubSkuDescriptionListResult, error))` to `(IotHubSkuDescriptionListResult, func(context.Context, IotHubSkuDescriptionListResult) (IotHubSkuDescriptionListResult, error))` -- Function `NewJobResponseListResultPage` parameter(s) have been changed from `(func(context.Context, JobResponseListResult) (JobResponseListResult, error))` to `(JobResponseListResult, func(context.Context, JobResponseListResult) (JobResponseListResult, error))` -- Function `NewIotHubQuotaMetricInfoListResultPage` parameter(s) have been changed from `(func(context.Context, IotHubQuotaMetricInfoListResult) (IotHubQuotaMetricInfoListResult, error))` to `(IotHubQuotaMetricInfoListResult, func(context.Context, IotHubQuotaMetricInfoListResult) (IotHubQuotaMetricInfoListResult, 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/2017-07-01/devices/iothubresource.go b/services/iothub/mgmt/2017-07-01/devices/iothubresource.go index f884a6894714..9c4ea9566621 100644 --- a/services/iothub/mgmt/2017-07-01/devices/iothubresource.go +++ b/services/iothub/mgmt/2017-07-01/devices/iothubresource.go @@ -915,6 +915,7 @@ func (client IotHubResourceClient) GetQuotaMetrics(ctx context.Context, resource } if result.ihqmilr.hasNextLink() && result.ihqmilr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -976,7 +977,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 } @@ -1109,6 +1109,7 @@ func (client IotHubResourceClient) GetValidSkus(ctx context.Context, resourceGro } if result.ihsdlr.hasNextLink() && result.ihsdlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -1170,7 +1171,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 } @@ -1314,6 +1314,7 @@ func (client IotHubResourceClient) ListByResourceGroup(ctx context.Context, reso } if result.ihdlr.hasNextLink() && result.ihdlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -1374,7 +1375,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 } @@ -1428,6 +1428,7 @@ func (client IotHubResourceClient) ListBySubscription(ctx context.Context) (resu } if result.ihdlr.hasNextLink() && result.ihdlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -1487,7 +1488,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 } @@ -1546,6 +1546,7 @@ func (client IotHubResourceClient) ListEventHubConsumerGroups(ctx context.Contex } if result.ehcglr.hasNextLink() && result.ehcglr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -1608,7 +1609,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 } @@ -1666,6 +1666,7 @@ func (client IotHubResourceClient) ListJobs(ctx context.Context, resourceGroupNa } if result.jrlr.hasNextLink() && result.jrlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -1727,7 +1728,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 } @@ -1785,6 +1785,7 @@ func (client IotHubResourceClient) ListKeys(ctx context.Context, resourceGroupNa } if result.sasarlr.hasNextLink() && result.sasarlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -1846,7 +1847,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/2017-07-01/devices/operations.go b/services/iothub/mgmt/2017-07-01/devices/operations.go index e75c526da119..b74e72a5d79b 100644 --- a/services/iothub/mgmt/2017-07-01/devices/operations.go +++ b/services/iothub/mgmt/2017-07-01/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 }